Jamoma API  0.6.0.a19
JamomaModularForMax.cpp File Reference

JamomaModular For Max Shared Library. More...

+ Include dependency graph for JamomaModularForMax.cpp:

Go to the source code of this file.

Functions

TTErr jamoma_subscriber_create (t_object *x, TTObject &anObject, TTAddress relativeAddress, TTObject &returnedSubscriber, TTSymbol &returnedAddress, TTNodePtr *returnedNode, TTNodePtr *returnedContextNode)
 Create a #TTSubscriber object and register a TTObject into the tree or, if aTTObject is NULL, retrieve all context info to bind on an object. More...
 
t_symbol * jamoma_patcher_get_hierarchy (t_object *patcher)
 Get the hierarchy of the patcher : bpatcher, subpatcher or top level one. More...
 
t_object * jamoma_patcher_get (t_object *obj)
 Convenient method to get the patcher easily. More...
 
t_symbol * jamoma_parse_dieze (t_object *x, t_symbol *address)
 Parse #N inside address and replace them by parent patcher arguments if there are. More...
 
void jamoma_subscriber_get_patcher_list (t_object *x, TTList &aContextListToFill)
 Get the <patcher name, patcher pointer> list above an external. More...
 
TTErr jamoma_container_create (t_object *x, TTObject &returnedContainer)
 Create a container object. More...
 
TTErr jamoma_container_send (TTObject &aContainer, t_symbol *relativeAddressAndAttribute, long argc, const t_atom *argv)
 Send Max data to a node (e.g., a j.parameter object) using a container object. More...
 
TTErr JAMOMA_EXPORT jamoma_node_info_create (t_object *x, TTObject &returnedNodeInfo)
 Create a TTNodeInfo object. More...
 
TTErr jamoma_data_create (t_object *x, TTObject &returnedData, TTSymbol service)
 Create a data object. More...
 
TTErr jamoma_data_command (TTObject &aData, t_symbol *msg, long argc, const t_atom *argv)
 Send Max data command. More...
 
TTErr jamoma_sender_create (t_object *x, TTObject &returnedSender)
 Create a sender object. More...
 
TTErr jamoma_sender_create_audio (t_object *x, TTObject &returnedSender)
 Create a sender object for audio signal. More...
 
TTErr jamoma_sender_send (TTObject &aSender, t_symbol *msg, long argc, const t_atom *argv)
 Send Max data using a sender object. More...
 
TTErr jamoma_receiver_create (t_object *x, TTObject &returnedReceiver)
 Create a receiver object. More...
 
TTErr jamoma_receiver_create_audio (t_object *x, TTObject &returnedReceiver)
 Create a receiver object for audio signal. More...
 
TTErr jamoma_presetManager_create (t_object *x, TTObject &returnedPresetManager)
 Create a preset manager object. More...
 
TTErr jamoma_cueManager_create (t_object *x, TTObject &returnedCueManager)
 Create a cue manager object. More...
 
TTErr jamoma_input_create (t_object *x, TTObject &returnedInput)
 Create an input object for any signal. More...
 
TTErr jamoma_input_create_audio (t_object *x, TTObject &returnedInput)
 Create an input object for audio signal. More...
 
TTErr jamoma_input_send (TTObject &anInput, t_symbol *msg, long argc, const t_atom *argv)
 Send any signal to an input object. More...
 
TTErr jamoma_output_create (t_object *x, TTObject &returnedOutput)
 Create an output object for signal. More...
 
TTErr jamoma_output_create_audio (t_object *x, TTObject &returnedOutput)
 Create an output object for audio signal. More...
 
TTErr jamoma_output_send (TTObject &anOutput, t_symbol *msg, long argc, const t_atom *argv)
 Send any signal to an output object. More...
 
TTErr jamoma_mapper_create (t_object *x, TTObject &returnedMapper)
 Create a mapper object. More...
 
TTErr jamoma_viewer_create (t_object *x, TTObject &returnedViewer)
 Create a viewer object. More...
 
TTErr jamoma_viewer_send (TTObject &aViewer, t_symbol *msg, long argc, const t_atom *argv)
 Send Max data using a viewer object. More...
 
