Jamoma API
0.6.0.a19
|
JamomaModular For Max Shared Library. More...
#include "JamomaModularForPd.h"
Go to the source code of this file.
Functions | |
TTErr | jamoma_subscriber_create (t_eobj *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_canvas *canvas) |
Get the hierarchy of the patcher : bpatcher, subpatcher or top level one. More... | |
t_symbol * | jamoma_parse_dieze (t_canvas *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_eobj *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_ttvalue_to_typed_Atom (const TTValue &v, t_symbol **msg, long *argc, t_atom **argv, TTBoolean &shifted) |
Return audio signal. 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_PdName (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... | |
void | jamoma_patcher_get_args (t_canvas *canvas, long *argc, t_atom **argv) |
Load an external for internal use. More... | |
void | jamoma_patcher_get_context (t_canvas *patcher, TTSymbol &returnedContext) |
Get the context from the upper j.model|view in the patcher or from patcher's name. | |
void | jamoma_patcher_get_class (t_canvas *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_canvas *patcher, TTSymbol context, TTSymbol &returnedName) |
Get the name of the patcher from his arguments. More... | |
void | jamoma_patcher_share_info (t_canvas *patcher, t_canvas **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_canvas *patcher, t_object **returnedModelOrView) |
Get j.model or j.view of a patcher. More... | |
void | jamoma_patcher_get_input_output (t_canvas *patcher, TTBoolean &dataInput, TTBoolean &dataOutput, TTBoolean &audioInput, TTBoolean &audioOutput) |
Look for input and output (data and audio) More... | |
TTBoolean | jamoma_patcher_get_ui (t_canvas *patcher) |
Is there a j.ui object. | |
void | jamoma_patcher_get_model_patcher (t_canvas *patcher, TTSymbol modelClass, t_object **returnedModelPatcher) |
Get the "aClass.model" external in the patcher. More... | |
void | jamoma_patcher_share_node (t_canvas *patcher, TTNodePtr *patcherNode) |
Get patcher's node from the root j.model|view in the patcher. More... | |
TTErr | jamoma_patcher_get_info (t_canvas *obj, t_canvas **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, 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, t_atom *argv, t_fourcc filetype) |
Get BOOT style filepath from args or, if no args open a dialog to read a file. More... | |
JamomaModular For Max Shared Library.
Functions and resources based on Modular framework used by Max objects
Definition in file JamomaModularForPd.cpp.
Return an address to a j.
external.
baton | |
v |
Definition at line 836 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), kTypeSymbol, and TTValue::size().
Referenced by jamoma_container_create(), jamoma_receiver_create(), and jamoma_receiver_create_audio().
o | |
n | |
v |
Definition at line 809 of file JamomaModularForPd.cpp.
Referenced by jamoma_ramp_create().
Return any signal.
baton | |
v |
Definition at line 959 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_to_Atom().
Return the value to a j.
external as _sym_nothing, argc, argv
Definition at line 858 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_to_Atom(), and TTValue::size().
Referenced by jamoma_container_create(), jamoma_cueManager_create(), jamoma_explorer_create(), jamoma_mapper_create(), and jamoma_presetManager_create().
Return the value to a j.
external as msg, argc, argv
Definition at line 907 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_to_typed_Atom(), and TTValue::size().
Referenced by jamoma_data_create(), jamoma_input_create(), jamoma_output_create(), jamoma_receiver_create(), and jamoma_viewer_create().
Create a container object.
Create a TTContainer object.
Definition at line 302 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_address(), jamoma_callback_return_value(), kTTErrNone, and TTObject::set().
Referenced by WrappedContainerClass_new().
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 324 of file JamomaModularForPd.cpp.
References TTValue::append(), TTAddress::appendAttribute(), TTAddress::getAttribute(), TTAddress::getType(), jamoma_ttvalue_from_Atom(), kAddressRelative, kTTErrGeneric, TTObject::send(), ToTTName, and TTObject::valid().
Referenced by TTUiInfo::setFreeze(), and WrappedContainerClass_anything().
Create a cue manager object.
Create a #TTCueManager object.
Definition at line 499 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value(), kTTErrNone, and TTObject::set().
Send Max data command.
Set the TTData value attribute using the #TTData::Command method.
Definition at line 383 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_from_Atom(), kTTErrGeneric, kTTErrNone, TTObject::send(), and TTObject::valid().
Referenced by data_list().
Create a data object.
Create a TTData object.
Definition at line 369 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value_typed(), kTTErrNone, and TTObject::set().
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 1804 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), TTString::c_str(), and TTString::size().
Referenced by TTModelInfo::HelpOpen(), jamoma_patcher_get_model_patcher(), model_preset_default(), and TTModelInfo::ReferenceOpen().
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 1776 of file JamomaModularForPd.cpp.
References TTString::c_str(), and TTString::size().
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 1791 of file JamomaModularForPd.cpp.
References TTString::c_str(), and TTString::size().
Create an explorer object.
Create a TTExplorer object.
Definition at line 678 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_value(), jamoma_explorer_default_filter_bank(), kTTErrNone, and TTObject::set().
TTHashPtr jamoma_explorer_default_filter_bank | ( | void | ) |
Definition at line 702 of file JamomaModularForPd.cpp.
References TTHash::append(), TTDictionaryBase::append(), and TTDictionaryBase::setSchema().
Referenced by jamoma_explorer_create().
TTSymbol jamoma_file_read | ( | t_object * | x, |
long | argc, | ||
t_atom * | argv, | ||
t_fourcc | filetype | ||
) |
Get BOOT style filepath from args or, if no args open a dialog to read a file.
x | |
argc | The number of arguments of the message. |
argv | Pointer to the array of arguments. |
filetype |
Definition at line 1877 of file JamomaModularForPd.cpp.
TTSymbol jamoma_file_write | ( | t_object * | x, |
long | argc, | ||
t_atom * | argv, | ||
char * | default_filename | ||
) |
Get BOOT style filepath from args or, if no args open a dialog to write a file.
x | |
argc | The number of arguments of the message. |
argv | Pointer to the array of arguments. |
default_filename |
Definition at line 1822 of file JamomaModularForPd.cpp.
Create an input object for any signal.
Create a #TTInput object for signal.
Definition at line 516 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value_typed(), kTTErrNone, and TTObject::set().
Referenced by WrappedInputClass_new().
Create an input object for audio signal.
Create a #TTInput object for audio signal.
Definition at line 533 of file JamomaModularForPd.cpp.
References kTTErrNone.
Referenced by WrappedInputClass_new().
Send any signal to an input object.
Send any signal to a TTInput object.
Definition at line 540 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_from_Atom(), kTTErrGeneric, TTObject::send(), and TTObject::valid().
Referenced by in_list(), and WrappedInputClass_anything().
Create a mapper object.
Create a TTMapper object.
Definition at line 603 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_value(), kTTErrNone, and TTObject::set().
Create a TTNodeInfo object.
x | |
returnedNodeInfo |
Definition at line 359 of file JamomaModularForPd.cpp.
References kTTErrNone.
Create an output object for signal.
Create a TTOutput object for signal.
Definition at line 559 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value_typed(), kTTErrNone, and TTObject::set().
Referenced by WrappedOutputClass_new().
Create an output object for audio signal.
x | |
returnedOutput |
Definition at line 576 of file JamomaModularForPd.cpp.
References kTTErrNone.
Referenced by WrappedOutputClass_new().
Send any signal to an output object.
Send any signal to a TTOutput object.
Definition at line 584 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_from_Atom(), kTTErrGeneric, TTObject::send(), and TTObject::valid().
Referenced by out_list(), and WrappedOutputClass_anything().
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 1734 of file JamomaModularForPd.cpp.
References TTString::c_str(), and ttRegexForBracket.
t_symbol* jamoma_parse_dieze | ( | t_canvas * | x, |
t_symbol * | address | ||
) |
Parse #N inside address and replace them by parent patcher arguments if there are.
x | |
address |
Definition at line 156 of file JamomaModularForPd.cpp.
References jamoma_patcher_get_args(), and jamoma_patcher_get_hierarchy().
Referenced by jamoma_patcher_get_name().
void jamoma_patcher_get_args | ( | t_canvas * | canvas, |
long * | argc, | ||
t_atom ** | argv | ||
) |
Load an external for internal use.
Convenient method to get the patcher argument easily.
Returns true if successful
Definition at line 1202 of file JamomaModularForPd.cpp.
Referenced by jamoma_parse_dieze(), jamoma_patcher_get_class(), jamoma_patcher_get_name(), and jamoma_subscriber_create().
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 1274 of file JamomaModularForPd.cpp.
References jamoma_patcher_get_args(), jamoma_patcher_get_hierarchy(), ttRegexForJcom, ttRegexForJmod, ttRegexForModel, ttRegexForModule, ttRegexForPdhelp, ttRegexForPdpat, and ttRegexForView.
Referenced by jamoma_patcher_get_info().
t_symbol* jamoma_patcher_get_hierarchy | ( | t_canvas * | canvas | ) |
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 146 of file JamomaModularForPd.cpp.
Referenced by jamoma_parse_dieze(), jamoma_patcher_get_class(), jamoma_patcher_get_context(), jamoma_patcher_get_name(), and jamoma_subscriber_get_patcher_list().
TTErr jamoma_patcher_get_info | ( | t_canvas * | obj, |
t_canvas ** | 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 1606 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), jamoma_patcher_get_class(), jamoma_patcher_get_context(), jamoma_patcher_get_name(), jamoma_patcher_share_info(), kTTErrGeneric, and kTTErrNone.
Referenced by jamoma_subscriber_create(), and jamoma_subscriber_get_patcher_list().
void jamoma_patcher_get_input_output | ( | t_canvas * | 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 1511 of file JamomaModularForPd.cpp.
void jamoma_patcher_get_model_or_view | ( | t_canvas * | patcher, |
t_object ** | returnedModelOrView | ||
) |
Get j.model or j.view of a patcher.
patcher | |
returnedModelOrView |
Definition at line 1488 of file JamomaModularForPd.cpp.
void jamoma_patcher_get_model_patcher | ( | t_canvas * | patcher, |
TTSymbol | modelClass, | ||
t_object ** | returnedModelPatcher | ||
) |
Get the "aClass.model" external in the patcher.
patcher | |
modelClass | |
returnedModelPatcher |
Definition at line 1555 of file JamomaModularForPd.cpp.
References jamoma_edit_filename().
Get the name of the patcher from his arguments.
patcher | |
context | |
returnedName |
Definition at line 1404 of file JamomaModularForPd.cpp.
References jamoma_parse_dieze(), jamoma_patcher_get_args(), and jamoma_patcher_get_hierarchy().
Referenced by jamoma_patcher_get_info().
void jamoma_patcher_share_info | ( | t_canvas * | patcher, |
t_canvas ** | 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 1459 of file JamomaModularForPd.cpp.
References TTValue::size().
Referenced by jamoma_patcher_get_info().
void jamoma_patcher_share_node | ( | t_canvas * | 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 1582 of file JamomaModularForPd.cpp.
Create a preset manager object.
Create a #TTPresetManager object.
Definition at line 485 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value(), kTTErrNone, and TTObject::set().
Referenced by model_preset_amenities().
Create a TTRamp object.
x | |
returnedRamp |
Definition at line 797 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_ramped_value(), and kTTErrNone.
Referenced by WrappedRampClass_new().
Create a receiver object.
Create a TTReceiver object.
Definition at line 440 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_address(), jamoma_callback_return_value_typed(), kTTErrNone, and TTObject::set().
Referenced by WrappedReceiverClass_new().
Create a receiver object for audio signal.
Create a TTReceiver object for audio signal.
Definition at line 461 of file JamomaModularForPd.cpp.
References TTValue::append(), jamoma_callback_return_address(), kTTErrNone, and TTObject::set().
Referenced by WrappedReceiverClass_new().
Create a sender object.
Create a TTSender object.
Definition at line 403 of file JamomaModularForPd.cpp.
References kTTErrNone.
Referenced by WrappedSenderClass_new().
Create a sender object for audio signal.
Create a TTSender object for audio signal.
Definition at line 410 of file JamomaModularForPd.cpp.
References kTTErrNone.
Referenced by WrappedSenderClass_new().
Send Max data using a sender object.
Send Max data using a TTSender object.
Definition at line 422 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_from_Atom(), kTTErrGeneric, TTObject::send(), and TTObject::valid().
Referenced by send_list().
TTErr jamoma_subscriber_create | ( | t_eobj * | 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.
x | |
anObject | |
relativeAddress | |
returnedSubscriber | Pointer to the new #TTSubscriber object. |
returnedAddress | |
returnedNode | |
returnedContextNode |
Definition at line 32 of file JamomaModularForPd.cpp.
References TTValue::append(), TTSymbol::c_str(), TTObject::get(), TTAddress::getNameInstance(), jamoma_patcher_get_args(), jamoma_patcher_get_info(), jamoma_subscriber_get_patcher_list(), kTTErrGeneric, kTTErrNone, TTObject::send(), TTValue::size(), and TTObject::valid().
void jamoma_subscriber_get_patcher_list | ( | t_eobj * | 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.
x | |
aContextListToFill |
Definition at line 243 of file JamomaModularForPd.cpp.
References jamoma_patcher_get_hierarchy(), and jamoma_patcher_get_info().
Referenced by jamoma_subscriber_create().
t_symbol* jamoma_TTName_To_PdName | ( | 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.
TTName |
Definition at line 1150 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), and ToAppName.
Referenced by wrapTTModularClassAsPdClass().
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 1093 of file JamomaModularForPd.cpp.
References TTValue::clear(), and TTValue::resize().
Referenced by data_dec(), data_inc(), jamoma_container_send(), jamoma_data_command(), jamoma_input_send(), jamoma_output_send(), jamoma_sender_send(), jamoma_viewer_send(), model_return_upper_view_model_address(), model_set_amenities(), model_signal_return_audio_bypass(), model_signal_return_audio_gain(), model_signal_return_audio_mix(), model_signal_return_audio_mute(), model_signal_return_data_bypass(), ramp_functionParameter(), ramp_return_value(), ramp_schedulerParameter(), ramp_set(), WrappedInputClass_new(), wrappedModularClass_attrSet(), wrappedModularClass_sendMessage(), wrappedModularClass_setAttribute(), and WrappedOutputClass_new().
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 1060 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), kTypeFloat32, kTypeFloat64, kTypeSymbol, and TTValue::size().
Referenced by jamoma_callback_return_signal(), jamoma_callback_return_value(), model_get_amenities(), ramp_functionParameter(), ramp_schedulerParameter(), TTUiInfo::setFreeze(), wrappedModularClass_attrGet(), wrappedModularClass_attrSet(), wrappedModularClass_sendMessage(), and wrappedModularClass_setAttribute().
void jamoma_ttvalue_to_typed_Atom | ( | const TTValue & | v, |
t_symbol ** | msg, | ||
long * | argc, | ||
t_atom ** | argv, | ||
TTBoolean & | shifted | ||
) |
Return audio signal.
Make a typed Atom array from a TTValue.
disable audio support for now void jamoma_callback_return_signal_audio(const TTValue& baton, const TTValue& v) { t_object *x; TTPtr signal; long i, argc = 0; t_atom *argv = NULL;
unpack baton (a t_object*) x = (t_object*)((TTPtr)baton[0]);
unpack data (signal) argc = v.size(); argv = (t_atom*)sysmem_newptr(sizeof(t_atom) * argc); for (i = 0; i < argc; i++) { signal = v[i]; atom_setobj(argv+i, signal); }
send signal using the return_signal method object_method(x, jps_return_signal, _sym_nothing, argc, argv);
sysmem_freeptr(argv); }Make a typed Atom array from a TTValue (!!! this method allocate memory for the Atom array ! free it after !
Definition at line 1007 of file JamomaModularForPd.cpp.
References TTSymbol::c_str(), kTypeFloat32, kTypeFloat64, kTypeSymbol, and TTValue::size().
Referenced by jamoma_callback_return_value_typed().
Create a viewer object.
Create a #TTViewer object.
Definition at line 648 of file JamomaModularForPd.cpp.
References jamoma_callback_return_value_typed(), kTTErrNone, and TTObject::set().
Send Max data using a viewer object.
Send Max data using a #TTViewer object.
Definition at line 659 of file JamomaModularForPd.cpp.
References jamoma_ttvalue_from_Atom(), kTTErrGeneric, TTObject::send(), and TTObject::valid().