com.frinika.sequencer
Class FrinikaSequencerPlayer

java.lang.Object
  extended by com.frinika.sequencer.FrinikaSequencerPlayer
All Implemented Interfaces:
java.lang.Runnable

public class FrinikaSequencerPlayer
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
FrinikaSequencerPlayer(FrinikaSequencer sequencer)
           
 
Method Summary
 int getLoopCount()
          Return number of loops played
 long getMicroSecondPosition()
           
 long getRealTimeTickPosition()
          Used for recording to time stamp incoming midi events
 long getTickPosition()
           
 long getTicksLooped()
           
 boolean isRunning()
           
 void run()
           
 void setLatencyCompensationInMillis(double latencyCompMillis)
          The delay due to audio latency which must be subtracted when recording midi events
 void setTempoList(TempoList tempoList)
          Set the tempoList to get the tempo when the time is warped.
 void setTickPosition(long tickPosition)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrinikaSequencerPlayer

public FrinikaSequencerPlayer(FrinikaSequencer sequencer)
Method Detail

setTempoList

public void setTempoList(TempoList tempoList)
Set the tempoList to get the tempo when the time is warped.

Parameters:
tempoList -

start

public void start()

getMicroSecondPosition

public long getMicroSecondPosition()

stop

public void stop()

run

public void run()
Specified by:
run in interface java.lang.Runnable

isRunning

public boolean isRunning()

getTicksLooped

public long getTicksLooped()
Returns:
ticks lost because of looping

getTickPosition

public long getTickPosition()

getLoopCount

public int getLoopCount()
Return number of loops played

Returns:

setLatencyCompensationInMillis

public void setLatencyCompensationInMillis(double latencyCompMillis)
The delay due to audio latency which must be subtracted when recording midi events

Parameters:
latencyCompMillis -

getRealTimeTickPosition

public long getRealTimeTickPosition()
Used for recording to time stamp incoming midi events

Returns:

setTickPosition

public void setTickPosition(long tickPosition)