TTErr jamoma_explorer_create (t_object *x, TTObject &returnedExplorer)
 Create an explorer object. More...
 
TTHashPtr jamoma_explorer_default_filter_bank (void)
 
TTErr jamoma_ramp_create (t_object *x, TTObject &returnedRamp)
 Create a TTRamp object. More...
 
void JAMOMA_EXPORT jamoma_callback_return_ramped_value (void *o, TTUInt32 n, TTFloat64 *v)
 
void jamoma_callback_return_address (const TTValue &baton, const TTValue &v)
 Return an address to a j. More...
 
void jamoma_callback_return_value (const TTValue &baton, const TTValue &v)
 Return the value to a j. More...
 
void jamoma_callback_return_value_typed (const TTValue &baton, const TTValue &v)
 Return the value to a j. More...
 
void jamoma_callback_return_signal (const TTValue &baton, const TTValue &v)
 Return any signal. More...
 
void jamoma_callback_return_signal_audio (const TTValue &baton, const TTValue &v)
 Return audio signal. More...
 
void jamoma_ttvalue_to_typed_Atom (const TTValue &v, t_symbol **msg, long *argc, t_atom **argv, TTBoolean &shifted)
 Make a typed Atom array from a TTValue (!!! this method allocate memory for the Atom array ! free it after ! More...
 
void jamoma_ttvalue_to_Atom (const TTValue &v, long *argc, t_atom **argv)
 Make an Atom array from a TTValue (!!! this method allocate memory for the Atom array ! free it after ! More...
 
void jamoma_ttvalue_from_Atom (TTValue &v, t_symbol *msg, long argc, const t_atom *argv)
 Make a TTValue from Atom array. More...
 
t_symbol * jamoma_TTName_To_MaxName (TTSymbol TTName)
 Convert a TTSymbol "MyObjectMessage" into a t_symbol *"my/object/message" or return NULL if the TTSymbol doesn't begin by an uppercase letter. More...
 
TTBoolean jamoma_extern_load (t_symbol *objectname, long argc, t_atom *argv, t_object **object)
 Load an external for internal use. More...
 
void jamoma_patcher_get_args (t_object *patcher, long *argc, t_atom **argv)
 Convenient method to get the patcher argument easily. More...
 
void jamoma_patcher_get_context (t_object **patcher, TTSymbol &returnedContext)
 Get the context from the upper j.model|view in the patcher or from patcher's name. More...
 
void jamoma_patcher_get_class (t_object *patcher, TTSymbol context, TTSymbol &returnedClass)
 Get the class of the patcher from the file name (removing .model and .view convention name if they exist) More...
 
void jamoma_patcher_get_name (t_object *patcher, TTSymbol context, TTSymbol &returnedName)
 Get the name of the patcher from his arguments. More...
 
void jamoma_patcher_share_info (t_object *patcher, t_object **returnedPatcher, TTSymbol &returnedContext, TTSymbol &returnedClass, TTSymbol &returnedName)
 Get all context info from the root j.model|view in the patcher. More...
 
void jamoma_patcher_get_model_or_view (t_object *patcher, t_object **returnedModelOrView)
 Get j.model or j.view of a patcher. More...
 
void jamoma_patcher_get_input_output (t_object *patcher, TTBoolean &dataInput, TTBoolean &dataOutput, TTBoolean &audioInput, TTBoolean &audioOutput)
 Look for input and output (data and audio) More...
 
TTBoolean jamoma_patcher_get_ui (t_object *patcher)
 Is there a j.ui object. More...
 
void jamoma_patcher_get_model_patcher (t_object *patcher, TTSymbol modelClass, t_object **returnedModelPatcher)
 Get the "aClass.model" external in the patcher. More...
 
void jamoma_patcher_share_node (t_object *patcher, TTNodePtr *patcherNode)
 Get patcher's node from the root j.model|view in the patcher. More...
 
TTErr jamoma_patcher_get_info (t_object *obj, t_object **returnedPatcher, TTSymbol &returnedContext, TTSymbol &returnedClass, TTSymbol &returnedName)
 Get all context info from an object (his patcher and the context, the class and the name of his patcher) More...
 
TTUInt32 jamoma_parse_bracket (t_symbol *s, TTString &si_format, TTString &ss_format)
 returned the N inside "pp/xx.[N]/yyy" and a format string as "pp/xx.%d/yy" and a format string as "pp/xx.%s/yy" More...
 
void jamoma_edit_numeric_instance (TTString format, t_symbol **returnedName, long i)
 edit a new instance of the given format address using interger More...
 
void jamoma_edit_string_instance (TTString format, t_symbol **returnedName, TTString s)
 edit a new instance of the given format address using string More...
 
void jamoma_edit_filename (TTString format, TTSymbol className, t_symbol **returnedFileName)
 edit a file name from a given file format and a class name More...
 
TTSymbol jamoma_file_write (t_object *x, long argc, const t_atom *argv, char *default_filename)
 Get BOOT style filepath from args or, if no args open a dialog to write a file. More...
 
TTSymbol jamoma_file_read (t_object *x, long argc, const t_atom *argv, t_fourcc filetype)
 Get BOOT style filepath from args or, if no args open a dialog to read a file. More...
 

Detailed Description

JamomaModular For Max Shared Library.

Functions and resources based on Modular framework used by Max objects

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

Definition in file JamomaModularForMax.cpp.

Function Documentation

void jamoma_callback_return_address ( const TTValue baton,
const TTValue v 
)

Return an address to a j.

external.

Parameters
baton
v

Definition at line 858 of file JamomaModularForMax.cpp.

Referenced by jamoma_container_create(), jamoma_receiver_create(), and jamoma_receiver_create_audio().

void JAMOMA_EXPORT jamoma_callback_return_ramped_value ( void *  o,
TTUInt32  n,
TTFloat64 v 
)
Parameters
o
n
v

Definition at line 831 of file JamomaModularForMax.cpp.

Referenced by jamoma_ramp_create().

void jamoma_callback_return_signal ( const TTValue baton,
const TTValue v 
)

Return any signal.

Parameters
baton
v

Definition at line 981 of file JamomaModularForMax.cpp.

void jamoma_callback_return_signal_audio ( const TTValue baton,
const TTValue v 
)

Return audio signal.

Parameters
baton
v

Definition at line 999 of file JamomaModularForMax.cpp.

References TTValue::size().

+ Here is the call graph for this function:

void jamoma_callback_return_value ( const TTValue baton,
const TTValue v 
)

Return the value to a j.

external as _sym_nothing, argc, argv

Definition at line 880 of file JamomaModularForMax.cpp.

Referenced by jamoma_container_create(), jamoma_cueManager_create(), jamoma_explorer_create(), jamoma_mapper_create(), and jamoma_presetManager_create().

void jamoma_callback_return_value_typed ( const TTValue baton,
const TTValue v 
)

Return the value to a j.

external as msg, argc, argv

Definition at line 929 of file JamomaModularForMax.cpp.

Referenced by jamoma_data_create(), jamoma_input_create(), jamoma_output_create(), jamoma_receiver_create(), and jamoma_viewer_create().

TTErr jamoma_container_create ( t_object *  x,
TTObject returnedContainer 
)

Create a container object.

Create a TTContainer object.

Definition at line 326 of file JamomaModularForMax.cpp.

TTErr jamoma_container_send ( TTObject aContainer,
t_symbol *  relativeAddressAndAttribute,
long  argc,
const t_atom *  argv 
)

Send Max data to a node (e.g., a j.parameter object) using a container object.

Send Max data to a node (e.g., a j.parameter object) using a TTContainer object.

Definition at line 348 of file JamomaModularForMax.cpp.

TTErr jamoma_cueManager_create ( t_object *  x,
TTObject returnedCueManager 
)

Create a cue manager object.

Create a #TTCueManager object.

Definition at line 521 of file JamomaModularForMax.cpp.

TTErr jamoma_data_command ( TTObject aData,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Send Max data command.

Set the TTData value attribute using the #TTData::Command method.

Definition at line 407 of file JamomaModularForMax.cpp.

TTErr jamoma_data_create ( t_object *  x,
TTObject returnedData,
TTSymbol  service 
)

Create a data object.

Create a TTData object.

Definition at line 393 of file JamomaModularForMax.cpp.

void jamoma_edit_filename ( TTString  format,
TTSymbol  className,
t_symbol **  returnedFileName 
)

edit a file name from a given file format and a class name

Edit a file name from a given file format and a class name.

Definition at line 1850 of file JamomaModularForMax.cpp.

Referenced by jamoma_patcher_get_model_patcher().

void jamoma_edit_numeric_instance ( TTString  format,
t_symbol **  returnedName,
long  i 
)

edit a new instance of the given format address using interger

Edit a new instance of the given format address using interger.

Definition at line 1822 of file JamomaModularForMax.cpp.

void jamoma_edit_string_instance ( TTString  format,
t_symbol **  returnedName,
TTString  s 
)

edit a new instance of the given format address using string

Edit a new instance of the given format address using string.

Definition at line 1837 of file JamomaModularForMax.cpp.

TTErr jamoma_explorer_create ( t_object *  x,
TTObject returnedExplorer 
)

Create an explorer object.

Create a TTExplorer object.

Definition at line 700 of file JamomaModularForMax.cpp.

TTHashPtr jamoma_explorer_default_filter_bank ( void  )
Returns

Definition at line 724 of file JamomaModularForMax.cpp.

Referenced by jamoma_explorer_create().

TTBoolean jamoma_extern_load ( t_symbol *  objectname,
long  argc,
t_atom *  argv,
t_object **  object 
)

Load an external for internal use.

Returns true if successful

Definition at line 1181 of file JamomaModularForMax.cpp.

TTSymbol jamoma_file_read ( t_object *  x,
long  argc,
const t_atom *  argv,
t_fourcc  filetype 
)

Get BOOT style filepath from args or, if no args open a dialog to read a file.

Parameters
x
argcThe number of arguments of the message.
argvPointer to the array of arguments.
filetype
Returns

Definition at line 1918 of file JamomaModularForMax.cpp.

Referenced by model_preset_doread(), and score_doread().

TTSymbol jamoma_file_write ( t_object *  x,
long  argc,
const t_atom *  argv,
char *  default_filename 
)

Get BOOT style filepath from args or, if no args open a dialog to write a file.

Parameters
x
argcThe number of arguments of the message.
argvPointer to the array of arguments.
default_filename
Returns

Definition at line 1868 of file JamomaModularForMax.cpp.

Referenced by model_preset_dowrite(), model_reference_dowrite(), and score_dowrite().

TTErr jamoma_input_create ( t_object *  x,
TTObject returnedInput 
)

Create an input object for any signal.

Create a #TTInput object for signal.

Definition at line 538 of file JamomaModularForMax.cpp.

TTErr jamoma_input_create_audio ( t_object *  x,
TTObject returnedInput 
)

Create an input object for audio signal.

Create a #TTInput object for audio signal.

Definition at line 555 of file JamomaModularForMax.cpp.

TTErr jamoma_input_send ( TTObject anInput,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Send any signal to an input object.

Send any signal to a TTInput object.

Definition at line 562 of file JamomaModularForMax.cpp.

TTErr jamoma_mapper_create ( t_object *  x,
TTObject returnedMapper 
)

Create a mapper object.

Create a TTMapper object.

Definition at line 625 of file JamomaModularForMax.cpp.

TTErr JAMOMA_EXPORT jamoma_node_info_create ( t_object *  x,
TTObject returnedNodeInfo 
)

Create a TTNodeInfo object.

Parameters
x
returnedNodeInfo
Returns
TTErr error message if the method does not execute as expected.

Definition at line 383 of file JamomaModularForMax.cpp.

TTErr jamoma_output_create ( t_object *  x,
TTObject returnedOutput 
)

Create an output object for signal.

Create a TTOutput object for signal.

Definition at line 581 of file JamomaModularForMax.cpp.

TTErr jamoma_output_create_audio ( t_object *  x,
TTObject returnedOutput 
)

Create an output object for audio signal.

Parameters
x
returnedOutput
Returns
TTErr error message if the method does not execute as expected.

Definition at line 598 of file JamomaModularForMax.cpp.

TTErr jamoma_output_send ( TTObject anOutput,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Send any signal to an output object.

Send any signal to a TTOutput object.

Definition at line 606 of file JamomaModularForMax.cpp.

TTUInt32 jamoma_parse_bracket ( t_symbol *  s,
TTString si_format,
TTString ss_format 
)

returned the N inside "pp/xx.[N]/yyy" and a format string as "pp/xx.%d/yy" and a format string as "pp/xx.%s/yy"

Returned the N inside "pp/xx.[N]/yyy" and a format string as "pp/xx.%d/yy" and a format string as "pp/xx.%s/yy".

Definition at line 1780 of file JamomaModularForMax.cpp.

t_symbol* jamoma_parse_dieze ( t_object *  x,
t_symbol *  address 
)

Parse #N inside address and replace them by parent patcher arguments if there are.

Parameters
x
address
Returns

Definition at line 179 of file JamomaModularForMax.cpp.

References jamoma_patcher_get(), jamoma_patcher_get_args(), and jamoma_patcher_get_hierarchy().

Referenced by jamoma_patcher_get_name(), node_subscribe(), receive_address(), send_address(), WrappedReceiverClass_new(), and WrappedSenderClass_new().

+ Here is the call graph for this function:

t_object* jamoma_patcher_get ( t_object *  obj)
void jamoma_patcher_get_args ( t_object *  patcher,
long *  argc,
t_atom **  argv 
)

Convenient method to get the patcher argument easily.

In poly case it also return the voice index (0 else)

Parameters
patcher
argcThe number of arguments of the message.
argvPointer to the array of arguments.

Definition at line 1211 of file JamomaModularForMax.cpp.

References jamoma_patcher_get_hierarchy().

Referenced by jamoma_parse_dieze(), jamoma_patcher_get_class(), jamoma_patcher_get_name(), jamoma_subscriber_create(), and model_subscribe().

+ Here is the call graph for this function:

void jamoma_patcher_get_class ( t_object *  patcher,
TTSymbol  context,
TTSymbol returnedClass 
)

Get the class of the patcher from the file name (removing .model and .view convention name if they exist)

Get the class of the patcher from the file name (removing .model and .view convention name if they are in)

Definition at line 1304 of file JamomaModularForMax.cpp.

References jamoma_patcher_get(), jamoma_patcher_get_args(), jamoma_patcher_get_hierarchy(), ttRegexForJcom, ttRegexForJmod, ttRegexForMaxhelp, ttRegexForMaxpat, ttRegexForModel, ttRegexForModule, and ttRegexForView.

Referenced by jamoma_patcher_get_info().

+ Here is the call graph for this function:

void jamoma_patcher_get_context ( t_object **  patcher,
TTSymbol returnedContext 
)

Get the context from the upper j.model|view in the patcher or from patcher's name.

Get the context from the upper jcom model|view in the patcher or from patcher's name.

Definition at line 1241 of file JamomaModularForMax.cpp.

References jamoma_patcher_get(), and jamoma_patcher_get_hierarchy().

Referenced by jamoma_patcher_get_info().

+ Here is the call graph for this function:

t_symbol* jamoma_patcher_get_hierarchy ( t_object *  patcher)

Get the hierarchy of the patcher : bpatcher, subpatcher or top level one.

Get the hierarchy of the patcher : bpatcher, subpatcher or toplevel.

Definition at line 140 of file JamomaModularForMax.cpp.

Referenced by jamoma_parse_dieze(), jamoma_patcher_get_args(), jamoma_patcher_get_class(), jamoma_patcher_get_context(), jamoma_patcher_get_info(), jamoma_patcher_get_name(), jamoma_subscriber_create(), jamoma_subscriber_get_patcher_list(), model_subscribe(), and model_subscribe_view().

TTErr jamoma_patcher_get_info ( t_object *  obj,
t_object **  returnedPatcher,
TTSymbol returnedContext,
TTSymbol returnedClass,
TTSymbol returnedName 
)

Get all context info from an object (his patcher and the context, the class and the name of his patcher)

Get all context info from an object (his patcher and the context, the class and the name of his patcher).

Definition at line 1656 of file JamomaModularForMax.cpp.

References TTSymbol::c_str(), TTString::c_str(), jamoma_patcher_get(), jamoma_patcher_get_class(), jamoma_patcher_get_context(), jamoma_patcher_get_hierarchy(), jamoma_patcher_get_name(), jamoma_patcher_share_info(), kTTErrGeneric, kTTErrNone, and TTString::size().

Referenced by jamoma_subscriber_create(), jamoma_subscriber_get_patcher_list(), model_subscribe(), receive_subscribe(), and send_subscribe().

+ Here is the call graph for this function:

void jamoma_patcher_get_input_output ( t_object *  patcher,
TTBoolean dataInput,
TTBoolean dataOutput,
TTBoolean audioInput,
TTBoolean audioOutput 
)

Look for input and output (data and audio)

Look into the given patcher to know if there are data or audio inputs and outputs.

Definition at line 1542 of file JamomaModularForMax.cpp.

Referenced by model_signal_amenities().

void jamoma_patcher_get_model_or_view ( t_object *  patcher,
t_object **  returnedModelOrView 
)

Get j.model or j.view of a patcher.

Parameters
patcher
returnedModelOrView

Definition at line 1517 of file JamomaModularForMax.cpp.

Referenced by in_subscribe(), out_subscribe(), WrappedContainerClass_new(), and WrappedInputClass_anything().

void jamoma_patcher_get_model_patcher ( t_object *  patcher,
TTSymbol  modelClass,
t_object **  returnedModelPatcher 
)

Get the "aClass.model" external in the patcher.

Parameters
patcher
modelClass
returnedModelPatcher

Definition at line 1598 of file JamomaModularForMax.cpp.

References jamoma_edit_filename().

Referenced by model_subscribe_view().

+ Here is the call graph for this function:

void jamoma_patcher_get_name ( t_object *  patcher,
TTSymbol  context,
TTSymbol returnedName 
)

Get the name of the patcher from his arguments.

Parameters
patcher
context
returnedName

Definition at line 1431 of file JamomaModularForMax.cpp.

References jamoma_parse_dieze(), jamoma_patcher_get_args(), and jamoma_patcher_get_hierarchy().

Referenced by jamoma_patcher_get_info().

+ Here is the call graph for this function:

TTBoolean jamoma_patcher_get_ui ( t_object *  patcher)

Is there a j.ui object.

Look into the given patcher to know if there is a j.ui.

Definition at line 1573 of file JamomaModularForMax.cpp.

void jamoma_patcher_share_info ( t_object *  patcher,
t_object **  returnedPatcher,
TTSymbol returnedContext,
TTSymbol returnedClass,
TTSymbol returnedName 
)

Get all context info from the root j.model|view in the patcher.

Get all context info from the root jcom model|view in the patcher.

Definition at line 1485 of file JamomaModularForMax.cpp.

References TTValue::size().

Referenced by jamoma_patcher_get_info().

+ Here is the call graph for this function:

void jamoma_patcher_share_node ( t_object *  patcher,
TTNodePtr patcherNode 
)

Get patcher's node from the root j.model|view in the patcher.

Get patcher's node from the root jcom model|view in the patcher.

Definition at line 1628 of file JamomaModularForMax.cpp.

TTErr jamoma_presetManager_create ( t_object *  x,
TTObject returnedPresetManager 
)

Create a preset manager object.

Create a #TTPresetManager object.

Definition at line 507 of file JamomaModularForMax.cpp.

TTErr jamoma_ramp_create ( t_object *  x,
TTObject returnedRamp 
)

Create a TTRamp object.

Parameters
x
returnedRamp
Returns
TTErr error message if the method does not execute as expected.

Definition at line 819 of file JamomaModularForMax.cpp.

TTErr jamoma_receiver_create ( t_object *  x,
TTObject returnedReceiver 
)

Create a receiver object.

Create a TTReceiver object.

Definition at line 462 of file JamomaModularForMax.cpp.

TTErr jamoma_receiver_create_audio ( t_object *  x,
TTObject returnedReceiver 
)

Create a receiver object for audio signal.

Create a TTReceiver object for audio signal.

Definition at line 483 of file JamomaModularForMax.cpp.

TTErr jamoma_sender_create ( t_object *  x,
TTObject returnedSender 
)

Create a sender object.

Create a TTSender object.

Definition at line 425 of file JamomaModularForMax.cpp.

TTErr jamoma_sender_create_audio ( t_object *  x,
TTObject returnedSender 
)

Create a sender object for audio signal.

Create a TTSender object for audio signal.

Definition at line 432 of file JamomaModularForMax.cpp.

TTErr jamoma_sender_send ( TTObject aSender,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Send Max data using a sender object.

Send Max data using a TTSender object.

Definition at line 444 of file JamomaModularForMax.cpp.

TTErr jamoma_subscriber_create ( t_object *  x,
TTObject anObject,
TTAddress  relativeAddress,
TTObject returnedSubscriber,
TTSymbol returnedAddress,
TTNodePtr returnedNode,
TTNodePtr returnedContextNode 
)

Create a #TTSubscriber object and register a TTObject into the tree or, if aTTObject is NULL, retrieve all context info to bind on an object.

Parameters
x
anObject
relativeAddress
returnedSubscriberPointer to the new #TTSubscriber object.
returnedAddress
returnedNode
returnedContextNode
Returns
TTErr error message if the method does not execute as expected.

Definition at line 28 of file JamomaModularForMax.cpp.

References TTValue::append(), TTSymbol::c_str(), TTObject::get(), TTAddress::getNameInstance(), jamoma_patcher_get_args(), jamoma_patcher_get_hierarchy(), jamoma_patcher_get_info(), jamoma_subscriber_get_patcher_list(), kTTErrGeneric, kTTErrNone, TTObject::send(), TTValue::size(), and TTObject::valid().

Referenced by in_subscribe(), model_subscribe(), node_subscribe(), out_subscribe(), receive_subscribe(), and send_subscribe().

+ Here is the call graph for this function:

void jamoma_subscriber_get_patcher_list ( t_object *  x,
TTList &  aContextListToFill 
)

Get the <patcher name, patcher pointer> list above an external.

To understand what this method have to provide see in TTSubscriber.h and TTSubscriber.cpp.

Parameters
x
aContextListToFill

Definition at line 266 of file JamomaModularForMax.cpp.

References jamoma_patcher_get_hierarchy(), and jamoma_patcher_get_info().

Referenced by jamoma_subscriber_create().

+ Here is the call graph for this function:

t_symbol* jamoma_TTName_To_MaxName ( TTSymbol  TTName)

Convert a TTSymbol "MyObjectMessage" into a t_symbol *"my/object/message" or return NULL if the TTSymbol doesn't begin by an uppercase letter.

Parameters
TTName
Returns

Definition at line 1161 of file JamomaModularForMax.cpp.

References TTSymbol::c_str(), and ToAppName.

Referenced by wrapTTModularClassAsMaxClass().

+ Here is the call graph for this function:

void jamoma_ttvalue_from_Atom ( TTValue v,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Make a TTValue from Atom array.

Make a TTValue from Atom array.

Definition at line 1125 of file JamomaModularForMax.cpp.

Referenced by jamoma_container_send(), jamoma_data_command(), jamoma_input_send(), jamoma_output_send(), jamoma_sender_send(), and jamoma_viewer_send().

void jamoma_ttvalue_to_Atom ( const TTValue v,
long *  argc,
t_atom **  argv 
)

Make an Atom array from a TTValue (!!! this method allocate memory for the Atom array ! free it after !

Make an Atom array from a TTValue.

Definition at line 1086 of file JamomaModularForMax.cpp.

Referenced by jamoma_callback_return_signal(), and jamoma_callback_return_value().

void jamoma_ttvalue_to_typed_Atom ( const TTValue v,
t_symbol **  msg,
long *  argc,
t_atom **  argv,
TTBoolean shifted 
)

Make a typed Atom array from a TTValue (!!! this method allocate memory for the Atom array ! free it after !

Make a typed Atom array from a TTValue.

Definition at line 1027 of file JamomaModularForMax.cpp.

Referenced by jamoma_callback_return_value_typed().

TTErr jamoma_viewer_create ( t_object *  x,
TTObject returnedViewer 
)

Create a viewer object.

Create a #TTViewer object.

Definition at line 670 of file JamomaModularForMax.cpp.

TTErr jamoma_viewer_send ( TTObject aViewer,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)

Send Max data using a viewer object.

Send Max data using a #TTViewer object.

Definition at line 681 of file JamomaModularForMax.cpp.