|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.midi.MidiIO com.softsynth.jmsl.midi.MidiIO_JavaSound
public class MidiIO_JavaSound
Uses Sun's JavaSound package to provide MIDI output.
Field Summary |
---|
Fields inherited from class com.softsynth.jmsl.midi.MidiIO |
---|
CHANNEL_AFTERTOUCH, CONTROL_CHANGE, MIDI_PAN_CONTROL_INDEX, MIDI_VOLUME_CONTROL_INDEX, NOTE_OFF, NOTE_ON, PITCH_BEND, PITCH_BEND_CENTER, POLYPHONIC_AFTERTOUCH, PROGRAM_CHANGE |
Method Summary | |
---|---|
void |
closeDevices()
|
java.lang.String[] |
getInputDeviceNames()
|
java.lang.String[] |
getOutputDeviceNames()
|
java.io.File |
getSoundbankFile()
|
java.net.URL |
getSoundbankURL()
|
void |
initFromSoundbank()
This is called automatically if MidiSystem.getSynthesizer().getDefaultSoundbank() is NULL and a soundban has been successfully loaded from a File or a URL. |
static MidiIO_JavaSound |
instance()
|
static void |
main(java.lang.String[] args)
|
void |
openDevices(int inDevice,
int outDevice)
initialize JavaSound Midi. |
void |
sendMessage(double timeStamp,
int status,
int data1,
int data2)
|
void |
sendMessage(int status,
int data1,
int data2)
|
void |
setSoundbankFile(java.io.File soundbankFile)
if the synthesizer's soundbank is null in opendevices() and JMSL.isApplet() is false, try to load a soundbank from this File |
void |
setSoundbankURL(java.net.URL soundbankURL)
*If the synthesizer's soundbank is null in opendevices() and JMSL.isApplet() is true, try to load a soundbank from this URL |
void |
startListening()
|
void |
stopListening()
|
void |
synchClocks()
unimplemented |
void |
sysex(double timeStamp,
byte[] data)
Not implemented |
Methods inherited from class com.softsynth.jmsl.midi.MidiIO |
---|
addEditListener, addMidiParser, allNotesOff, allNotesOff, bendPitch, bendPitch, clearMidiLog, close, control, control, controlContinuous, controlContinuous, createMidiIO, edit, getEditEnabled, getInDevice, getMidiParser, getOutDevice, getQuiet, logMessage, logMessage, noteOff, noteOff, noteOff, noteOff, noteOn, noteOn, open, printMidiLog, programChange, programChange, removeEditListener, removeMidiParser, scheduleMessage, setEditEnabled, setInDevice, setMidiLogging, setOutDevice, setQuiet, sysex, test1, test2, test3, writeMidiFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MidiIO_JavaSound instance()
public void openDevices(int inDevice, int outDevice)
openDevices
in class MidiIO
public void initFromSoundbank()
sb
- public void closeDevices()
closeDevices
in class MidiIO
public void sendMessage(int status, int data1, int data2)
sendMessage
in class MidiIO
public void sendMessage(double timeStamp, int status, int data1, int data2)
sendMessage
in class MidiIO
public java.lang.String[] getInputDeviceNames()
getInputDeviceNames
in class MidiIO
public java.lang.String[] getOutputDeviceNames()
getOutputDeviceNames
in class MidiIO
public void startListening()
startListening
in class MidiIO
public void stopListening()
stopListening
in class MidiIO
public void sysex(double timeStamp, byte[] data)
sysex
in class MidiIO
public static void main(java.lang.String[] args)
public void synchClocks()
synchClocks
in class MidiIO
MidiIO.synchClocks()
public java.io.File getSoundbankFile()
public void setSoundbankFile(java.io.File soundbankFile)
soundbankFile
- The soundbankFile to set.public java.net.URL getSoundbankURL()
public void setSoundbankURL(java.net.URL soundbankURL)
soundbankURL
- The soundbankURL to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |