Max 5 API Reference
![]() |
Data Structures | |
struct | t_jit_mop_io |
t_jit_mop_io object struct. More... | |
struct | t_jit_mop |
t_jit_mop object struct. More... | |
Functions | |
t_jit_object * | jit_mop_io_new (void) |
Constructs instance of t_jit_mop_io. | |
t_jit_object * | jit_mop_io_newcopy (t_jit_mop_io *x) |
Constructs instance of t_jit_mop_io, copying settings of input. | |
t_jit_err | jit_mop_io_free (t_jit_mop *x) |
Frees instance of t_jit_mop_io. | |
t_jit_err | jit_mop_io_restrict_type (t_jit_mop_io *x, t_jit_matrix_info *info) |
Restricts the type specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct. | |
t_jit_err | jit_mop_io_restrict_planecount (t_jit_mop_io *x, t_jit_matrix_info *info) |
Restricts the planecount specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct. | |
t_jit_err | jit_mop_io_restrict_dim (t_jit_mop_io *x, t_jit_matrix_info *info) |
Restricts the dimension sizes specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct. | |
t_jit_err | jit_mop_io_matrix (t_jit_mop_io *x, void *m) |
Sets the internal matrix reference. | |
void * | jit_mop_io_getmatrix (t_jit_mop_io *x) |
Retrieves the internal matrix reference. | |
t_jit_err | jit_mop_io_ioproc (t_jit_mop_io *x, method ioproc) |
Sets the I/O procedure used when handling incoming matrices. | |
method | jit_mop_io_getioproc (t_jit_mop_io *x) |
Retrieves the I/O procedure used when handling incoming matrices. | |
t_jit_object * | jit_mop_new (long inputcount, long outputcount) |
Constructs instance of t_jit_mop. | |
t_jit_object * | jit_mop_newcopy (t_jit_mop *x) |
Constructs instance of t_jit_mop, copying settings of input. | |
void * | jit_mop_getinput (t_jit_mop *x, long i) |
Retrieves input at input list index specified. | |
void * | jit_mop_getoutput (t_jit_mop *x, long i) |
Retrieves output at output list index specified. | |
void * | jit_mop_getinputlist (t_jit_mop *x) |
Retrieves input list. | |
void * | jit_mop_getoutputlist (t_jit_mop *x) |
Retrieves output list. | |
t_jit_err | jit_mop_free (t_jit_mop *x) |
Frees instance of t_jit_mop. | |
t_jit_err | jit_mop_single_type (void *mop, t_symbol *s) |
Utility function to set the type attribute for all MOP inputs and outputs. | |
t_jit_err | jit_mop_single_planecount (void *mop, long c) |
Utility function to set the planecount attribute for all MOP inputs and outputs. | |
t_jit_err | jit_mop_methodall (void *mop, t_symbol *s,...) |
Utility function to send the same method to all MOP inputs and outputs. | |
t_jit_err | jit_mop_input_nolink (void *mop, long c) |
Utility function to disable all linking attributes for a MOP input. | |
t_jit_err | jit_mop_output_nolink (void *mop, long c) |
Utility function to disable all linking attributes for a MOP output. | |
t_jit_err | jit_mop_ioproc_copy_adapt (void *mop, void *mop_io, void *matrix) |
MOP I/O procedure to copy and adapt to input. | |
t_jit_err | jit_mop_ioproc_copy_trunc (void *mop, void *mop_io, void *matrix) |
MOP I/O procedure to copy, but truncate input. | |
t_jit_err | jit_mop_ioproc_copy_trunc_zero (void *mop, void *mop_io, void *matrix) |
MOP I/O procedure to copy, but truncate input. | |
t_symbol * | jit_mop_ioproc_tosym (void *ioproc) |
Utility to convert MOP I/O procedure function to a human-readable type name. |
t_jit_err jit_mop_free | ( | t_jit_mop * | x | ) |
Frees instance of t_jit_mop.
x | t_jit_mop object pointer |
Definition at line 720 of file jit.mop.c.
References t_jit_mop::inputlist, jit_object_free(), and t_jit_mop::outputlist.
void * jit_mop_getinput | ( | t_jit_mop * | x, | |
long | i | |||
) |
Retrieves input at input list index specified.
x | t_jit_mop object pointer | |
i | index |
Definition at line 637 of file jit.mop.c.
References t_jit_mop::inputlist, and jit_object_method().
void * jit_mop_getinputlist | ( | t_jit_mop * | x | ) |
Retrieves input list.
x | t_jit_mop object pointer |
Definition at line 680 of file jit.mop.c.
References t_jit_mop::inputlist.
void * jit_mop_getoutput | ( | t_jit_mop * | x, | |
long | i | |||
) |
Retrieves output at output list index specified.
x | t_jit_mop object pointer | |
i | index |
Definition at line 659 of file jit.mop.c.
References jit_object_method(), and t_jit_mop::outputlist.
void * jit_mop_getoutputlist | ( | t_jit_mop * | x | ) |
Retrieves output list.
x | t_jit_mop object pointer |
Definition at line 701 of file jit.mop.c.
References t_jit_mop::outputlist.
t_jit_err jit_mop_input_nolink | ( | void * | mop, | |
long | c | |||
) |
Utility function to disable all linking attributes for a MOP input.
mop | t_jit_mop object pointer | |
c | input index |
Definition at line 915 of file jit.mop.c.
References gensym(), t_jit_mop::inputlist, jit_attr_setlong(), and jit_object_method().
t_jit_err jit_mop_io_free | ( | t_jit_mop * | x | ) |
Frees instance of t_jit_mop_io.
x | t_jit_mop_io object pointer |
method jit_mop_io_getioproc | ( | t_jit_mop_io * | x | ) |
Retrieves the I/O procedure used when handling incoming matrices.
x | t_jit_mop_io object pointer |
Definition at line 492 of file jit.mop.c.
References t_jit_mop_io::ioproc.
void * jit_mop_io_getmatrix | ( | t_jit_mop_io * | x | ) |
Retrieves the internal matrix reference.
x | t_jit_mop_io object pointer |
Definition at line 454 of file jit.mop.c.
References t_jit_mop_io::matrix.
t_jit_err jit_mop_io_ioproc | ( | t_jit_mop_io * | x, | |
method | ioproc | |||
) |
Sets the I/O procedure used when handling incoming matrices.
x | t_jit_mop_io object pointer | |
ioproc | I/O procedure |
Definition at line 473 of file jit.mop.c.
References t_jit_mop_io::ioproc.
t_jit_err jit_mop_io_matrix | ( | t_jit_mop_io * | x, | |
void * | m | |||
) |
Sets the internal matrix reference.
x | t_jit_mop_io object pointer | |
m | t_jit_matrix object pointer |
Definition at line 435 of file jit.mop.c.
References t_jit_mop_io::matrix.
t_jit_object * jit_mop_io_new | ( | void | ) |
Constructs instance of t_jit_mop_io.
Definition at line 227 of file jit.mop.c.
References t_jit_mop_io::dimlink, gensym(), t_jit_mop_io::ioname, t_jit_mop_io::ioproc, JIT_MATRIX_MAX_DIMCOUNT, JIT_MATRIX_MAX_PLANECOUNT, t_jit_mop_io::matrix, t_jit_mop_io::matrixname, t_jit_mop_io::maxdim, t_jit_mop_io::maxdimcount, t_jit_mop_io::maxplanecount, t_jit_mop_io::mindim, t_jit_mop_io::mindimcount, t_jit_mop_io::minplanecount, t_jit_mop_io::planelink, t_jit_mop_io::special, t_jit_mop_io::typelink, t_jit_mop_io::types, and t_jit_mop_io::typescount.
t_jit_object * jit_mop_io_newcopy | ( | t_jit_mop_io * | x | ) |
Constructs instance of t_jit_mop_io, copying settings of input.
x | t_jit_mop_io object pointer |
t_jit_err jit_mop_io_restrict_dim | ( | t_jit_mop_io * | x, | |
t_jit_matrix_info * | info | |||
) |
Restricts the dimension sizes specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct.
x | t_jit_mop_io object pointer | |
info | t_jit_matrix_info pointer |
Definition at line 381 of file jit.mop.c.
References t_jit_matrix_info::dim, t_jit_matrix_info::dimcount, JIT_MATRIX_MAX_DIMCOUNT, MAX, t_jit_mop_io::maxdim, t_jit_mop_io::maxdimcount, t_jit_mop_io::mindim, and t_jit_mop_io::mindimcount.
t_jit_err jit_mop_io_restrict_planecount | ( | t_jit_mop_io * | x, | |
t_jit_matrix_info * | info | |||
) |
Restricts the planecount specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct.
x | t_jit_mop_io object pointer | |
info | t_jit_matrix_info pointer |
Definition at line 351 of file jit.mop.c.
References CLIP, t_jit_mop_io::maxplanecount, t_jit_mop_io::minplanecount, and t_jit_matrix_info::planecount.
t_jit_err jit_mop_io_restrict_type | ( | t_jit_mop_io * | x, | |
t_jit_matrix_info * | info | |||
) |
Restricts the type specified in t_jit_matrix_info struct to those permitted by t_jit_mop_io instance, overwriting value in t_jit_matrix_info struct.
x | t_jit_mop_io object pointer | |
info | t_jit_matrix_info pointer |
Definition at line 317 of file jit.mop.c.
References jit_attr_getsym(), t_jit_mop_io::matrix, t_jit_matrix_info::type, t_jit_mop_io::types, and t_jit_mop_io::typescount.
t_jit_err jit_mop_ioproc_copy_adapt | ( | void * | mop, | |
void * | mop_io, | |||
void * | matrix | |||
) |
MOP I/O procedure to copy and adapt to input.
mop | t_jit_mop object pointer | |
mop_io | t_jit_mop_io object pointer | |
matrix | t_jit_matrix object pointer |
void *m; t_jit_matrix_info info; if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) { jit_object_method(matrix,_jit_sym_getinfo,&info); jit_object_method(mop_io,_jit_sym_restrict_type,&info); jit_object_method(mop_io,_jit_sym_restrict_dim,&info); jit_object_method(mop_io,_jit_sym_restrict_planecount,&info); jit_object_method(m,_jit_sym_setinfo,&info); jit_object_method(m,_jit_sym_frommatrix,matrix,NULL); } return JIT_ERR_NONE;
Definition at line 984 of file jit.mop.c.
References jit_object_method().
Referenced by jit_mop_ioproc_tosym().
t_jit_err jit_mop_ioproc_copy_trunc | ( | void * | mop, | |
void * | mop_io, | |||
void * | matrix | |||
) |
MOP I/O procedure to copy, but truncate input.
mop | t_jit_mop object pointer | |
mop_io | t_jit_mop_io object pointer | |
matrix | t_jit_matrix object pointer |
void *m; t_jit_matrix_info info; if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) { jit_object_method(m,_jit_sym_frommatrix_trunc,matrix); } return JIT_ERR_NONE;
Definition at line 1024 of file jit.mop.c.
References jit_object_method().
Referenced by jit_mop_ioproc_tosym().
t_jit_err jit_mop_ioproc_copy_trunc_zero | ( | void * | mop, | |
void * | mop_io, | |||
void * | matrix | |||
) |
MOP I/O procedure to copy, but truncate input.
Zero elsewhere.
mop | t_jit_mop object pointer | |
mop_io | t_jit_mop_io object pointer | |
matrix | t_jit_matrix object pointer |
void *m; t_jit_matrix_info info; if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) { jit_object_method(m,_jit_sym_clear); jit_object_method(m,_jit_sym_frommatrix_trunc,matrix); } return JIT_ERR_NONE;
Definition at line 1059 of file jit.mop.c.
References jit_object_method().
Referenced by jit_mop_ioproc_tosym().
t_symbol* jit_mop_ioproc_tosym | ( | void * | ioproc | ) |
Utility to convert MOP I/O procedure function to a human-readable type name.
ioproc | t_jit_mop_io procedure pointer |
if (ioproc==NULL) { return ps_resamp; } else if (ioproc==jit_mop_ioproc_copy_adapt) { return ps_adapt; } else if (ioproc==jit_mop_ioproc_copy_trunc) { return ps_trunc; } else if (ioproc==jit_mop_ioproc_copy_trunc_zero) { return ps_trunc_zero; } else { return ps_custom; } return ps_resamp;
Definition at line 1098 of file jit.mop.c.
References jit_mop_ioproc_copy_adapt(), jit_mop_ioproc_copy_trunc(), and jit_mop_ioproc_copy_trunc_zero().
t_jit_err jit_mop_methodall | ( | void * | mop, | |
t_symbol * | s, | |||
... | ||||
) |
Utility function to send the same method to all MOP inputs and outputs.
mop | t_jit_mop object pointer | |
s | method symbol | |
... | untyped arguments |
Definition at line 883 of file jit.mop.c.
References t_jit_mop::inputcount, t_jit_mop::inputlist, jit_object_method(), t_jit_mop::outputcount, and t_jit_mop::outputlist.
t_jit_object * jit_mop_new | ( | long | inputcount, | |
long | outputcount | |||
) |
Constructs instance of t_jit_mop.
Definition at line 516 of file jit.mop.c.
References t_jit_mop::adapt, t_jit_mop::caninplace, gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_attr_setsym(), jit_object_free(), jit_object_method(), jit_object_new(), t_jit_mop::outputcount, t_jit_mop::outputlist, t_jit_mop::outputmode, and t_jit_mop::special.
t_jit_object * jit_mop_newcopy | ( | t_jit_mop * | x | ) |
Constructs instance of t_jit_mop, copying settings of input.
x | t_jit_mop object pointer |
Definition at line 580 of file jit.mop.c.
References gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_object_free(), jit_object_method(), jit_object_new(), t_jit_mop::outputcount, and t_jit_mop::outputlist.
t_jit_err jit_mop_output_nolink | ( | void * | mop, | |
long | c | |||
) |
Utility function to disable all linking attributes for a MOP output.
mop | t_jit_mop object pointer | |
c | output index |
Definition at line 941 of file jit.mop.c.
References gensym(), jit_attr_setlong(), jit_object_method(), and t_jit_mop::outputlist.
t_jit_err jit_mop_single_planecount | ( | void * | mop, | |
long | c | |||
) |
Utility function to set the planecount attribute for all MOP inputs and outputs.
mop | t_jit_mop object pointer | |
c | planecount |
Definition at line 848 of file jit.mop.c.
References gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_attr_setlong(), jit_object_method(), t_jit_mop::outputcount, and t_jit_mop::outputlist.
t_jit_err jit_mop_single_type | ( | void * | mop, | |
t_symbol * | s | |||
) |
Utility function to set the type attribute for all MOP inputs and outputs.
mop | t_jit_mop object pointer | |
s | type symbol |
Definition at line 814 of file jit.mop.c.
References gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_atom_setsym(), jit_object_method(), t_jit_mop::outputcount, and t_jit_mop::outputlist.