Jamoma API  0.6.0.a19

Jamoma For Max Shared Library. More...

#include "JamomaForMax.h"
+ Include dependency graph for JamomaForMax.cpp:

Go to the source code of this file.

Functions

void jamoma_atom_copy (t_atom *dst, t_atom *src)
 Utility function to perform an atom copy. More...
 
bool jamoma_atom_compare (t_symbol *type, t_atom *a1, t_atom *a2)
 Utility function to compare two t_atoms. More...
 
bool jamoma_string_compare (char *s1, char *s2)
 Compare two strings. More...
 
bool jamoma_loadextern (t_symbol *objectname, long argc, t_atom *argv, t_object **object)
 Load obex externals for use within other externals. More...
 

Variables

bool max5 = false
 Is Jamoma currently running in Max 5 or newer?
 
bool max6 = false
 Is Jamoma currently running in Max 6 or newer?
 
TTRegex * ttRegexForJmod = NULL
 A global regex to parse jmod. (usefull to detect a 0.5 module)
 
TTRegex * ttRegexForJcom = NULL
 A global regex to parse j.
 
TTRegex * ttRegexForModel = NULL
 A global regex to parse .model.
 
TTRegex * ttRegexForModule = NULL
 A global regex to parse .module.
 
TTRegex * ttRegexForView = NULL
 A global regex to parse .view.
 
TTRegex * ttRegexForMaxpat = NULL
 A global regex to parse .maxpat.
 
TTRegex * ttRegexForMaxhelp = NULL
 A global regex to parse .maxhelp.
 
TTRegex * ttRegexForBracket = NULL
 A global regex to parse [ and ].
 

Detailed Description

Jamoma For Max Shared Library.

Functions and resources used by Max objects.

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

Definition in file JamomaForMax.cpp.

Function Documentation

bool jamoma_atom_compare ( t_symbol *  type,
t_atom *  a1,
t_atom *  a2 
)

Utility function to compare two t_atoms.

Parameters
typeThe atom type of a1.
a1A t_atom.
a2The t_atom to compare against.
Returns
true if the t_atom's are the same.

Definition at line 186 of file JamomaForMax.cpp.

void jamoma_atom_copy ( t_atom *  dst,
t_atom *  src 
)

Utility function to perform an atom copy.

Parameters
dstThe destination t_atom.
srcThe t_atom to be copied.

Definition at line 180 of file JamomaForMax.cpp.

bool jamoma_loadextern ( t_symbol *  objectname,
long  argc,
t_atom *  argv,
t_object **  object 
)

Load obex externals for use within other externals.

Parameters
objectnameThe object name (i.e. SymbolGen("j.send")).
argcNumber of arguments to the external to be loaded.
argvPointer to the first of an array of atom arguments to the external that is to be loaded.
objectIf the object is loaded successfully, this will be a pointer to the object pointer.
Returns
true if successfully loaded, otherwise false.

Definition at line 258 of file JamomaForMax.cpp.

Referenced by main().

bool jamoma_string_compare ( char *  s1,
char *  s2 
)

Compare two strings.

Parameters
s1Pointer to the first of the two strings to compare-
s2Pointer to the second of the two strings to compare.
Returns
true if the strings are the same.

Definition at line 234 of file JamomaForMax.cpp.