|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
S
- Type of sequencers that implement this interface.B
- Type of button managers used by the sequencers that implement this interface.public interface Sequencer<S extends Sequencer<S,B>,B extends ButtonManager<B>>
Complete sequencer that can run sequences.
Nested Class Summary | |
---|---|
static class |
Sequencer.SequencerOrientation
Orientation of the sequencer. |
Field Summary | |
---|---|
static long |
SEQUENCER_EFFECT_TIME
Time duration of the sequencer effect (short lightning that symbolizes the activation of a new step in the sequence), in milliseconds. |
Method Summary | |
---|---|
int |
getActiveStepNumberInSequence()
Returns the number of the active step in the sequence. |
int |
getMaximumStepsNumberInSequence()
Returns the maximum possible number of steps in the sequence. |
int |
getNotesNumberByStep()
Returns the number of available notes by step in the sequence. |
SequenceIterator<S,B> |
getSequenceIterator()
Returns the sequence iterator used by this sequencer. |
long |
getSequencerEffectTime()
Returns the sequencer effect time, in milliseconds. |
SequencerEngine<S,B> |
getSequencerEngine()
Returns the sequencer engine that is used by this sequencer. |
int |
getStepsNumberInSequence()
Returns the number of steps in the sequence. |
void |
sequencingAction(SequencerEngine<S,B> sequencerEngine)
Invoked when this sequencer must iterate over the sequence. |
void |
setSequenceIterator(SequenceIterator<S,B> sequenceIterator)
Sets the sequence iterator used by this sequencer. |
void |
setSequencerEffectTime(long sequencerEffectTime)
Modifies the sequencer effect time, in milliseconds. |
void |
setStepsNumber(int stepsNumber)
Modifies the number of steps to iterate over the sequence. |
Methods inherited from interface sky.monome.event.sequencer.SequencerComponent |
---|
addSequencerListener, fireStepChanged, getButtonManager, getButtonManager, getButtonManagers, getButtonManagers, getSequencerListeners, removeSequencerListener |
Field Detail |
---|
static final long SEQUENCER_EFFECT_TIME
setSequencerEffectTime(long)
method.
Method Detail |
---|
long getSequencerEffectTime()
void setSequencerEffectTime(long sequencerEffectTime)
sequencerEffectTime
- New sequencer effect time, in milliseconds.
Please note that if this new time exceeds the time between two
consecutive steps, so you may meet erratic behaviors.SequencerEngine<S,B> getSequencerEngine()
int getStepsNumberInSequence()
int getMaximumStepsNumberInSequence()
int getActiveStepNumberInSequence()
int getNotesNumberByStep()
void setStepsNumber(int stepsNumber) throws MonomeException
stepsNumber
- New number of steps to iterate over the sequence.
MonomeException
- When the new steps number is incorrect for this sequencer.void sequencingAction(SequencerEngine<S,B> sequencerEngine) throws MonomeException
sequencerEngine
- Sequencer engine that called this method.
MonomeException
- When a problem occurs in the iteration over the sequence.SequenceIterator<S,B> getSequenceIterator()
void setSequenceIterator(SequenceIterator<S,B> sequenceIterator)
sequenceIterator
- New sequence iterator to use in this sequencer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |