|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.view.PVPanelAdapter jmslexamples.KeyboardInstrumentPlayer
public class KeyboardInstrumentPlayer
Play an Instrument by typing in a TextArea. Edit all dimensions of instrument with faders. Demonstrates the use of Instrument.on() and Instrument.off() as well as DimensionNameSpaceEditPanel This example uses both JSyn and MIDI Instruments This JSyn instrument uses 13 tone equal temperament tuning. Be sure to type in the TextArea so it can capture your key presses.
Constructor Summary | |
---|---|
KeyboardInstrumentPlayer(int rows,
int cols)
|
Method Summary | |
---|---|
DimensionNameSpace |
getDimensionNameSpace()
DimensionNameSpaceEditable interface |
double[] |
getDoubleArray()
DimensionNameSpaceEditable interface |
void |
keyPressed(java.awt.event.KeyEvent ev)
|
void |
keyReleased(java.awt.event.KeyEvent ev)
Turn note off |
void |
keyTyped(java.awt.event.KeyEvent ev)
Turn note on |
static void |
main(java.lang.String[] args)
|
void |
setDimensionNameSpace(DimensionNameSpace d)
DimensionNameSpaceEditable interface |
void |
setDoubleArray(double[] dar)
DimensionNameSpaceEditable interface |
void |
setInstrument(Instrument instrument)
Set instrument, store its DimensionNameSpace, build compatible double[], and build a DimensionNameSpaceEditPanel to change the array's contents. |
Methods inherited from class com.softsynth.jmsl.view.PVPanelAdapter |
---|
add, add, addKeyListener, equals, getBackground, getBounds, getComponent, getFont, getParent, hashCode, isEnabled, remove, removeAll, removeKeyListener, setBackground, setEnabled, setFont, setLayout, setLocation, setVisible, toString, validate |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyboardInstrumentPlayer(int rows, int cols)
Method Detail |
---|
public void keyPressed(java.awt.event.KeyEvent ev)
keyPressed
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent ev)
keyTyped
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent ev)
keyReleased
in interface java.awt.event.KeyListener
public void setInstrument(Instrument instrument)
public void setDimensionNameSpace(DimensionNameSpace d)
setDimensionNameSpace
in interface DimensionNameSpaceEditable
public DimensionNameSpace getDimensionNameSpace()
getDimensionNameSpace
in interface DimensionNameSpaceEditable
public double[] getDoubleArray()
getDoubleArray
in interface DimensionNameSpaceEditable
public void setDoubleArray(double[] dar)
setDoubleArray
in interface DimensionNameSpaceEditable
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |