|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cycling74.msp.MSPSignal
public class MSPSignal
MSPSignal is the Java object representation of the sample vector used by MSP processing data at audio rate. It also contains meta data about the current MSP siganl processing context as well
Field Summary | |
---|---|
short |
cc
In your dsp and perform routines you are passed an array of MSPSiganl instances corresponding to the SIGNAL inlets and outlets you declared in your constructor. |
boolean |
connected
In your dsp and perform routines you are passed an array of MSPSiganl instances corresponding to the SIGNAL inlets and outlets you declared in your constructor. |
int |
n
Size of sample vectors in the current MSP dsp context.This is currently equivalent to vec.length. |
double |
sr
Sampling rate of the current MSP dsp context. |
float[] |
vec
The current vector sample data. |
Constructor Summary | |
---|---|
MSPSignal(float[] vec_,
double sr_,
int n_,
short cc_)
Constructor for creating your own MSPSignal instances. |
Method Summary | |
---|---|
MSPSignal |
alias()
Return a unique instance of this MSPSignal pointing to the same sample vector and having identical sample rate, vector size, connection count etc. |
MSPSignal |
dup()
Return an exact and unique copy of this instance of MSPSignal. |
MSPSignal |
dupclean()
Return an exact and unique copy of this instance of MSPSignal with a zeroed out sample vector. |
java.lang.String |
toString()
Get a printable representation of this MSPSignal instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final float[] vec
public double sr
public int n
public short cc
public boolean connected
Constructor Detail |
---|
public MSPSignal(float[] vec_, double sr_, int n_, short cc_)
Method Detail |
---|
public MSPSignal dup()
public MSPSignal dupclean()
public MSPSignal alias()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |