public class MidiDevicePlaySubSystem extends java.lang.Object implements PlaySubSystem, NeedMidiListeningConverter
| Constructor and Description |
|---|
MidiDevicePlaySubSystem() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.sound.midi.Sequence |
convertToMidiSequence(VirtualBook transposedCarton) |
javax.sound.midi.MidiDevice.Info |
getCurrentMidiDevice() |
MIDIListeningConverter |
getCurrentMidiListeningConverter() |
int |
getMidiCanal()
Get the midi canal
|
java.lang.Object |
getOwner()
Get the currently play owner
|
boolean |
isPlaying()
is the subsystem playing ?
|
boolean |
isSupportMidiListeningConverter() |
PlayControl |
play(java.lang.Object owner,
VirtualBook transposedCarton,
IPlaySubSystemFeedBack feedBackinterface,
long startAt)
Launch the play of the virtual book
|
void |
setCurrentMidiDevice(javax.sound.midi.MidiDevice.Info mididevice) |
void |
setCurrentMidiListeningConverter(MIDIListeningConverter converter) |
void |
setMidiCanal(int midiCanal)
set the midi canal used for the play
|
void |
stop()
Stop the play
|
public boolean isPlaying()
throws java.lang.Exception
PlaySubSystemisPlaying in interface PlaySubSystemjava.lang.Exceptionpublic void setCurrentMidiDevice(javax.sound.midi.MidiDevice.Info mididevice)
public javax.sound.midi.MidiDevice.Info getCurrentMidiDevice()
public void setMidiCanal(int midiCanal)
midiCanal - public int getMidiCanal()
public PlayControl play(java.lang.Object owner, VirtualBook transposedCarton, IPlaySubSystemFeedBack feedBackinterface, long startAt) throws java.lang.Exception
PlaySubSystemplay in interface PlaySubSystemowner - the play ownertransposedCarton - the virtual bookfeedBackinterface - a feed back interface for user feed backsstartAt - the position for the play start (in microseconds)java.lang.Exceptionprotected javax.sound.midi.Sequence convertToMidiSequence(VirtualBook transposedCarton) throws java.lang.Exception
java.lang.Exceptionpublic void stop()
throws java.lang.Exception
PlaySubSystemstop in interface PlaySubSystemjava.lang.Exceptionpublic java.lang.Object getOwner()
PlaySubSystemgetOwner in interface PlaySubSystempublic void setCurrentMidiListeningConverter(MIDIListeningConverter converter)
setCurrentMidiListeningConverter in interface NeedMidiListeningConverterpublic MIDIListeningConverter getCurrentMidiListeningConverter()
public boolean isSupportMidiListeningConverter()
isSupportMidiListeningConverter in interface NeedMidiListeningConverter