MOP Module
+ Collaboration diagram for MOP Module:

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_objectjit_mop_io_new (void)
 Constructs instance of t_jit_mop_io. More...
 
t_jit_objectjit_mop_io_newcopy (t_jit_mop_io *x)
 Constructs instance of t_jit_mop_io, copying settings of input. More...
 
t_jit_err jit_mop_io_free (t_jit_mop *x)
 Frees instance of t_jit_mop_io. More...
 
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. More...
 
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. More...
 
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. More...
 
t_jit_err jit_mop_io_matrix (t_jit_mop_io *x, void *m)
 Sets the internal matrix reference. More...
 
void * jit_mop_io_getmatrix (t_jit_mop_io *x)
 Retrieves the internal matrix reference. More...
 
t_jit_err jit_mop_io_ioproc (t_jit_mop_io *x, method ioproc)
 Sets the I/O procedure used when handling incoming matrices. More...
 
method jit_mop_io_getioproc (t_jit_mop_io *x)
 Retrieves the I/O procedure used when handling incoming matrices. More...
 
t_jit_objectjit_mop_new (long inputcount, long outputcount)
 Constructs instance of t_jit_mop. More...
 
t_jit_objectjit_mop_newcopy (t_jit_mop *x)
 Constructs instance of t_jit_mop, copying settings of input. More...
 
void * jit_mop_getinput (t_jit_mop *x, long i)
 Retrieves input at input list index specified. More...
 
void * jit_mop_getoutput (t_jit_mop *x, long i)
 Retrieves output at output list index specified. More...
 
void * jit_mop_getinputlist (t_jit_mop *x)
 Retrieves input list. More...
 
void * jit_mop_getoutputlist (t_jit_mop *x)
 Retrieves output list. More...
 
t_jit_err jit_mop_free (t_jit_mop *x)
 Frees instance of t_jit_mop. More...
 
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. More...
 
t_jit_err jit_mop_single_planecount (void *mop, long c)
 Utility function to set the planecount attribute for all MOP inputs and outputs. More...
 
t_jit_err jit_mop_methodall (void *mop, t_symbol *s,...)
 Utility function to send the same method to all MOP inputs and outputs. More...
 
t_jit_err jit_mop_input_nolink (void *mop, long c)
 Utility function to disable all linking attributes for a MOP input. More...
 
t_jit_err jit_mop_output_nolink (void *mop, long c)
 Utility function to disable all linking attributes for a MOP output. More...
 
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. More...
 
t_jit_err jit_mop_ioproc_copy_trunc (void *mop, void *mop_io, void *matrix)
 MOP I/O procedure to copy, but truncate input. More...
 
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. More...
 
t_symboljit_mop_ioproc_tosym (void *ioproc)
 Utility to convert MOP I/O procedure function to a human-readable type name. More...
 

Detailed Description

Function Documentation

t_jit_err jit_mop_free ( t_jit_mop x)

Frees instance of t_jit_mop.

Parameters
xt_jit_mop object pointer
Returns
t_jit_err error code
Warning
Use jit_object_free instead.

References t_jit_mop::inputlist, jit_object_free(), and t_jit_mop::outputlist.

+ Here is the call graph for this function:

void * jit_mop_getinput ( t_jit_mop x,
long  i 
)

Retrieves input at input list index specified.

Parameters
xt_jit_mop object pointer
iindex
Returns
t_jit_mop_io object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop.

References _jit_sym_getindex, and t_jit_mop::inputlist.

void * jit_mop_getinputlist ( t_jit_mop x)

Retrieves input list.

Parameters
xt_jit_mop object pointer
Returns
t_jit_linklist object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop.

References t_jit_mop::inputlist.

void * jit_mop_getoutput ( t_jit_mop x,
long  i 
)

Retrieves output at output list index specified.

Parameters
xt_jit_mop object pointer
iindex
Returns
t_jit_mop_io object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop.

References _jit_sym_getindex, and t_jit_mop::outputlist.

void * jit_mop_getoutputlist ( t_jit_mop x)

Retrieves output list.

Parameters
xt_jit_mop object pointer
Returns
t_jit_linklist object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop.

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.

Parameters
mopt_jit_mop object pointer
cinput index
Returns
t_jit_err error code

References _jit_sym_getindex, gensym(), t_jit_mop::inputlist, and jit_attr_setlong().

+ Here is the call graph for this function:

t_jit_err jit_mop_io_free ( t_jit_mop x)

Frees instance of t_jit_mop_io.

Parameters
xt_jit_mop_io object pointer
Returns
t_jit_err error code
Warning
Use jit_object_free instead.
method jit_mop_io_getioproc ( t_jit_mop_io x)

Retrieves the I/O procedure used when handling incoming matrices.

Parameters
xt_jit_mop_io object pointer
Returns
I/O procedure
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

References t_jit_mop_io::ioproc.

void * jit_mop_io_getmatrix ( t_jit_mop_io x)

Retrieves the internal matrix reference.

Parameters
xt_jit_mop_io object pointer
Returns
t_jit_matrix object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

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.

Parameters
xt_jit_mop_io object pointer
ioprocI/O procedure
Returns
t_jit_err error code
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

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.

Parameters
xt_jit_mop_io object pointer
mt_jit_matrix object pointer
Returns
t_jit_err error code
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

References t_jit_mop_io::matrix.

t_jit_object * jit_mop_io_newcopy ( t_jit_mop_io x)

Constructs instance of t_jit_mop_io, copying settings of input.

Parameters
xt_jit_mop_io object pointer
Returns
t_jit_mop_io object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.
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.

Parameters
xt_jit_mop_io object pointer
infot_jit_matrix_info pointer
Returns
t_jit_err error code
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

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.

Parameters
xt_jit_mop_io object pointer
infot_jit_matrix_info pointer
Returns
t_jit_err error code
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

References 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.

Parameters
xt_jit_mop_io object pointer
infot_jit_matrix_info pointer
Returns
t_jit_err error code
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop_io.

References _jit_sym_type, jit_attr_getsym(), t_jit_mop_io::matrix, t_jit_matrix_info::type, t_jit_mop_io::types, and t_jit_mop_io::typescount.

+ Here is the call graph for this function:

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.

Parameters
mopt_jit_mop object pointer
mop_iot_jit_mop_io object pointer
matrixt_jit_matrix object pointer
Returns
t_jit_err error code
1 void *m;
2 t_jit_matrix_info info;
3 
4 if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) {
5  jit_object_method(matrix,_jit_sym_getinfo,&info);
6  jit_object_method(mop_io,_jit_sym_restrict_type,&info);
7  jit_object_method(mop_io,_jit_sym_restrict_dim,&info);
8  jit_object_method(mop_io,_jit_sym_restrict_planecount,&info);
9  jit_object_method(m,_jit_sym_setinfo,&info);
10  jit_object_method(m,_jit_sym_frommatrix,matrix,NULL);
11 }
12 
13 return JIT_ERR_NONE;

References _jit_sym_frommatrix, _jit_sym_getinfo, _jit_sym_getmatrix, _jit_sym_restrict_dim, _jit_sym_restrict_planecount, _jit_sym_restrict_type, and _jit_sym_setinfo.

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.

Parameters
mopt_jit_mop object pointer
mop_iot_jit_mop_io object pointer
matrixt_jit_matrix object pointer
Returns
t_jit_err error code
1 void *m;
2 t_jit_matrix_info info;
3 
4 if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) {
5  jit_object_method(m,_jit_sym_frommatrix_trunc,matrix);
6 }
7 
8 return JIT_ERR_NONE;

References _jit_sym_frommatrix_trunc, and _jit_sym_getmatrix.

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.

Parameters
mopt_jit_mop object pointer
mop_iot_jit_mop_io object pointer
matrixt_jit_matrix object pointer
Returns
t_jit_err error code
1 void *m;
2 t_jit_matrix_info info;
3 
4 if (matrix&&(m=jit_object_method(mop_io,_jit_sym_getmatrix))) {
5  jit_object_method(m,_jit_sym_clear);
6  jit_object_method(m,_jit_sym_frommatrix_trunc,matrix);
7 }
8 
9 return JIT_ERR_NONE;

References _jit_sym_clear, _jit_sym_frommatrix_trunc, and _jit_sym_getmatrix.

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.

Parameters
ioproct_jit_mop_io procedure pointer
Returns
t_symbol pointer
1 if (ioproc==NULL) {
2 return ps_resamp;
3 } else if (ioproc==jit_mop_ioproc_copy_adapt) {
4 return ps_adapt;
5 } else if (ioproc==jit_mop_ioproc_copy_trunc) {
6 return ps_trunc;
7 } else if (ioproc==jit_mop_ioproc_copy_trunc_zero) {
8 return ps_trunc_zero;
9 } else {
10 return ps_custom;
11 }
12 return ps_resamp;

References jit_mop_ioproc_copy_adapt(), jit_mop_ioproc_copy_trunc(), and jit_mop_ioproc_copy_trunc_zero().

+ Here is the call graph for this function:

t_jit_err jit_mop_methodall ( void *  mop,
t_symbol s,
  ... 
)

Utility function to send the same method to all MOP inputs and outputs.

Parameters
mopt_jit_mop object pointer
smethod symbol
...untyped arguments
Returns
t_jit_err error code

References _jit_sym_getindex, t_jit_mop::inputcount, t_jit_mop::inputlist, 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.

Returns
t_jit_mop object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_new.

References _jit_sym_append, t_jit_mop::adapt, t_jit_mop::caninplace, gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_attr_setsym(), jit_object_free(), t_jit_mop::outputcount, t_jit_mop::outputlist, t_jit_mop::outputmode, and t_jit_mop::special.

+ Here is the call graph for this function:

t_jit_object * jit_mop_newcopy ( t_jit_mop x)

Constructs instance of t_jit_mop, copying settings of input.

Parameters
xt_jit_mop object pointer
Returns
t_jit_mop object pointer
Warning
This function is not exported, but is provided for reference when calling via jit_object_method on an intance of t_jit_mop.

References _jit_sym_append, _jit_sym_getindex, _jit_sym_newcopy, gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_object_free(), t_jit_mop::outputcount, and t_jit_mop::outputlist.

+ Here is the call graph for this function:

t_jit_err jit_mop_output_nolink ( void *  mop,
long  c 
)

Utility function to disable all linking attributes for a MOP output.

Parameters
mopt_jit_mop object pointer
coutput index
Returns
t_jit_err error code

References _jit_sym_getindex, gensym(), jit_attr_setlong(), and t_jit_mop::outputlist.

+ Here is the call graph for this function:

t_jit_err jit_mop_single_planecount ( void *  mop,
long  c 
)

Utility function to set the planecount attribute for all MOP inputs and outputs.

Parameters
mopt_jit_mop object pointer
cplanecount
Returns
t_jit_err error code

References _jit_sym_getindex, gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_attr_setlong(), t_jit_mop::outputcount, and t_jit_mop::outputlist.

+ Here is the call graph for this function:

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.

Parameters
mopt_jit_mop object pointer
stype symbol
Returns
t_jit_err error code

References _jit_sym_getindex, gensym(), t_jit_mop::inputcount, t_jit_mop::inputlist, jit_atom_setsym(), t_jit_mop::outputcount, and t_jit_mop::outputlist.

+ Here is the call graph for this function:

  Copyright © 2015, Cycling '74