Package eu.bandm.sig.adlib2.lib
Class SigSequencer
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.lib.SigSequencer
- All Implemented Interfaces:
Component,AbstractSequencer,Process
- Direct Known Subclasses:
DoubleSequencer,FloatSequencer
Defines the data access methods needed to drive a sig network by a
sequencer.
All sub-classes are qualified like "DoubleSequencer", and this wording gives
the type of the time points.
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.lib.AbstractSequencer
AbstractSequencer.MidiWrapperNested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Consumer<AbstractSequencer>> Listeners which will be triggered when the normal operation reads the very last row.static final int"Row" index when the current play time lies before the very first loaded data row.Fields inherited from interface eu.bandm.sig.adlib2.lib.AbstractSequencer
MIDIFILE_METATYPE_END_OF_TRACK, PRE_START_MSECS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndListener(Consumer<AbstractSequencer> listener) abstract BooleanSignalSourcegetBooleanColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "boolean" data.abstract ByteSignalSourcegetByteColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "byte" data.abstract DoubleSignalSourcegetDoubleColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "double" data.abstract FloatSignalSourcegetFloatColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "float" data.abstract IntSignalSourcegetIntColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "int" data.abstract LongSignalSourcegetLongColumn(int i) Returns the i-th column of the sequencer, assuming it is the source of "long" data.abstract intReturns the "row" index of the score data wich is currently played.voidremoveEndListener(Consumer<AbstractSequencer> listener) Methods inherited from class eu.bandm.sig.adlib2.AbstractProcess
getRealtimeContext, hasFixedConstantRealtimeContext, setRealtimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib2.lib.AbstractSequencer
getMaxPosition_msec, getMinPosition_msec, getPosition_msec, isLoaded, setPosition_msec, setRunning, start, stopMethods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, conditional, every, every, getProcess, init, step
-
Field Details
-
endListeners
Listeners which will be triggered when the normal operation reads the very last row. -
preDataReadIndex
public static final int preDataReadIndex"Row" index when the current play time lies before the very first loaded data row.- See Also:
-
-
Constructor Details
-
SigSequencer
public SigSequencer()
-
-
Method Details
-
addEndListener
- Specified by:
addEndListenerin interfaceAbstractSequencer
-
removeEndListener
- Specified by:
removeEndListenerin interfaceAbstractSequencer
-
getReadIndex
public abstract int getReadIndex()Returns the "row" index of the score data wich is currently played. -
getByteColumn
Returns the i-th column of the sequencer, assuming it is the source of "byte" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of byte type. -
getIntColumn
Returns the i-th column of the sequencer, assuming it is the source of "int" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of int type. -
getLongColumn
Returns the i-th column of the sequencer, assuming it is the source of "long" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of long type. -
getFloatColumn
Returns the i-th column of the sequencer, assuming it is the source of "float" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of float type. -
getDoubleColumn
Returns the i-th column of the sequencer, assuming it is the source of "double" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of double type. -
getBooleanColumn
Returns the i-th column of the sequencer, assuming it is the source of "boolean" data. The number is one less than the score column, because score column 0 is always the timepoint data. Throws a class cast exception if the column data is not of boolean type.
-