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
PlaySubSystem
isPlaying
in interface PlaySubSystem
java.lang.Exception
public 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
PlaySubSystem
play
in interface PlaySubSystem
owner
- the play ownertransposedCarton
- the virtual bookfeedBackinterface
- a feed back interface for user feed backsstartAt
- the position for the play start (in microseconds)java.lang.Exception
protected javax.sound.midi.Sequence convertToMidiSequence(VirtualBook transposedCarton) throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
PlaySubSystem
stop
in interface PlaySubSystem
java.lang.Exception
public java.lang.Object getOwner()
PlaySubSystem
getOwner
in interface PlaySubSystem
public void setCurrentMidiListeningConverter(MIDIListeningConverter converter)
setCurrentMidiListeningConverter
in interface NeedMidiListeningConverter
public MIDIListeningConverter getCurrentMidiListeningConverter()
public boolean isSupportMidiListeningConverter()
isSupportMidiListeningConverter
in interface NeedMidiListeningConverter