|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cycling74.max.MaxObject
com.cycling74.msp.MSPObject
com.cycling74.msp.MSPPerformer
public abstract class MSPPerformer
Alternative base class for a Java signal processing object.Subclassing MSPPerformer is somewhat simpler than subclassing MSPObject directly. Subclass this directly or indirectly to create your own Java signal processing objects for use in Max. See the mxj~ examples directory in the java-doc directory of your Max install for more sample code. See also 'WritingMaxExternalsInJava.pdf' for a more detailed discussion about writing Max signal processing classes in Java.
Field Summary |
---|
Fields inherited from class com.cycling74.msp.MSPObject |
---|
MSP_SIGNAL_ARRAY_CLZ, SIGNAL |
Fields inherited from class com.cycling74.max.MaxObject |
---|
EMPTY_STRING_ARRAY, NO_INLETS, NO_OUTLETS |
Constructor Summary | |
---|---|
MSPPerformer()
|
Method Summary | |
---|---|
java.lang.reflect.Method |
dsp(MSPSignal[] in,
MSPSignal[] out)
Since it is abstract, the dsp method must be implemented by your MSPObject subclass. |
void |
dspsetup(MSPSignal[] sigs_in,
MSPSignal[] sigs_out)
The dspsetup method is called once when the MSP signal compiler is building the dsp chain for the patch which contains your MSPPerformer instance. |
abstract void |
perform(MSPSignal[] sigs_in,
MSPSignal[] sigs_out)
The perform method is called continuosly as part of the MSP dsp chain to process sample vectors after the dspsetup method is called and until the MSP dsp chain is stopped.This is the workhorse of your signal processing class. |
Methods inherited from class com.cycling74.msp.MSPObject |
---|
dspstate, getPerformMethod, setNoInPlace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MSPPerformer()
Method Detail |
---|
public java.lang.reflect.Method dsp(MSPSignal[] in, MSPSignal[] out)
MSPObject
private void myPerformMethod(MSPSignal[] inlets, MSPSignal[] outlets)The dsp method is called once when the MSP signal compiler is building the dsp chain for the patch which contains your MSPObject instance. You are passed two arrays of MSPSiganl objects corresponding to the SIGNAL inlets/outlets you declared in your declareInlets/decalreOutlets calls in your constructor. You can interrogate any of these MSPSiganl instances for meta information about the current dsp context including sampling rate, sample vector size etc.
dsp
in class MSPObject
in
- array of MSPSiganl objects corresponding to the type SIGNAL inlets declared in
your constructor.out
- array of MSPSiganl objects corresponding to the type SIGNAL outlets declared in
your constructor.
com.cycling74.msp
public void dspsetup(MSPSignal[] sigs_in, MSPSignal[] sigs_out)
dspsetup
in interface MSPPerformable
sigs_in
- array of MSPSiganl objects corresponding to the type SIGNAL inlets declared in
your constructor.sigs_out
- array of MSPSiganl objects corresponding to the type SIGNAL outlets declared in
your constructor.com.cycling74.msp
public abstract void perform(MSPSignal[] sigs_in, MSPSignal[] sigs_out)
perform
in interface MSPPerformable
sigs_in
- array of MSPSiganl objects corresponding to the type SIGNAL inlets declared in
your constructor.sigs_out
- array of MSPSiganl objects corresponding to the type SIGNAL outlets declared in
your constructor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |