public class GervillPlaySubSystemWithRegisterInstruments extends java.lang.Object implements PlaySubSystem, NeedInstrument, IPreparedCapableSubSystem
Constructor and Description |
---|
GervillPlaySubSystemWithRegisterInstruments() |
Modifier and Type | Method and Description |
---|---|
ISubSystemPlayParameters |
createParameterInstance()
create a parameter instance for preparing the play
|
Instrument |
getCurrentInstrument() |
java.lang.Object |
getOwner()
Get the currently play owner
|
boolean |
isPlaying()
is the subsystem playing ?
|
PlayControl |
play(java.lang.Object owner,
VirtualBook transposedCarton,
IPlaySubSystemFeedBack feedBack,
long startAt)
Launch the play of the virtual book
|
PlayControl |
playPrepared(java.lang.Object owner,
IPreparedPlaying pp,
IPlaySubSystemFeedBack feedBackinterface,
long startAt)
Play a prepared play
|
IPreparedPlaying |
preparePlaying(VirtualBook transposedVirtualBook,
ISubSystemPlayParameters params)
Synchronous prepare playing method
|
void |
setCurrentInstrument(Instrument ins) |
static java.util.Map<java.lang.String,java.lang.Object> |
setupInfoProperties() |
void |
stop()
Stop the play
|
public GervillPlaySubSystemWithRegisterInstruments()
public void setCurrentInstrument(Instrument ins)
setCurrentInstrument
in interface NeedInstrument
public Instrument getCurrentInstrument()
public boolean isPlaying() throws java.lang.Exception
PlaySubSystem
isPlaying
in interface PlaySubSystem
java.lang.Exception
public ISubSystemPlayParameters createParameterInstance() throws java.lang.Exception
IPreparedCapableSubSystem
createParameterInstance
in interface IPreparedCapableSubSystem
java.lang.Exception
public IPreparedPlaying preparePlaying(VirtualBook transposedVirtualBook, ISubSystemPlayParameters params) throws java.lang.Exception
IPreparedCapableSubSystem
preparePlaying
in interface IPreparedCapableSubSystem
java.lang.Exception
public PlayControl playPrepared(java.lang.Object owner, IPreparedPlaying pp, IPlaySubSystemFeedBack feedBackinterface, long startAt) throws java.lang.Exception
IPreparedCapableSubSystem
playPrepared
in interface IPreparedCapableSubSystem
java.lang.Exception
public PlayControl play(java.lang.Object owner, VirtualBook transposedCarton, IPlaySubSystemFeedBack feedBack, long startAt) throws java.lang.Exception
PlaySubSystem
play
in interface PlaySubSystem
owner
- the play ownertransposedCarton
- the virtual bookfeedBack
- a feed back interface for user feed backsstartAt
- the position for the play start (in microseconds)java.lang.Exception
public static java.util.Map<java.lang.String,java.lang.Object> setupInfoProperties()
public void stop() throws java.lang.Exception
PlaySubSystem
stop
in interface PlaySubSystem
stop
in interface IPreparedCapableSubSystem
java.lang.Exception
public java.lang.Object getOwner()
PlaySubSystem
getOwner
in interface PlaySubSystem