|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.Component sky.monome.Container sky.monome.AbstractGroup<LedButtonCouple> sky.monome.SequencerGroup
public class SequencerGroup
Sequencer group. This class is a very basic implementation of the Sequencer
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface sky.monome.sequencer.Sequencer |
---|
Sequencer.SequencerOrientation |
Field Summary | |
---|---|
protected int |
activeStepNumber
Number of the currently active step in the sequence. |
protected int |
activeStepNumberPseudoCopyForSequencerEffect
Copy of the number of the currently active step in the sequence. |
protected SynchronizedList<SequencerRadio.SequencerRadioGroup> |
buttonManagers
List of button managers that manage each step of this sequencer. |
protected SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> |
sequenceIterator
Sequence iterator. |
protected long |
sequencerEffectTime
Time duration of the sequencer effect, in milliseconds (short lightning that symbolizes the activation of a new step in the sequence). |
protected SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> |
sequencerEngine
Sequencer engine. |
protected Sequencer.SequencerOrientation |
sequencerOrientation
Orientation of this sequencer page switcher. |
protected int |
stepsNumber
Number of steps in the sequence. |
protected int |
stepsNumberPseudoCopyWhenChangingRealValue
Copy of the number of steps in the sequence. |
Fields inherited from class sky.monome.AbstractGroup |
---|
components |
Fields inherited from class sky.monome.Container |
---|
height, width |
Fields inherited from class sky.monome.Component |
---|
container, eventListenerList, lockObject, name, x, y |
Fields inherited from interface sky.monome.sequencer.Sequencer |
---|
SEQUENCER_EFFECT_TIME |
Constructor Summary | |
---|---|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
Container container,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Deprecated. Since SkyMonome v1.2, all components register themselves inside their container, so you don't need to specify the container by calling this constructor. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number and the specified mode for radio groups. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number, the specified mode for radio groups and the specified sequence iterator. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number, the specified mode for radio groups, the specified sequence iterator and the specified sequencer engine. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number, the specified mode for radio groups and the specified sequence iterator factory. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number, the specified mode for radio groups, the specified sequence iterator factory and the specified sequencer engine. |
|
SequencerGroup(java.lang.String name,
int x,
int y,
int width,
int height,
Sequencer.SequencerOrientation sequencerOrientation,
float tempo,
int divisions,
int stepsNumber,
boolean optional,
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Constructs a sequencer group with the specified name, specified coordinates and dimensions, the specified orientation, specified tempo and number of divisions by quarter note, the specified steps number, the specified mode for radio groups and the specified sequencer engine. |
Method Summary | ||
---|---|---|
protected void |
addLedButtonCouple(LedButtonCouple ledButtonCouple)
Adds the specified led/button couple to the list of led/button couples. |
|
void |
addSequencerListener(SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerListener)
Adds the specified sequencer listener to the list of sequencer listeners. |
|
void |
fireStepChanged(SequencerGroup sequencerComponent,
int activeStepNumber)
Invoked when a step change occurs. |
|
int |
getActiveStepNumberInSequence()
Returns the number of the active step in the sequence. |
|
|
getButtonManager(java.lang.Class<T> clazz,
int number)
Deprecated. Since this class implements an interface that is parametrized, it is recommended to use getButtonManager(int) instead. |
|
SequencerRadio.SequencerRadioGroup |
getButtonManager(int number)
Returns the button manager of this sequencer component at the specified step number. |
|
SequencerRadio.SequencerRadioGroup[] |
getButtonManagers()
Returns an array of all button managers of this sequencer component. |
|
|
getButtonManagers(java.lang.Class<T> clazz)
Deprecated. Since this class implements an interface that is parametrized, it is recommended to use getButtonManagers() instead. |
|
LedButtonCouple[] |
getLedButtonCouples()
Returns an array of all led/button couples. |
|
LedButtonCouple.LedState |
getLedStateToShow(LedButtonCouple ledButtonCouple)
Returns the led state to show instead of the natural led state of the specified led/button couple. |
|
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<SequencerGroup,SequencerRadio.SequencerRadioGroup> |
getSequenceIterator()
Returns the sequence iterator used by this sequencer. |
|
long |
getSequencerEffectTime()
Returns the sequencer effect time, in milliseconds. |
|
SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> |
getSequencerEngine()
Returns the sequencer engine that is used by this sequencer. |
|
SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup>[] |
getSequencerListeners()
Returns an array of all sequencer listeners. |
|
int |
getStepsNumberInSequence()
Returns the number of steps in the sequence. |
|
void |
removeSequencerListener(SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerListener)
Removes the specified sequencer listener from the list of sequencer listeners. |
|
void |
sequencingAction(SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine)
Invoked when this sequencer must iterate over the sequence. |
|
void |
setSequenceIterator(SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> 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. |
|
java.lang.String |
toString()
Returns a string representation of this sequencer group. |
Methods inherited from class sky.monome.AbstractGroup |
---|
canHaveParentContainer, getAbsoluteX, getAbsoluteY, getBounds, getMonome, isVisible, notify, writeOn |
Methods inherited from class sky.monome.Container |
---|
getHeight, getWidth |
Methods inherited from class sky.monome.Component |
---|
getContainer, getLockObject, getName, getX, getY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SynchronizedList<SequencerRadio.SequencerRadioGroup> buttonManagers
protected int activeStepNumber
protected int activeStepNumberPseudoCopyForSequencerEffect
protected final Sequencer.SequencerOrientation sequencerOrientation
protected int stepsNumber
protected int stepsNumberPseudoCopyWhenChangingRealValue
protected SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator
protected final SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine
protected long sequencerEffectTime
Constructor Detail |
---|
@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIterator
- Sequence iterator to use to iterate over the sequence.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIterator
- Sequence iterator to use to iterate over the sequence.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIterator
- Sequence iterator to use to iterate over the sequence.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIterator
- Sequence iterator to use to iterate over the sequence.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIteratorFactory
- Factory for sequence iterator to use to iterate over the sequence.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIteratorFactory
- Factory for sequence iterator to use to iterate over the sequence.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.@Deprecated public SequencerGroup(java.lang.String name, Container container, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.container
- Container that will contain this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIteratorFactory
- Factory for sequence iterator to use to iterate over the sequence.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.public SequencerGroup(java.lang.String name, int x, int y, int width, int height, Sequencer.SequencerOrientation sequencerOrientation, float tempo, int divisions, int stepsNumber, boolean optional, SequenceIteratorFactory<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIteratorFactory, SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
name
- Name of this sequencer group.x
- X-coordinate of this sequencer group in the local context of its container.y
- Y-coordinate of this sequencer group in the local context of its container.width
- Width of this sequencer group.height
- Height of this sequencer group.sequencerOrientation
- Sequencer orientation to use with this sequencer group.tempo
- Tempo, in number of quarter notes by minute.divisions
- Number of divisions by quarter note.stepsNumber
- Number of steps to use in this sequencer group.optional
- Boolean that indicates if a Radio.RadioGroup
or a
OptionalRadio.OptionalRadioGroup
is used to control the steps buttons.sequenceIteratorFactory
- Factory for sequence iterator to use to iterate over the sequence.sequencerEngine
- Sequencer engine that will drive this sequencer group.
MonomeException
- When the specified steps number is invalid, or when a led state can't be initialized.Method Detail |
---|
public void sequencingAction(SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerEngine) throws MonomeException
sequencingAction
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
sequencerEngine
- Sequencer engine that called this method.
MonomeException
- When a problem occurs in the iteration over the sequence.public long getSequencerEffectTime()
getSequencerEffectTime
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public void setSequencerEffectTime(long sequencerEffectTime)
setSequencerEffectTime
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
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.public SequencerEngine<SequencerGroup,SequencerRadio.SequencerRadioGroup> getSequencerEngine()
getSequencerEngine
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public int getActiveStepNumberInSequence()
getActiveStepNumberInSequence
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public int getStepsNumberInSequence()
getStepsNumberInSequence
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public int getMaximumStepsNumberInSequence()
getMaximumStepsNumberInSequence
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public int getNotesNumberByStep()
getNotesNumberByStep
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public void setStepsNumber(int stepsNumber) throws MonomeException
setStepsNumber
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
stepsNumber
- New number of steps to iterate over the sequence.
MonomeException
- When the new steps number is incorrect for this sequencer.@Deprecated public <T extends ButtonManager<?>> T[] getButtonManagers(java.lang.Class<T> clazz)
getButtonManagers()
instead.
getButtonManagers
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
T
- Desired type for button managers. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for button managers.
java.lang.ClassCastException
- When button managers can't be typed to the specified type.public SequencerRadio.SequencerRadioGroup[] getButtonManagers()
getButtonManagers
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
@Deprecated public <T extends ButtonManager<?>> T getButtonManager(java.lang.Class<T> clazz, int number)
getButtonManager(int)
instead.
getButtonManager
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
T
- Desired type for the button manager. It should be a subclass of ButtonManager
.clazz
- Class object that specify the return type for the button manager.number
- Number of the button manager needed.
java.lang.ClassCastException
- When the button manager can't be typed to the specified type.public SequencerRadio.SequencerRadioGroup getButtonManager(int number)
getButtonManager
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
number
- Number of the button manager needed.
public SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> getSequenceIterator()
getSequenceIterator
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public void setSequenceIterator(SequenceIterator<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequenceIterator)
setSequenceIterator
in interface Sequencer<SequencerGroup,SequencerRadio.SequencerRadioGroup>
sequenceIterator
- New sequence iterator to use in this sequencer.public LedButtonCouple[] getLedButtonCouples()
protected void addLedButtonCouple(LedButtonCouple ledButtonCouple) throws MonomeException
ledButtonCouple
- Led/button couple to add to the list of led/button couples.
MonomeException
- When a led/button couple has bounds already used by another led/button couple.public java.lang.String toString()
toString
in class Component
public LedButtonCouple.LedState getLedStateToShow(LedButtonCouple ledButtonCouple)
getLedStateToShow
in interface LedStateModificationLayer
ledButtonCouple
- led/button couple which is the reference.
public void addSequencerListener(SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerListener)
addSequencerListener
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
sequencerListener
- Sequencer listener to add to the list of sequencer listeners.public void removeSequencerListener(SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup> sequencerListener)
removeSequencerListener
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
sequencerListener
- Sequencer listener to remove from the list of sequencer listeners.public SequencerListener<SequencerGroup,SequencerRadio.SequencerRadioGroup>[] getSequencerListeners()
getSequencerListeners
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
public void fireStepChanged(SequencerGroup sequencerComponent, int activeStepNumber)
fireStepChanged
in interface SequencerComponent<SequencerGroup,SequencerRadio.SequencerRadioGroup>
sequencerComponent
- Sequencer component that triggered the sequencer event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |