|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 Instrument
on
in class InstrumentAdapter
Instrument.on(double, double, double[])
public java.lang.Object off(double playTime, double timeStretch, double[] data)
off
in interface Instrument
off
in class InstrumentAdapter
com.softsynth.jmsl.Instrument#off(double, Object)
public double play(double playTime, double timeStretch, double[] data)
play
in interface Instrument
play
in class InstrumentAdapter
public double update(double playTime, double timeStretch, double[] data)
update
in interface Instrument
update
in class InstrumentAdapter
public 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 Editable
public void addEditListener(EditListener listener)
addEditListener
in interface Editable
public void removeEditListener(EditListener listener)
removeEditListener
in interface Editable
public void setEditEnabled(boolean flag)
Editable
setEditEnabled
in interface Editable
public 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 HandleSpecialXMLTag
java.io.IOException
public void beginElement(java.lang.String tag, java.util.Hashtable attributes, boolean ifEmpty)
public java.lang.Object getOutput()
OutputProvider
getOutput
in interface OutputProvider
getOutput
in class InstrumentAdapter
public java.lang.Object getOutput(int partNumber)
getOutput
in interface OutputProvider
getOutput
in class InstrumentAdapter
public int getNumOutputs()
getNumOutputs
in interface OutputProvider
getNumOutputs
in class InstrumentAdapter
public 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 |