Jamoma API  0.6.0.a19
Max/source/j.send/j.send.cpp File Reference

j.send / j.send~ : Send messages and audio through remote communication More...

+ Include dependency graph for Max/source/j.send/j.send.cpp:

Go to the source code of this file.

Functions

void WrapTTSenderClass (WrappedClassPtr c)
 Wrap the j.send class as a Max object. More...
 
void WrappedSenderClass_new (TTPtr self, long argc, t_atom *argv)
 Wrapper for the j.send constructor class, called when an instance is created. More...
 
void WrappedSenderClass_free (TTPtr self)
 Wrapper for the j.send deconstructor class, called when an instance is destroyed. More...
 
void send_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Assistance Method. More...
 
void send_subscribe (TTPtr self)
 Associate j.send(~) with NodeLib. More...
 
void send_return_model_address (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Internal method called when the model:address parameter changed. More...
 
void send_bang (TTPtr self)
 bang handler for j.send More...
 
void send_int (TTPtr self, long value)
 int handler for j.send More...
 
void send_float (TTPtr self, double value)
 float handler for j.send More...
 
void send_list (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 list handler for j.send More...
 
void WrappedSenderClass_anything (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 anything else handler for j.send More...
 
void send_input (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Internal method used to send data to a j.in. More...
 
void send_address (TTPtr self, t_symbol *address)
 address message handler for j.send. More...
 
int C74_EXPORT main (void)
 Set up this class as a Max external the first time an object of this kind is instantiated. More...
 

Detailed Description

j.send / j.send~ : Send messages and audio through remote communication

Authors
Théo de la Hogue, Trond Lossius

Definition in file Max/source/j.send/j.send.cpp.

Function Documentation

int C74_EXPORT main ( void  )

Set up this class as a Max external the first time an object of this kind is instantiated.

Returns
Error message if the object fails to load.

Set up this class as a Max external the first time an object of this kind is instantiated.

Definition at line 144 of file Max/source/j.send/j.send.cpp.

References WrappedSenderClass_anything(), WrappedSenderClass_free(), WrappedSenderClass_new(), wrapTTModularClassAsMaxClass(), and WrapTTSenderClass().

+ Here is the call graph for this function:

void send_address ( TTPtr  self,
t_symbol *  address 
)

address message handler for j.send.

To change the address to bind.

Parameters
selfPointer to this object.
addressThe address to bind
See also
send_subscribe

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

References WrappedModularInstance::address, TTSymbol::c_str(), TTAddress::getType(), WrappedModularInstance::internals, jamoma_parse_dieze(), kAddressAbsolute, kAddressRelative, TTHash::lookup(), TTHash::remove(), send_subscribe(), TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by WrapTTSenderClass().

+ Here is the call graph for this function:

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

Assistance Method.

Parameters
selfPointer to this object.
bPointer to (exactly what?)
msgThe message passed to the object.
arg
dstPointer to the destination that assistance strings are passed to for display.

Definition at line 353 of file Max/source/j.send/j.send.cpp.

Referenced by WrapTTSenderClass().

void send_bang ( TTPtr  self)

bang handler for j.send

Parameters
selfPointer to this object.
See also
send_int, send_float, send_list, WrappedSenderClass_anything

Definition at line 367 of file Max/source/j.send/j.send.cpp.

References send_list().

Referenced by WrapTTSenderClass().

+ Here is the call graph for this function:

void send_float ( TTPtr  self,
double  value 
)

float handler for j.send

Parameters
selfPointer to this object.
valueThe value sent to this object.
See also
send_bang, send_int, send_list, WrappedSenderClass_anything

Definition at line 380 of file Max/source/j.send/j.send.cpp.

References send_list().

Referenced by WrapTTSenderClass().

+ Here is the call graph for this function:

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

Internal method used to send data to a j.in.

Parameters
selfPointer to this object.
msgThe message sent to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
send_list
void send_int ( TTPtr  self,
long  value 
)

int handler for j.send

Parameters
selfPointer to this object.
valueThe value sent to this object.
See also
send_bang, send_float, send_list, WrappedSenderClass_anything

Definition at line 372 of file Max/source/j.send/j.send.cpp.

References send_list().

Referenced by WrapTTSenderClass().

+ Here is the call graph for this function:

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

list handler for j.send

Parameters
selfPointer to this object.
msgThe message sent to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
send_bang, send_int, send_float, WrappedSenderClass_anything

Definition at line 388 of file Max/source/j.send/j.send.cpp.

References WrappedModularInstance::address, TTAddress::getType(), jamoma_sender_send(), kAddressAbsolute, TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by send_bang(), send_float(), send_int(), WrappedSenderClass_anything(), and WrapTTSenderClass().

+ Here is the call graph for this function:

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

Internal method called when the model:address parameter changed.

It allows relative address binding.

Parameters
selfPointer to this object.
msgThe message sent to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
send_subscribe

Definition at line 329 of file Max/source/j.send/j.send.cpp.

References WrappedModularInstance::address, TTAddress::appendAddress(), TTSymbol::c_str(), TTAddress::getType(), kAddressRelative, TTObject::set(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by WrapTTSenderClass().

+ Here is the call graph for this function:

void send_subscribe ( TTPtr  self)

Associate j.send(~) with NodeLib.

This is a prerequisit for communication with other Jamoma object in the module and beyond.

Definition at line 256 of file Max/source/j.send/j.send.cpp.

References WrappedModularInstance::address, TTAddress::appendAddress(), TTSymbol::c_str(), TTObject::get(), jamoma_patcher_get_info(), jamoma_subscriber_create(), WrappedModularInstance::patcherClass, WrappedModularInstance::patcherContext, WrappedModularInstance::patcherName, WrappedModularInstance::patcherPtr, TTObject::set(), WrappedModularInstance::subscriberObject, and WrappedModularInstance::wrappedObject.

Referenced by send_address(), and WrappedSenderClass_new().

+ Here is the call graph for this function:

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

anything else handler for j.send

Parameters
selfPointer to this object.
msgThe message sent to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
send_bang, send_int, send_float, send_list

Definition at line 424 of file Max/source/j.send/j.send.cpp.

References send_list().

Referenced by main(), and WrapTTSenderClass().

+ Here is the call graph for this function:

void WrappedSenderClass_free ( TTPtr  self)

Wrapper for the j.send deconstructor class, called when an instance is destroyed.

Parameters
selfPointer to this object.
See also
WrappedSenderClass_new

Definition at line 240 of file Max/source/j.send/j.send.cpp.

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

Referenced by main().

+ Here is the call graph for this function:

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

Wrapper for the j.send constructor class, called when an instance is created.

Parameters
selfPointer to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
WrappedSenderClass_free, send_subscribe

Definition at line 188 of file Max/source/j.send/j.send.cpp.

References WrappedModularInstance::address, TTAddress::appendAttribute(), TTSymbol::c_str(), TTAddress::getName(), TTAddress::getType(), jamoma_parse_dieze(), jamoma_sender_create(), jamoma_sender_create_audio(), kAddressAbsolute, WrappedModularInstance::obj, send_subscribe(), TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrapTTSenderClass ( WrappedClassPtr  c)

Wrap the j.send class as a Max object.

Parameters
cThe class to be wrapped
See also
WrappedSenderClass_new, WrappedSenderClass_free

Definition at line 163 of file Max/source/j.send/j.send.cpp.

References send_address(), send_assist(), send_bang(), send_float(), send_int(), send_list(), send_return_model_address(), and WrappedSenderClass_anything().

Referenced by main().

+ Here is the call graph for this function: