24 TTPtr graphOutlets[16];
27 typedef MidiFilter* MidiFilterPtr;
31 MidiFilterPtr MidiFilterNew (t_symbol* msg,
long argc, t_atom* argv);
32 void MidiFilterFree (MidiFilterPtr
self);
33 void MidiFilterAssist (MidiFilterPtr
self,
void* b,
long msg,
long arg,
char* dst);
34 t_max_err MidiFilterSetType (MidiFilterPtr
self,
void* attr,
long argc, t_atom* argv);
38 static t_class* sMidiFilterClass;
49 common_symbols_init();
51 c = class_new(
"j.midi.filter-", (method)MidiFilterNew, (method)MidiFilterFree,
sizeof(MidiFilter), (method)0L, A_GIMME, 0);
53 class_addmethod(c, (method)MaxGraphReset,
"graph.reset", A_CANT, 0);
54 class_addmethod(c, (method)MaxGraphSetup,
"graph.setup", A_CANT, 0);
55 class_addmethod(c, (method)MaxGraphConnect,
"graph.connect", A_OBJ, A_LONG, 0);
56 class_addmethod(c, (method)MaxGraphDrop,
"graph.drop", A_CANT, 0);
57 class_addmethod(c, (method)MaxGraphObject,
"graph.object", A_CANT, 0);
59 class_addmethod(c, (method)MidiFilterAssist,
"assist", A_CANT, 0);
60 class_addmethod(c, (method)object_obex_dumpout,
"dumpout", A_CANT, 0);
62 CLASS_ATTR_SYM(c,
"type", 0, MidiFilter, attrType);
63 CLASS_ATTR_ACCESSORS(c,
"type", NULL, MidiFilterSetType);
65 class_register(_sym_box, c);
74 MidiFilterPtr MidiFilterNew(t_symbol* msg,
long argc, t_atom* argv)
80 self = MidiFilterPtr(object_alloc(sMidiFilterClass));
82 object_obex_store((
void*)
self, _sym_dumpout, (t_object*)outlet_new(
self, NULL));
83 self->graphOutlets[0] = outlet_new(
self,
"graph.connect");
90 if (!self->graphObject->mKernel.valid()) {
91 object_error(SELF,
"cannot load Jamoma object");
95 attr_args_process(
self, argc, argv);
102 void MidiFilterFree(MidiFilterPtr
self)
112 void MidiFilterAssist(MidiFilterPtr
self,
void* b,
long msg,
long arg,
char* dst)
115 strcpy (dst,
"dictionary input and control messages");
118 strcpy(dst,
"dictionary output");
120 strcpy(dst,
"dumpout");
127 t_max_err MidiFilterSetType(MidiFilterPtr
self,
void* attr,
long argc, t_atom* argv)
130 self->attrType = atom_getsym(argv);
131 self->graphObject->mKernel.set(
TT(
"type"),
TT(self->attrType->s_name));
The TTGraphObjectBase wraps a TTDSP object such that it is possible to build a dynamic graph of audio...
TTErr TTObjectBaseRelease(TTObjectBasePtr *anObject)
DEPRECATED.
Base class for all first-class Jamoma objects.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
void * TTPtr
A generic pointer.
TTErr TTObjectBaseInstantiate(const TTSymbol className, TTObjectBasePtr *returnedObjectPtr, const TTValue arguments)
DEPRECATED.
int C74_EXPORT main(void)
Set up this class as a Max external the first time an object of this kind is instantiated.
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
void resize(size_type n)
Change the number of elements.
[doxygenAppendixC_copyExample]