Jamoma API  0.6.0.a19
PureData/source/j.model/j.model.h File Reference

j.model / j.view - The main control center of Jamoma model and view patcher More...

+ Include dependency graph for PureData/source/j.model/j.model.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  t_extra
 Data structure for storing extra data. More...
 

Functions

void WrapTTContainerClass (WrappedClassPtr c)
 Set up what methods (Max messages) that the wrapped class is to respond to. More...
 
void WrappedContainerClass_new (TTPtr self, long argc, t_atom *argv)
 Constructor: Initiate the wrapped object instance. More...
 
void WrappedContainerClass_free (TTPtr self)
 Deconstructor: Destroy the object and free memory assigned to it. More...
 
void WrappedContainerClass_anything (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Display assist messages for inlets and outlets in Max. More...
 
void model_share_patcher_info (TTPtr self, TTValuePtr patcherInfo)
 
void model_share_patcher_node (TTPtr self, TTNodePtr *patcherNode)
 
void model_return_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_return_value (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_subscribe (TTPtr self)
 
void model_subscribe_view (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_return_upper_view_model_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_init (TTPtr self)
 
void model_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_reference_write (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_reference_dowrite (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_amenities (TTPtr self)
 
void model_preset_return_names (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_filechanged (TTPtr self, char *filename, short path)
 
void model_preset_read (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_doread (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_read_again (TTPtr self)
 
void model_preset_doread_again (TTPtr self)
 
void model_preset_write (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_dowrite (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_write_again (TTPtr self)
 
void model_preset_dowrite_again (TTPtr self)
 
void model_preset_default (TTPtr self)
 
void model_preset_dorecall (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_edit (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_preset_edclose (TTPtr self, char **text, long size)
 
void model_preset_doedit (TTPtr self)
 
t_max_err model_preset_get_presets (TTPtr self, TTPtr attr, long *ac, t_atom **av)
 
t_max_err model_preset_set_presets (TTPtr self, TTPtr attr, long ac, t_atom *av)
 
t_max_err model_get_amenities (TTPtr self, TTPtr attr, long *ac, t_atom **av)
 
t_max_err model_set_amenities (TTPtr self, TTPtr attr, long ac, t_atom *av)
 
TTBoolean model_test_amenities (TTPtr self, TTSymbol name)
 
void model_signal_amenities (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_data_active (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_data_bypass (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_audio_mute (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_audio_bypass (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_audio_mix (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void model_signal_return_audio_gain (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 

Detailed Description

j.model / j.view - The main control center of Jamoma model and view patcher

Authors
Tim Place, Théo de la Hogue, Trond Lossius

Definition in file PureData/source/j.model/j.model.h.

Function Documentation

void model_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 570 of file Max/source/j.model/j.model.cpp.

References WrappedModularInstance::patcherContext.

Referenced by WrapTTContainerClass().

void model_assist ( TTPtr  self,
void *  b,
long  msg,
long  arg,
char *  dst 
)

Display assist messages for inlets and outlets in Max.

Parameters
selfPointer to the object.
bThis does not seem to be used.
msg"1" if we are to display assist message for an inlet, else we are to display assist message for an outlet.
argThe number of the inlet or outlet that we are to display assist message for. 0 is the leftmost.
dstPointer to the destination used for displaying the assist message.

Definition at line 464 of file Max/source/j.model/j.model.cpp.

References WrappedModularInstance::patcherContext.

Referenced by WrapTTContainerClass().

t_max_err model_get_amenities ( TTPtr  self,
TTPtr  attr,
long *  ac,
t_atom **  av 
)
Parameters
self
attr
ac
av

Definition at line 587 of file Max/source/j.model/j.model.cpp.

References jamoma_ttvalue_to_Atom(), and TTValue::size().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_init ( TTPtr  self)
Parameters
self

Definition at line 450 of file Max/source/j.model/j.model.cpp.

References TTObject::get(), TTObject::send(), and WrappedModularInstance::wrappedObject.

Referenced by model_subscribe().

+ Here is the call graph for this function:

void model_preset_amenities ( TTPtr  self)
Parameters
self

Definition at line 19 of file Max/source/j.model/j.model_preset.cpp.

References TTAddress::appendAddress(), jamoma_presetManager_create(), model_preset_default(), WrappedModularInstance::patcherPtr, and TTObject::send().

+ Here is the call graph for this function:

void model_preset_default ( TTPtr  self)
Parameters
self

Definition at line 221 of file Max/source/j.model/j.model_preset.cpp.

References jamoma_edit_filename(), model_preset_doread(), model_preset_dorecall(), WrappedModularInstance::patcherClass, and WrappedModularInstance::patcherContext.

Referenced by model_preset_amenities().

+ Here is the call graph for this function:

void model_preset_doedit ( TTPtr  self)
Parameters
self

Definition at line 418 of file Max/source/j.model/j.model_preset.cpp.

References WrappedModularInstance::internals, TTHash::lookup(), and TTObject::send().

Referenced by model_preset_edclose().

+ Here is the call graph for this function:

void model_preset_doread ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 70 of file Max/source/j.model/j.model_preset.cpp.

References TTValue::append(), WrappedModularInstance::internals, jamoma_file_read(), TTHash::lookup(), TTObject::send(), and TTObject::set().

Referenced by model_preset_default(), model_preset_filechanged(), and model_preset_read().

+ Here is the call graph for this function:

void model_preset_doread_again ( TTPtr  self)
Parameters
self

Definition at line 108 of file Max/source/j.model/j.model_preset.cpp.

References WrappedModularInstance::internals, TTHash::lookup(), TTObject::send(), and TTObject::set().

Referenced by model_preset_read_again().

+ Here is the call graph for this function:

void model_preset_dorecall ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 301 of file Max/source/j.model/j.model_preset.cpp.

Referenced by model_preset_default().

void model_preset_dowrite ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 139 of file Max/source/j.model/j.model_preset.cpp.

References TTValue::append(), TTSymbol::c_str(), WrappedModularInstance::internals, jamoma_file_write(), TTHash::lookup(), WrappedModularInstance::patcherClass, WrappedModularInstance::patcherContext, TTObject::send(), and TTObject::set().

Referenced by model_preset_write().

+ Here is the call graph for this function:

void model_preset_dowrite_again ( TTPtr  self)
Parameters
self

Definition at line 187 of file Max/source/j.model/j.model_preset.cpp.

References WrappedModularInstance::internals, TTHash::lookup(), TTObject::send(), and TTObject::set().

Referenced by model_preset_write_again().

+ Here is the call graph for this function:

void model_preset_edclose ( TTPtr  self,
char **  text,
long  size 
)
Parameters
self
text
size

Definition at line 408 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_doedit().

+ Here is the call graph for this function:

void model_preset_edit ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 346 of file PureData/source/j.model/j.model_preset.cpp.

References TTHash::lookup(), and TTValue::size().

+ Here is the call graph for this function:

void model_preset_filechanged ( TTPtr  self,
char *  filename,
short  path 
)
Parameters
self
filename
path

Definition at line 273 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_doread().

+ Here is the call graph for this function:

t_max_err model_preset_get_presets ( TTPtr  self,
TTPtr  attr,
long *  ac,
t_atom **  av 
)
Parameters
self
attr
ac
av

Definition at line 467 of file Max/source/j.model/j.model_preset.cpp.

void model_preset_read ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 65 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_doread().

+ Here is the call graph for this function:

void model_preset_read_again ( TTPtr  self)
Parameters
self

Definition at line 103 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_doread_again().

+ Here is the call graph for this function:

void model_preset_return_names ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 59 of file Max/source/j.model/j.model_preset.cpp.

References WrappedModularInstance::outlets.

t_max_err model_preset_set_presets ( TTPtr  self,
TTPtr  attr,
long  ac,
t_atom *  av 
)
Parameters
self
attr
ac
av

Definition at line 492 of file PureData/source/j.model/j.model_preset.cpp.

void model_preset_write ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 134 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_dowrite().

+ Here is the call graph for this function:

void model_preset_write_again ( TTPtr  self)
Parameters
self

Definition at line 182 of file Max/source/j.model/j.model_preset.cpp.

References model_preset_dowrite_again().

+ Here is the call graph for this function:

void model_reference_dowrite ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 540 of file Max/source/j.model/j.model.cpp.

References TTValue::append(), TTSymbol::c_str(), WrappedModularInstance::internals, jamoma_file_write(), TTHash::lookup(), WrappedModularInstance::patcherClass, TTObject::send(), TTObject::set(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by model_reference_write().

+ Here is the call graph for this function:

void model_reference_write ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 535 of file Max/source/j.model/j.model.cpp.

References model_reference_dowrite().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_return_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 519 of file Max/source/j.model/j.model.cpp.

Referenced by WrapTTContainerClass().

void model_return_upper_view_model_address ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 431 of file Max/source/j.model/j.model.cpp.

References TTAddress::appendAddress(), and jamoma_ttvalue_from_Atom().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_return_value ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 527 of file Max/source/j.model/j.model.cpp.

References WrappedModularInstance::outlets.

Referenced by WrapTTContainerClass().

t_max_err model_set_amenities ( TTPtr  self,
TTPtr  attr,
long  ac,
t_atom *  av 
)
Parameters
self
attr
ac
av

Definition at line 611 of file Max/source/j.model/j.model.cpp.

References jamoma_ttvalue_from_Atom(), and TTValue::size().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_share_patcher_info ( TTPtr  self,
TTValuePtr  patcherInfo 
)
Parameters
self
patcherInfo

Definition at line 487 of file Max/source/j.model/j.model.cpp.

References TTValue::append(), TTValue::clear(), WrappedModularInstance::patcherClass, WrappedModularInstance::patcherContext, WrappedModularInstance::patcherName, and WrappedModularInstance::patcherPtr.

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_share_patcher_node ( TTPtr  self,
TTNodePtr patcherNode 
)
Parameters
self
patcherNode

Definition at line 500 of file Max/source/j.model/j.model.cpp.

References TTObject::get(), WrappedModularInstance::subscriberObject, and TTObject::valid().

Referenced by WrapTTContainerClass().

+ Here is the call graph for this function:

void model_signal_amenities ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 19 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, WrappedModularInstance::iterateInternals, jamoma_patcher_get_input_output(), TTHash::lookup(), model_test_amenities(), WrappedModularInstance::patcherPtr, and TTObject::set().

+ Here is the call graph for this function:

void model_signal_return_audio_bypass ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 207 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, jamoma_ttvalue_from_Atom(), TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_signal_return_audio_gain ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 239 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, jamoma_ttvalue_from_Atom(), TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_signal_return_audio_mix ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 223 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, jamoma_ttvalue_from_Atom(), TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_signal_return_audio_mute ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 191 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, jamoma_ttvalue_from_Atom(), TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_signal_return_data_active ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 159 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_signal_return_data_bypass ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
self
attr
argc
argv

Definition at line 175 of file Max/source/j.model/j.model_signal.cpp.

References WrappedModularInstance::internals, jamoma_ttvalue_from_Atom(), TTHash::lookup(), and TTObject::send().

+ Here is the call graph for this function:

void model_subscribe_view ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
TTBoolean model_test_amenities ( TTPtr  self,
TTSymbol  name 
)
Parameters
self
name

Definition at line 635 of file Max/source/j.model/j.model.cpp.

Referenced by model_signal_amenities(), and model_subscribe().

void WrappedContainerClass_anything ( TTPtr  self,
t_symbol *  msg,
long  argc,
t_atom *  argv 
)
Parameters
selfPointer to the object.
msgThe message sent to the object.
argcThe number of arguments of the message.
argvThe arguments of the message as an array of atoms.

Definition at line 511 of file Max/source/j.model/j.model.cpp.

References jamoma_container_send(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrappedContainerClass_free ( TTPtr  self)

Deconstructor: Destroy the object and free memory assigned to it.

Parameters
selfPointer to the object.

Definition at line 150 of file Max/source/j.model/j.model.cpp.

References TTObject::send(), TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrappedContainerClass_new ( TTPtr  self,
long  argc,
t_atom *  argv 
)

Constructor: Initiate the wrapped object instance.

Parameters
selfPointer to the object.
argcThe number of arguments to the new object instance
argvPointer to the array of atoms containing the arguments to the object instance.

Definition at line 93 of file Max/source/j.model/j.model.cpp.

References WrappedModularInstance::extra, jamoma_container_create(), jamoma_patcher_get(), jamoma_patcher_get_model_or_view(), model_subscribe(), WrappedModularInstance::obj, WrappedModularInstance::outlets, WrappedModularInstance::patcherContext, TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function: