Jamoma API
0.6.0.a19
|
A thin wrapper of Jamoma AudioGraph for use in the Cycling '74 Max/MSP environment. More...
#include "ext.h"
#include "ext_obex.h"
#include "ext_strings.h"
#include "commonsyms.h"
#include "z_dsp.h"
#include "jpatcher_api.h"
#include "TTAudioGraphAPI.h"
#include "maxGraph.h"
Go to the source code of this file.
Classes | |
struct | MaxAudioGraphWrappedClass |
Type definition for an AudioGraph class wrapped as a Max external. More... | |
class | MaxAudioGraphWrappedClassOptions |
A class representing the options of a MaxAudioGraphWrappedClass. More... | |
Typedefs | |
typedef TTErr(* | TTValidityCheckFunction) (const TTPtr data) |
A type that can be used to store a pointer to a validity checking function. | |
typedef MaxAudioGraphWrappedClass * | MaxAudioGraphWrappedClassPtr |
A pointer to a MaxAudioGraphWrappedClass. | |
typedef MaxAudioGraphWrappedClassOptions * | MaxAudioGraphWrappedClassOptionsPtr |
A pointer to MaxAudioGraphWrappedClassOptions. | |
Functions | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c) |
Wrap an AudioGraph class as a Max class. More... | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c, TTValidityCheckFunction validityCheck) |
This version can be passed a method that is called to make sure it is okay to instantiate the class. More... | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c, TTValidityCheckFunction validityCheck, TTPtr validityCheckArgument) |
This version can be passed a method that is called to make sure it is okay to instantiate the class. More... | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttblueClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c, MaxAudioGraphWrappedClassOptionsPtr options) |
This version can be passed a method that is called to make sure it is okay to instantiate the class. More... | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttblueClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c, TTValidityCheckFunction validityCheck, MaxAudioGraphWrappedClassOptionsPtr options) |
This version can be passed a method that is called to make sure it is okay to instantiate the class. More... | |
TTErr | wrapAsMaxAudioGraph (TTSymbol ttblueClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c, TTValidityCheckFunction validityCheck, TTPtr validityCheckArgument, MaxAudioGraphWrappedClassOptionsPtr options) |
This version can be passed a method that is called to make sure it is okay to instantiate the class. More... | |
TTErr | MaxAudioGraphDrop (t_object *self, long inletNumber, t_object *sourceMaxObject, long sourceOutletNumber) |
Method called when a connection from an upstream node is dropped. More... | |
TTErr | MaxAudioGraphObject (t_object *self, TTAudioGraphObjectBasePtr *returnedAudioGraphObject) |
Returns a pointer to the Jamoma Audio Graph object that is wrapped by this Max object. More... | |
TTErr | MaxAudioGraphConnect (t_object *x, TTAudioGraphObjectBasePtr audioSourceObject, TTUInt16 sourceOutletNumber) |
Method called when an upstream node is connected to this node. More... | |
TTErr | MaxAudioGraphReset (t_object *x, long vectorSize) |
Clear the list of source objects from which this object will try to pull audio. More... | |
TTErr | MaxAudioGraphSetup (t_object *self) |
Set up fresh connections from this object to nodes that are connected downstream. More... | |
A thin wrapper of Jamoma AudioGraph for use in the Cycling '74 Max/MSP environment.
Includes an automated class wrapper to make Jamoma DSP object's available as objects for Max/MSP.
Definition in file MaxAudioGraph.h.
TTErr MaxAudioGraphConnect | ( | t_object * | x, |
TTAudioGraphObjectBasePtr | audioSourceObject, | ||
TTUInt16 | sourceOutletNumber | ||
) |
Method called when an upstream node is connected to this node.
x | This Max object. |
audioSourceObject | The upstream object/node that is now connecting. |
sourceOutletNumber | What outlet of the upstream object that is now connecting to this object. |
Definition at line 160 of file MaxAudioGraph.cpp.
TTErr MaxAudioGraphDrop | ( | t_object * | self, |
long | inletNumber, | ||
t_object * | sourceMaxObject, | ||
long | sourceOutletNumber | ||
) |
Method called when a connection from an upstream node is dropped.
self | This Max object. |
inletNumber | The inlet of this object who is now loosing a connection. |
sourceMaxObject | The upstream (source) object who is now disconnecting. |
sourceOutletNumber | The outlet of the source object that is now being disconnected. |
Definition at line 170 of file MaxAudioGraph.cpp.
TTErr MaxAudioGraphObject | ( | t_object * | self, |
TTAudioGraphObjectBasePtr * | returnedAudioGraphObject | ||
) |
Returns a pointer to the Jamoma Audio Graph object that is wrapped by this Max object.
self | This Max object. |
returnedAudioGraphObject | Pointer to the wrapped Jamoma Audio Graph object. |
Definition at line 183 of file MaxAudioGraph.cpp.
TTErr MaxAudioGraphReset | ( | t_object * | x, |
long | vectorSize | ||
) |
Clear the list of source objects from which this object will try to pull audio.
x | This Max object. |
vectorSize | Initial vector size, might be overruled by subsequent process calls. |
Definition at line 136 of file MaxAudioGraph.cpp.
TTErr MaxAudioGraphSetup | ( | t_object * | self | ) |
Set up fresh connections from this object to nodes that are connected downstream.
self | This Max object. |
Definition at line 143 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c | ||
) |
Wrap an AudioGraph class as a Max class.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external |
c | Address to a variable to hold the wrapped Max class upon return. |
Definition at line 351 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c, | ||
TTValidityCheckFunction | validityCheck | ||
) |
This version can be passed a method that is called to make sure it is okay to instantiate the class.
This is useful, for example, if you need to have copy-protection for your external.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external. |
c | Address to a variable to hold the wrapped Max class upon return. |
validityCheck | Pointer to a function that will return a true or false regarding whether or not it is okay to instantiate the object. |
Definition at line 479 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c, | ||
TTValidityCheckFunction | validityCheck, | ||
TTPtr | validityCheckArgument | ||
) |
This version can be passed a method that is called to make sure it is okay to instantiate the class.
This is useful, for example, if you need to have copy-protection for your external.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external. |
c | Address to a variable to hold the wrapped Max class upon return. |
validityCheck | Pointer to a function that will return a true or false regarding whether or not it is okay to instantiate the object. |
validityCheckArgument | An argument that will be passed to the validity check function, or NULL if you don't wish to pass an argument. |
Definition at line 502 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttblueClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c, | ||
MaxAudioGraphWrappedClassOptionsPtr | options | ||
) |
This version can be passed a method that is called to make sure it is okay to instantiate the class.
This is useful, for example, if you need to have copy-protection for your external.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external. |
c | Address to a variable to hold the wrapped Max class upon return. |
options | Pointer to additional options that will be forwarded to the wrapped object when instantiated. |
Definition at line 356 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttblueClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c, | ||
TTValidityCheckFunction | validityCheck, | ||
MaxAudioGraphWrappedClassOptionsPtr | options | ||
) |
This version can be passed a method that is called to make sure it is okay to instantiate the class.
This is useful, for example, if you need to have copy-protection for your external.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external. |
c | Address to a variable to hold the wrapped Max class upon return. |
validityCheck | Pointer to a function that will return a true or false regarding whether or not it is okay to instantiate the object. |
options | Pointer to additional options that will be forwarded to the wrapped object when instantiated. |
Definition at line 490 of file MaxAudioGraph.cpp.
TTErr wrapAsMaxAudioGraph | ( | TTSymbol | ttblueClassName, |
char * | maxClassName, | ||
MaxAudioGraphWrappedClassPtr * | c, | ||
TTValidityCheckFunction | validityCheck, | ||
TTPtr | validityCheckArgument, | ||
MaxAudioGraphWrappedClassOptionsPtr | options | ||
) |
This version can be passed a method that is called to make sure it is okay to instantiate the class.
This is useful, for example, if you need to have copy-protection for your external.
ttClassName | Name of the Jamoma Audio Graph class that will be wrapped. |
maxClassName | Name of the resulting Max external. |
c | Address to a variable to hold the wrapped Max class upon return. |
validityCheck | Pointer to a function that will return a true or false regarding whether or not it is okay to instantiate the object. |
validityCheckArgument | An argument that will be passed to the validity check function, or NULL if you don't wish to pass an argument. |
options | Pointer to additional options that will be forwarded to the wrapped object when instantiated. |
Definition at line 513 of file MaxAudioGraph.cpp.