com.frinika.sequencer
Interface SongPositionListener

All Known Implementing Classes:
ControllerView, ItemPanel, Metronome, MidiStepRecordActionDialog, NotationEditor, PartView, PianoRoll, PianoRollPanelAdapter, RecordingManager, SimphoneyRecordManager, SwingSongPositionListenerWrapper, TrackerPanel

public interface SongPositionListener

Use this interface to implement any component that depend on the song position. This could be a metronome, a graphical song position indicator etc.

Author:
Peter Johan Salomonsen

Method Summary
 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.
 

Method Detail

notifyTickPosition

void notifyTickPosition(long tick)
This method is called each time a new tick is played by the sequencer. Note that this method should return as soon as possible (immediately).

Parameters:
tick -

requiresNotificationOnEachTick

boolean requiresNotificationOnEachTick()
Your implementation should return true if your listener requires to be notified for each and every tick. Otherwise (which is in most cases) return false. WARNING: If you return true on this method, you MUST return absolutely immediately everytime. Otherwise it may result in a halting song.

Returns: