Jamoma API  0.6.0.a19
j.ramp.cpp File Reference

j.ramp : Ramp values using Jamoma's RampLib library More...

+ Include dependency graph for j.ramp.cpp:

Go to the source code of this file.

Classes

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

Functions

void WrapTTRampClass (WrappedClassPtr c)
 Wrap the TTRamp class as a Max object. More...
 
void WrappedRampClass_new (TTPtr self, long argc, t_atom *argv)
 Wrapper for the j.ramp constructor class, called when an instance is created. More...
 
void WrappedRampClass_free (TTPtr self)
 Wrapper for the j.ramp destructor class, called when an instance is deleted. More...
 
void ramp_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Method for Assistance Messages.
 
void ramp_bang (TTPtr self)
 Get a new value now. More...
 
void ramp_int (TTPtr self, long n)
 Method for int input, instantly updates current value of the object. More...
 
void ramp_float (TTPtr self, double f)
 Method for float input, instantly updates current value of the object. More...
 
void ramp_set (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Set current value while surpressing new value(s from being output. More...
 
void ramp_stop (TTPtr self)
 Stop ongoing ramp.
 
void ramp_list (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Method for list input <value(s), "ramp", ramptime>
 
void ramp_return_value (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Return the ramped values out.
 
void ramp_schedulerParameter (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Get or set value of scheduler parameter.
 
void ramp_functionParameter (TTPtr self, t_symbol *msg, long argc, t_atom *argv)
 Get or set value of function parameter.
 
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.ramp : Ramp values using Jamoma's RampLib library

Authors
Tim Place, Trond Lossius

Definition in file j.ramp.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 89 of file j.ramp.cpp.

References WrappedRampClass_free(), WrappedRampClass_new(), wrapTTModularClassAsMaxClass(), and WrapTTRampClass().

+ Here is the call graph for this function:

void ramp_bang ( TTPtr  self)

Get a new value now.

Definition at line 179 of file j.ramp.cpp.

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

Referenced by WrapTTRampClass().

+ Here is the call graph for this function:

void ramp_float ( TTPtr  self,
double  f 
)

Method for float input, instantly updates current value of the object.

Definition at line 201 of file j.ramp.cpp.

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

Referenced by main(), and WrapTTRampClass().

+ Here is the call graph for this function:

void ramp_int ( TTPtr  self,
long  n 
)

Method for int input, instantly updates current value of the object.

Definition at line 188 of file j.ramp.cpp.

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

Referenced by main(), and WrapTTRampClass().

+ Here is the call graph for this function:

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

Set current value while surpressing new value(s from being output.

Definition at line 214 of file j.ramp.cpp.

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

Referenced by WrapTTRampClass().

+ Here is the call graph for this function:

void WrappedRampClass_free ( TTPtr  self)

Wrapper for the j.ramp destructor class, called when an instance is deleted.

Parameters
selfPointer to this object.
See also
WrappedInputClass_new

Definition at line 146 of file j.ramp.cpp.

Referenced by main().

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

Wrapper for the j.ramp 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
WrappedInputClass_free

Definition at line 124 of file j.ramp.cpp.

References WrappedModularInstance::extra, jamoma_ramp_create(), WrappedModularInstance::outlets, TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrapTTRampClass ( WrappedClassPtr  c)

Wrap the TTRamp class as a Max object.

Parameters
cThe class to be wrapped
See also
WrappedInputClass_new, WrappedInputClass_free

Definition at line 100 of file j.ramp.cpp.

References ramp_assist(), ramp_bang(), ramp_float(), ramp_functionParameter(), ramp_int(), ramp_list(), ramp_return_value(), ramp_schedulerParameter(), ramp_set(), and ramp_stop().

Referenced by main().

+ Here is the call graph for this function: