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

j.score - external to handle a score project localy or remotely More...

#include "TTModularClassWrapperMax.h"
#include "TTScore.h"
+ Include dependency graph for Max/source/j.score/j.score.cpp:

Go to the source code of this file.

Classes

struct  t_extra
 Data structure for storing extra data. More...
 

Functions

void WrapTTScoreClass (WrappedClassPtr c)
 Set up what methods (Max messages) that the wrapped class is to respond to. More...
 
void WrappedScoreClass_new (TTPtr self, long argc, t_atom *argv)
 Constructor: Initiate the wrapped object instance. More...
 
void WrappedScoreClass_free (TTPtr self)
 Deconstructor: Destroy the object and free memory assigned to it. More...
 
void score_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Display assist messages for inlets and outlets in Max. More...
 
void score_filechanged (TTPtr self, char *filename, short path)
 
void score_read (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void score_doread (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void score_read_again (TTPtr self)
 
void score_doread_again (TTPtr self)
 
void score_write (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void score_dowrite (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 
void score_write_again (TTPtr self)
 
void score_dowrite_again (TTPtr self)
 
void score_edit (TTPtr self, t_symbol *msg, long argc, const t_atom *argv)
 
void score_edclose (TTPtr self, char **text, long size)
 
void score_doedit (TTPtr self)
 
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.score - external to handle a score project localy or remotely

Author
Théo de la Hogue

Definition in file Max/source/j.score/j.score.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 150 of file Max/source/j.score/j.score.cpp.

References WrappedScoreClass_free(), WrappedScoreClass_new(), wrapTTModularClassAsMaxClass(), and WrapTTScoreClass().

+ Here is the call graph for this function:

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

Display assist messages for inlets and outlets in Max.

Parameters
selfPointer to the object.
bThis does not seem to be used.
msg"1" if we are to display assist message for an inlet, else we are to display assist message for an outlet.
argThe number of the inlet or outlet that we are to display assist message for. 0 is the leftmost.
dstPointer to the destination used for displaying the assist message.

Definition at line 241 of file Max/source/j.score/j.score.cpp.

Referenced by WrapTTScoreClass().

void score_doedit ( TTPtr  self)
Parameters
self

Definition at line 526 of file Max/source/j.score/j.score.cpp.

Referenced by score_edclose().

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

Definition at line 267 of file Max/source/j.score/j.score.cpp.

References TTSymbol::c_str(), TTObject::get(), jamoma_file_read(), TTObject::registerObserverForNotifications(), TTObject::send(), TTValue::size(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by score_filechanged(), and score_read().

+ Here is the call graph for this function:

void score_doread_again ( TTPtr  self)
Parameters
self

Definition at line 338 of file Max/source/j.score/j.score.cpp.

References TTObject::send(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by score_read_again().

+ Here is the call graph for this function:

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

Definition at line 363 of file Max/source/j.score/j.score.cpp.

References TTSymbol::c_str(), jamoma_file_write(), TTObject::valid(), and WrappedModularInstance::wrappedObject.

Referenced by score_write().

+ Here is the call graph for this function:

void score_dowrite_again ( TTPtr  self)
Parameters
self

Definition at line 413 of file Max/source/j.score/j.score.cpp.

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

Referenced by score_write_again().

+ Here is the call graph for this function:

void score_edclose ( TTPtr  self,
char **  text,
long  size 
)
Parameters
self
text
size

Definition at line 516 of file Max/source/j.score/j.score.cpp.

References score_doedit().

+ Here is the call graph for this function:

void score_edit ( TTPtr  self,
t_symbol *  msg,
long  argc,
const t_atom *  argv 
)
Parameters
self
msg
argc
argv

Definition at line 438 of file Max/source/j.score/j.score.cpp.

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

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

void score_filechanged ( TTPtr  self,
char *  filename,
short  path 
)
Parameters
self
filename
path

Definition at line 255 of file Max/source/j.score/j.score.cpp.

References score_doread().

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

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

Definition at line 262 of file Max/source/j.score/j.score.cpp.

References score_doread().

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

void score_read_again ( TTPtr  self)
Parameters
self

Definition at line 333 of file Max/source/j.score/j.score.cpp.

References score_doread_again().

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

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

Definition at line 358 of file Max/source/j.score/j.score.cpp.

References score_dowrite().

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

void score_write_again ( TTPtr  self)
Parameters
self

Definition at line 408 of file Max/source/j.score/j.score.cpp.

References score_dowrite_again().

Referenced by WrapTTScoreClass().

+ Here is the call graph for this function:

void WrappedScoreClass_free ( TTPtr  self)

Deconstructor: Destroy the object and free memory assigned to it.

Parameters
selfPointer to the object.

Definition at line 223 of file Max/source/j.score/j.score.cpp.

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

Referenced by main().

+ Here is the call graph for this function:

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

Constructor: Initiate the wrapped object instance.

Parameters
selfPointer to the object.
argcThe number of arguments to the new object instance
argvPointer to the array of atoms containing the arguments to the object instance.

Definition at line 176 of file Max/source/j.score/j.score.cpp.

References WrappedModularInstance::extra, TTModularApplicationManager, and WrappedModularInstance::wrappedObject.

Referenced by main().

void WrapTTScoreClass ( WrappedClassPtr  c)

Set up what methods (Max messages) that the wrapped class is to respond to.

Parameters
cPointer to the wrapped class.

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

References score_assist(), score_edit(), score_filechanged(), score_read(), score_read_again(), score_write(), and score_write_again().

Referenced by main().

+ Here is the call graph for this function: