com.e1.mxdublin.core
Class Seq24Clock

java.lang.Object
  extended by com.e1.mxdublin.core.Seq24
      extended by com.e1.mxdublin.core.Seq24Clock
All Implemented Interfaces:
Sequencer

public class Seq24Clock
extends Seq24

An extension of Seq24 that can be clocked by a internal Max/MSP clock.


Field Summary
 
Fields inherited from interface com.e1.mxdublin.core.Sequencer
PPQ_RESOLUTION
 
Constructor Summary
Seq24Clock()
           
 
Method Summary
 void clock()
          This is called when the external clock sends a 24ppq tick; E.G.
 void execute()
           
 float getTempo()
          Returns the current tempo of this sequencer.
 void tempo(float tempo)
          Set the tempo for this sequencer.
 
Methods inherited from class com.e1.mxdublin.core.Seq24
flush, getCurrentTime, getCurrentTime, purge, sched
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Seq24Clock

public Seq24Clock()
Method Detail

tempo

public void tempo(float tempo)
Description copied from interface: Sequencer
Set the tempo for this sequencer. Setting a tempo to -1 will tell this sequencer to be depend on a external clock that will send a 'clock' at each 24 PPQ. If the sequencer doesn't clock it self, it can throw an exception

Specified by:
tempo in interface Sequencer
Overrides:
tempo in class Seq24

getTempo

public float getTempo()
Description copied from interface: Sequencer
Returns the current tempo of this sequencer. This method will return -1 if this sequencer is externally clocked.

Specified by:
getTempo in interface Sequencer
Overrides:
getTempo in class Seq24
Returns:
current tempo of this sequencer.

execute

public void execute()

clock

public void clock()
Description copied from interface: Sequencer
This is called when the external clock sends a 24ppq tick; E.G. a midi clock device.

Specified by:
clock in interface Sequencer
Overrides:
clock in class Seq24