public class MetroSequenceDirectRecorder extends java.lang.Object implements MetroSequence, MetroLock
Modifier and Type | Class and Description |
---|---|
static class |
MetroSequenceDirectRecorder.Mode |
Constructor and Description |
---|
MetroSequenceDirectRecorder(int recordLength,
boolean looper,
MetroPort inputPort,
MetroPort outputPort) |
Modifier and Type | Method and Description |
---|---|
java.util.List<MetroMidiFrame> |
getFrames() |
MetroPort |
getInputPort() |
java.lang.Object |
getMetroLock() |
MetroSequenceDirectRecorder.Mode |
getMode() |
MetroPort |
getOutputPort() |
int |
getRecordLength() |
boolean |
isLooper() |
<T> void |
processBuffered(Metro metro,
MetroTrack track,
MetroBufferedMidiReceiver<T> buffer) |
void |
processDirect(Metro metro,
int nframes,
int totalCursor,
java.util.List<MetroMidiEvent> in,
java.util.List<MetroMidiEvent> out) |
void |
setLooper(boolean repeatPlay) |
void |
setMode(MetroSequenceDirectRecorder.Mode mode) |
void |
setRecordLength(int recordLength) |
public MetroPort getInputPort()
public MetroPort getOutputPort()
public MetroSequenceDirectRecorder.Mode getMode()
public void setMode(MetroSequenceDirectRecorder.Mode mode)
public java.lang.Object getMetroLock()
getMetroLock
in interface MetroLock
public void setLooper(boolean repeatPlay)
public boolean isLooper()
public int getRecordLength()
public void setRecordLength(int recordLength)
public java.util.List<MetroMidiFrame> getFrames()
public void processDirect(Metro metro, int nframes, int totalCursor, java.util.List<MetroMidiEvent> in, java.util.List<MetroMidiEvent> out)
processDirect
in interface MetroSequence
public <T> void processBuffered(Metro metro, MetroTrack track, MetroBufferedMidiReceiver<T> buffer)
processBuffered
in interface MetroSequence