MOP Max Wrapper Module
+ Collaboration diagram for MOP Max Wrapper Module:

Functions

t_jit_err max_jit_classex_mop_wrap (void *mclass, void *jclass, long flags)
 Adds default methods and attributes to the MOP Max wrapper class. More...
 
t_jit_err max_jit_classex_mop_mproc (void *mclass, void *jclass, void *mproc)
 Sets a custom matrix procedure for the MOP Max wrapper class. More...
 
t_jit_err max_jit_mop_setup (void *x)
 Sets up necessary resources for MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_variable_addinputs (void *x, long c)
 Sets the number of inputs for a variable input MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_variable_addoutputs (void *x, long c)
 Sets the number of outputs for a variable input MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_inputs (void *x)
 Creates input resources for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_outputs (void *x)
 Creates output resources for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_matrixout_new (void *x, long c)
 Creates matrix outlet for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_matrix_args (void *x, long argc, t_atom *argv)
 Process matrix arguments for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_jit_matrix (void *x, t_symbol *s, long argc, t_atom *argv)
 Default jit_matrix method for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_assist (void *x, void *b, long m, long a, char *s)
 Default assist method for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_bang (void *x)
 Default bang method for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_outputmatrix (void *x)
 Default outputmatrix method for a MOP Max wrapper object. More...
 
void max_jit_mop_clear (void *x)
 Default clear method for a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_notify (void *x, t_symbol *s, t_symbol *msg)
 Default notify method for a MOP Max wrapper object. More...
 
void max_jit_mop_free (void *x)
 Frees additional resources used by a MOP Max wrapper object. More...
 
t_jit_err max_jit_mop_adapt_matrix_all (void *x, void *y)
 Adapts all input and output matrices to matrix specified. More...
 
void * max_jit_mop_get_io_by_name (void *x, t_symbol *s)
 Retrieves t_jit_mop_io object pointer by name. More...
 
void * max_jit_mop_getinput (void *x, long c)
 Retrieves input t_jit_mop_io object pointer index. More...
 
void * max_jit_mop_getoutput (void *x, long c)
 Retrieves output t_jit_mop_io object pointer index. More...
 
long max_jit_mop_getoutputmode (void *x)
 Retrieves current MOP Max wrapper class output mode. More...
 
t_jit_err max_jit_mop_setup_simple (void *x, void *o, long argc, t_atom *argv)
 Initializes default state and resources for MOP Max wrapper class. More...
 

Detailed Description

Function Documentation

t_jit_err max_jit_classex_mop_mproc ( void *  mclass,
void *  jclass,
void *  mproc 
)

Sets a custom matrix procedure for the MOP Max wrapper class.

Parameters
mclassmax jit classex pointer returned from max_jit_classex_setup
jclasst_jit_class pointer, typcially returned from jit_class_findbyname
mprocmatrix procedure
Returns
t_jit_err error code

References _jit_sym_jit_mop, _jit_sym_special, and jit_class_adornment_get().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_adapt_matrix_all ( void *  x,
void *  y 
)

Adapts all input and output matrices to matrix specified.

Typically used within the MOP Max Wrapper jit_matrix method for left most input.

Parameters
xMax object pointer
ymatrix to adapt to
Returns
t_jit_err error code

References _jit_sym_dimlink, _jit_sym_frommatrix, _jit_sym_getinfo, _jit_sym_getinput, _jit_sym_getioproc, _jit_sym_getmatrix, _jit_sym_getoutput, _jit_sym_inputcount, _jit_sym_jit_matrix, _jit_sym_jit_mop, _jit_sym_outputcount, _jit_sym_planelink, _jit_sym_setinfo, _jit_sym_typelink, t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, jit_attr_getlong(), jit_object_free(), max_jit_obex_adornment_get(), t_jit_matrix_info::planecount, and t_jit_matrix_info::type.

Referenced by max_jit_mop_jit_matrix().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_assist ( void *  x,
void *  b,
long  m,
long  a,
char *  s 
)

Default assist method for a MOP Max wrapper object.

Parameters
xMax object pointer
bignored
minlet or outlet type
aindex
soutput string
Returns
t_jit_err error code

References _jit_sym_getinput, _jit_sym_getoutput, _jit_sym_ioname, _jit_sym_jit_mop, jit_attr_getsym(), and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_bang ( void *  x)

Default bang method for a MOP Max wrapper object.

Simply calls the default outputmatrix method.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_outputmatrix, and typedmess().

Referenced by max_jit_classex_mop_wrap().

+ Here is the call graph for this function:

void max_jit_mop_clear ( void *  x)

Default clear method for a MOP Max wrapper object.

Calls the clear method on all input and output matrices.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_clear, _jit_sym_getinput, _jit_sym_getmatrix, _jit_sym_getoutput, _jit_sym_inputcount, _jit_sym_jit_mop, _jit_sym_outputcount, jit_attr_getlong(), and max_jit_obex_adornment_get().

Referenced by max_jit_classex_mop_wrap().

+ Here is the call graph for this function:

void max_jit_mop_free ( void *  x)

Frees additional resources used by a MOP Max wrapper object.

Parameters
xMax object pointer

References _jit_sym_getinput, _jit_sym_getmatrix, _jit_sym_getoutput, _jit_sym_inputcount, _jit_sym_jit_mop, _jit_sym_matrix, _jit_sym_matrixname, _jit_sym_outputcount, jit_attr_getlong(), jit_attr_getsym(), jit_attr_setsym(), jit_object_detach(), jit_object_free(), and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

void* max_jit_mop_get_io_by_name ( void *  x,
t_symbol s 
)

Retrieves t_jit_mop_io object pointer by name.

Parameters
xMax object pointer
sinput/output name (e.g. in, in2 , out, out2, etc.)
Returns
t_jit_err error code

References _jit_sym_getinput, _jit_sym_getoutput, _jit_sym_jit_mop, JIT_MOP_INPUT, JIT_MOP_OUTPUT, and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

void* max_jit_mop_getinput ( void *  x,
long  c 
)

Retrieves input t_jit_mop_io object pointer index.

Parameters
xMax object pointer
cinput index
Returns
t_jit_err error code

References _jit_sym_getinput, _jit_sym_jit_mop, and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

void* max_jit_mop_getoutput ( void *  x,
long  c 
)

Retrieves output t_jit_mop_io object pointer index.

Parameters
xMax object pointer
coutput index
Returns
t_jit_err error code

References _jit_sym_getoutput, _jit_sym_jit_mop, and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

long max_jit_mop_getoutputmode ( void *  x)

Retrieves current MOP Max wrapper class output mode.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_jit_mop, _jit_sym_outputmode, jit_attr_getlong(), and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_inputs ( void *  x)

Creates input resources for a MOP Max wrapper object.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_getinput, _jit_sym_inputcount, _jit_sym_jit_matrix, _jit_sym_jit_mop, _jit_sym_matrix, _jit_sym_matrixname, jit_attr_getlong(), jit_attr_setsym(), jit_matrix_info_default(), jit_object_attach(), jit_object_register(), max_jit_obex_adornment_get(), and max_jit_obex_proxy_new().

Referenced by max_jit_mop_setup_simple().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_jit_matrix ( void *  x,
t_symbol s,
long  argc,
t_atom argv 
)
t_jit_err max_jit_mop_matrix_args ( void *  x,
long  argc,
t_atom argv 
)
t_jit_err max_jit_mop_matrixout_new ( void *  x,
long  c 
)

Creates matrix outlet for a MOP Max wrapper object.

Parameters
xMax object pointer
coutput index (zero based)
Returns
t_jit_err error code

References _jit_sym_getoutput, _jit_sym_jit_mop, _jit_sym_special, max_jit_obex_adornment_get(), and outlet_new().

Referenced by max_jit_mop_outputs().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_notify ( void *  x,
t_symbol s,
t_symbol msg 
)

Default notify method for a MOP Max wrapper object.

Handles any notification methods from any input and output matrix.

Parameters
xMax object pointer
snotifier name
msgnotification message
Returns
t_jit_err error code

References _jit_sym_free, _jit_sym_getinfo, _jit_sym_getinput, _jit_sym_getoutput, _jit_sym_inputcount, _jit_sym_jit_matrix, _jit_sym_jit_mop, _jit_sym_matrixname, _jit_sym_outputcount, jit_attr_getlong(), jit_attr_getsym(), jit_attr_setsym(), jit_object_attach(), jit_object_findregistered(), jit_object_register(), and max_jit_obex_adornment_get().

Referenced by max_jit_classex_mop_wrap().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_outputmatrix ( void *  x)

Default outputmatrix method for a MOP Max wrapper object.

Calculates and outputs according to the MOP outputmode attribute.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_getoutput, _jit_sym_jit_matrix, _jit_sym_jit_mop, _jit_sym_matrixname, _jit_sym_outputcount, _jit_sym_outputmode, jit_atom_setsym(), jit_attr_getlong(), jit_attr_getsym(), max_jit_obex_adornment_get(), and outlet_anything().

Referenced by max_jit_classex_mop_wrap(), and max_jit_mop_jit_matrix().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_outputs ( void *  x)

Creates output resources for a MOP Max wrapper object.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_getoutput, _jit_sym_jit_matrix, _jit_sym_jit_mop, _jit_sym_matrix, _jit_sym_matrixname, _jit_sym_outputcount, jit_attr_getlong(), jit_attr_setsym(), jit_matrix_info_default(), jit_object_attach(), jit_object_register(), max_jit_mop_matrixout_new(), and max_jit_obex_adornment_get().

Referenced by max_jit_mop_setup_simple().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_setup ( void *  x)

Sets up necessary resources for MOP Max wrapper object.

Parameters
xMax object pointer
Returns
t_jit_err error code

References _jit_sym_jit_mop, _jit_sym_newcopy, jit_class_adornment_get(), jit_object_class(), and max_jit_obex_jitob_get().

Referenced by max_jit_mop_setup_simple().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_setup_simple ( void *  x,
void *  o,
long  argc,
t_atom argv 
)

Initializes default state and resources for MOP Max wrapper class.

Parameters
xMax object pointer
oJitter object pointer
argcargument count
argvargument vector
Returns
t_jit_err error code
1 max_jit_obex_jitob_set(x,o);
2 max_jit_obex_dumpout_set(x,outlet_new(x,NULL));
3 max_jit_mop_setup(x);
4 max_jit_mop_inputs(x);
5 max_jit_mop_outputs(x);
6 max_jit_mop_matrix_args(x,argc,argv);
7 
8 return JIT_ERR_NONE;

References max_jit_mop_inputs(), max_jit_mop_matrix_args(), max_jit_mop_outputs(), max_jit_mop_setup(), max_jit_obex_dumpout_set(), max_jit_obex_jitob_set(), and outlet_new().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_variable_addinputs ( void *  x,
long  c 
)

Sets the number of inputs for a variable input MOP Max wrapper object.

Parameters
xMax object pointer
cinlet count
Returns
t_jit_err error code

References _jit_sym_jit_mop, gensym(), and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

t_jit_err max_jit_mop_variable_addoutputs ( void *  x,
long  c 
)

Sets the number of outputs for a variable input MOP Max wrapper object.

Parameters
xMax object pointer
cinlet count
Returns
t_jit_err error code

References _jit_sym_jit_mop, gensym(), and max_jit_obex_adornment_get().

+ Here is the call graph for this function:

  Copyright © 2015, Cycling '74