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

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

+ Include dependency graph for PureData/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, t_float 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...
 

Detailed Description

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

Authors
Théo de la Hogue, Trond Lossius, Antoine Villeret

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

Function Documentation

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 437 of file PureData/source/j.send/j.send.cpp.

References WrappedModularInstance::address, TTSymbol::c_str(), TTAddress::getType(), WrappedModularInstance::internals, 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 359 of file PureData/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 373 of file PureData/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,
t_float  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 386 of file PureData/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 378 of file PureData/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 394 of file PureData/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 335 of file PureData/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 261 of file PureData/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(), WrappedSenderClass_new(), and WrapTTSenderClass().

+ 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 430 of file PureData/source/j.send/j.send.cpp.

References send_list().

Referenced by 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 245 of file PureData/source/j.send/j.send.cpp.

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

+ 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 190 of file PureData/source/j.send/j.send.cpp.

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

+ 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 164 of file PureData/source/j.send/j.send.cpp.

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

+ Here is the call graph for this function: