|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.frinika.project.RecordingManager
public class RecordingManager
This is added as a message listener to the FrinikaSequencer
| Nested Class Summary | |
|---|---|
protected class |
RecordingManager.Event
|
protected class |
RecordingManager.Stack
|
| Field Summary | |
|---|---|
protected java.util.Vector<MultiEvent> |
currentRecordingTake
|
protected java.util.HashMap<java.lang.Integer,NoteEvent> |
pendingNoteEvents
|
protected ProjectContainer |
project
|
protected FrinikaSequencer |
sequencer
|
protected RecordingManager.Stack |
stack
|
| Constructor Summary | |
|---|---|
RecordingManager(ProjectContainer proj,
int buffSize)
|
|
| Method Summary | |
|---|---|
protected void |
addEventToRecordingTracks(ChannelEvent event)
|
void |
beforeStart()
This event is sent on before sequencer start |
void |
midiMessage(javax.sound.midi.MidiMessage message)
|
void |
notifyTickPosition(long tick)
This method is called each time a new tick is played by the sequencer. |
boolean |
requiresNotificationOnEachTick()
Your implementation should return true if your listener requires to be notified for each and every tick. |
protected void |
reset()
|
void |
start()
This event is sent on after sequencer start |
void |
stop()
This event is sent on sequencer stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector<MultiEvent> currentRecordingTake
protected java.util.HashMap<java.lang.Integer,NoteEvent> pendingNoteEvents
protected FrinikaSequencer sequencer
protected RecordingManager.Stack stack
protected ProjectContainer project
| Constructor Detail |
|---|
public RecordingManager(ProjectContainer proj,
int buffSize)
| Method Detail |
|---|
public boolean requiresNotificationOnEachTick()
SongPositionListener
requiresNotificationOnEachTick in interface SongPositionListenerpublic void midiMessage(javax.sound.midi.MidiMessage message)
midiMessage in interface MidiMessageListenerpublic void notifyTickPosition(long tick)
SongPositionListener
notifyTickPosition in interface SongPositionListenerprotected void addEventToRecordingTracks(ChannelEvent event)
protected void reset()
public void beforeStart()
SequencerListener
beforeStart in interface SequencerListenerpublic void start()
SequencerListener
start in interface SequencerListenerpublic void stop()
SequencerListener
stop in interface SequencerListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||