|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cycling74.msp.MSPBuffer
public class MSPBuffer
Used to get or set pd array content. Please note that the channel parameter is added in the API to match Max/MSP MSPBuffer signature.
| Method Summary | |
|---|---|
static int |
getChannel(String name)
Return the number of channel for this array. |
static long |
getSize(String name)
Returns the array size |
static float[] |
peek(String name)
Returns the array content. |
static float[] |
peek(String name,
int channel)
Returns the array content. |
static float |
peek(String name,
int channel,
long index)
Returns the array content value at a specific position. |
static float[] |
peek(String name,
int channel,
long start,
long length)
Returns the array content. |
static void |
poke(String name,
float[] values)
Sets array content. |
static void |
poke(String name,
int channel,
float[] values)
Sets array content. |
static void |
poke(String name,
int channel,
long index,
float value)
Set a value in a array. |
static void |
poke(String name,
int channel,
long start,
float[] values)
Sets array content. |
static void |
setSize(String name,
int numchannel,
long size)
Sets the array size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static float[] peek(String name)
name - the array name
public static float[] peek(String name,
int channel)
name - the array namechannel - not used in pd
public static float[] peek(String name,
int channel,
long start,
long length)
name - the array namechannel - not used in pdstart - the start index of the arraylength - the size of the array to return
public static float peek(String name,
int channel,
long index)
name - the array namechannel - not used in pdindex - the start index of the array
start
public static void poke(String name,
float[] values)
name - the array namevalues - the array to set
public static void poke(String name,
int channel,
float[] values)
name - the array namechannel - not used in pdvalues - the array to set
public static void poke(String name,
int channel,
long start,
float[] values)
name - the array namechannel - not used in pdstart - the start index of the arrayvalues - the array to set
public static void poke(String name,
int channel,
long index,
float value)
name - the array namechannel - not used in pdindex - the index in the array to setvalue - the value to set in the array
public static void setSize(String name,
int numchannel,
long size)
name - the array namenumchannel - not used in pdsize - the new array size;public static long getSize(String name)
name - the array name
public static int getChannel(String name)
name - array name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||