|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.jmsl.InstrumentAdapter
com.softsynth.jmsl.max.MaxInstrument
public class MaxInstrument
A MaxInstrument is a JMSL Instrument that can be used to send scheduled data to Max. Edit to give it a custom DimensionNameSpaces for paramteric control over MSP patches, for example. The on(), off(), play(), and update() methods pass data to Max through the static JMSLInstrumentToMax
| Field Summary | |
|---|---|
static int |
MAX_INS_OFF
|
static int |
MAX_INS_ON
|
static int |
MAX_INS_PLAY
|
static int |
MAX_INS_UPDATE
|
| Constructor Summary | |
|---|---|
MaxInstrument()
|
|
| Method Summary | |
|---|---|
void |
addEditListener(EditListener listener)
|
void |
beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
|
void |
edit(java.awt.Frame f)
Bring up a Dialog for editing, for example |
boolean |
getEditEnabled()
|
int |
getInsIndex()
|
int |
getNumOutputs()
|
java.lang.Object |
getOutput()
get this output (SynthOutput in the case of a JSyn Instrument, for example |
java.lang.Object |
getOutput(int partNumber)
|
boolean |
handleSpecialTag(java.lang.String tag,
java.util.Hashtable attributes)
|
static void |
main(java.lang.String[] args)
|
java.lang.Object |
off(double playTime,
double timeStretch,
double[] data)
Sends data to JMSLInstrumentToMax where it can be unpacked and sent to various MSP, CSound, etc sound makers. |
java.lang.Object |
on(double playTime,
double timeStretch,
double[] data)
Sends data to JMSLInstrumentToMax where it can be unpacked and sent to various MSP, CSound, etc sound makers. |
double |
play(double playTime,
double timeStretch,
double[] data)
Sends data to JMSLInstrumentToMax where it can be unpacked and sent to various MSP, CSound, etc sound makers. |
void |
removeEditListener(EditListener listener)
|
static void |
resetInstrumentIndex()
Reset static MaxInstrument index to 0. |
void |
setEditEnabled(boolean flag)
Set a flag. |
void |
setInsIndex(int myInsIndex)
|
static void |
setJmslInstrumentToMax(JMSLInstrumentToMax jmslInstrumentToMax)
|
double |
update(double playTime,
double timeStretch,
double[] data)
Sends data to JMSLInstrumentToMax where it can be unpacked and sent to various MSP, CSound, etc sound makers. |
void |
writeSpecialXMLTags(java.io.PrintWriter out)
Write special tags out that do not conform to get/set bean model. |
| Methods inherited from class com.softsynth.jmsl.InstrumentAdapter |
|---|
close, getDimensionNameSpace, getInterpreter, getMixerClassName, getMusicDevice, getName, getTransposition, noteOff, noteOn, noteOnFor, open, setDimensionNameSpace, setInterpreter, setMixerClassName, setMusicDevice, setName, setTransposition, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_INS_OFF
public static final int MAX_INS_ON
public static final int MAX_INS_UPDATE
public static final int MAX_INS_PLAY
| Constructor Detail |
|---|
public MaxInstrument()
| Method Detail |
|---|
public java.lang.Object on(double playTime,
double timeStretch,
double[] data)
on in interface Instrumenton in class InstrumentAdapterInstrument.on(double, double, double[])
public java.lang.Object off(double playTime,
double timeStretch,
double[] data)
off in interface Instrumentoff in class InstrumentAdaptercom.softsynth.jmsl.Instrument#off(double, Object)
public double play(double playTime,
double timeStretch,
double[] data)
play in interface Instrumentplay in class InstrumentAdapter
public double update(double playTime,
double timeStretch,
double[] data)
update in interface Instrumentupdate in class InstrumentAdapterpublic static void resetInstrumentIndex()
public int getInsIndex()
public void setInsIndex(int myInsIndex)
myInsIndex - The myInsIndex to set.public void edit(java.awt.Frame f)
Editable
edit in interface Editablepublic void addEditListener(EditListener listener)
addEditListener in interface Editablepublic void removeEditListener(EditListener listener)
removeEditListener in interface Editablepublic void setEditEnabled(boolean flag)
Editable
setEditEnabled in interface Editablepublic boolean getEditEnabled()
getEditEnabled in interface Editable
public boolean handleSpecialTag(java.lang.String tag,
java.util.Hashtable attributes)
handleSpecialTag in interface HandleSpecialXMLTag
public void writeSpecialXMLTags(java.io.PrintWriter out)
throws java.io.IOException
HandleSpecialXMLTag
writeSpecialXMLTags in interface HandleSpecialXMLTagjava.io.IOException
public void beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
public java.lang.Object getOutput()
OutputProvider
getOutput in interface OutputProvidergetOutput in class InstrumentAdapterpublic java.lang.Object getOutput(int partNumber)
getOutput in interface OutputProvidergetOutput in class InstrumentAdapterpublic int getNumOutputs()
getNumOutputs in interface OutputProvidergetNumOutputs in class InstrumentAdapterpublic static void main(java.lang.String[] args)
public static void setJmslInstrumentToMax(JMSLInstrumentToMax jmslInstrumentToMax)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||