|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object micromod.Sequencer
The Sequencer interprets a Sequence a "tick" at a time. There is usually more than one tick per row.
Field Summary | |
protected int |
currentRow
|
protected int |
patternBreak
|
protected int |
patternLoopChannel
|
protected int |
patternLoopCounter
|
protected boolean |
patternLoopEngaged
|
protected int[] |
patternLoopRow
|
protected int |
positionJump
|
protected int |
rowJump
|
static int |
SEQFX_PATBREAK
|
static int |
SEQFX_PATDELAY
|
static int |
SEQFX_PATLOOP
|
static int |
SEQFX_POSJUMP
|
static int |
SEQFX_SETSPEED
|
protected Sequence |
sequence
|
protected int[] |
sequenceCounter
|
protected int |
sequencePosition
|
protected Synthesizer |
synthesizer
|
protected int |
tempo
|
protected int |
tempoCounter
|
Constructor Summary | |
Sequencer(Module module,
Synthesizer synthesizer)
|
Method Summary | |
int |
getSequenceCounter()
|
int |
getSequencePosition()
|
int |
getSongLengthPatterns()
|
protected boolean |
handlePatternLoop(int channel,
int parameter)
Some modules do some very sick things with pattern loops, so it must be implemented correctly. |
protected void |
initializeRowFX()
Process any sequencer commands on the current row and set flags to indicate what nextRow() should do next. |
protected void |
nextRow()
Move to the next row, or perform a jump if one is requested. |
protected void |
nextSequencePosition()
|
void |
reset()
Reset the Sequencer and Synthesizer to their initial states. |
protected void |
resetPatternLoop()
Reset all loop markers to row 0, as would happen when a new sequence position is entered. |
protected void |
resetSequenceCounter()
Zero the sequence counter. |
void |
setModule(Module module)
Initialise the Sequencer to play a new module. |
void |
setSequencePosition(int pos)
Set the current sequence position to be played. |
void |
update()
Update the Sequencer for a single tick. |
protected void |
updateRow(int row)
Set the current row, and handle any necessary state changes. |
protected void |
updateSequencePosition(int pos)
Set the current sequence position, and handle any necessary state changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SEQFX_POSJUMP
public static final int SEQFX_PATBREAK
public static final int SEQFX_SETSPEED
public static final int SEQFX_PATLOOP
public static final int SEQFX_PATDELAY
protected Sequence sequence
protected Synthesizer synthesizer
protected int[] sequenceCounter
protected int sequencePosition
protected int currentRow
protected int tempo
protected int tempoCounter
protected int patternBreak
protected int positionJump
protected int rowJump
protected int[] patternLoopRow
protected int patternLoopChannel
protected int patternLoopCounter
protected boolean patternLoopEngaged
Constructor Detail |
public Sequencer(Module module, Synthesizer synthesizer)
Method Detail |
public void setModule(Module module)
public void reset()
public void update()
public int getSequenceCounter()
public void setSequencePosition(int pos)
public int getSongLengthPatterns()
public int getSequencePosition()
protected void resetSequenceCounter()
protected void nextRow()
protected void nextSequencePosition()
protected void initializeRowFX()
protected void updateSequencePosition(int pos)
protected void updateRow(int row)
protected boolean handlePatternLoop(int channel, int parameter)
protected void resetPatternLoop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |