org.jfugue
Class Anticipator

java.lang.Object
  extended by org.jfugue.Anticipator

public class Anticipator
extends java.lang.Object

This class can be used in conjunction with a call to Player.play() to inform your application about musical events before they happen. This is useful if you're creating an application that requires advance notice of a musical event - for example, an animation program that must wind up or swing an arm back before striking a note. This feature is covered in detail in "The Complete Guide to JFugue"

Version:
3.0
Author:
David Koelle

Field Summary
protected  MidiParser parser
           
 
Constructor Summary
Anticipator()
           
 
Method Summary
 void addParserListener(ParserListener l)
          Adds a ParserListener.
protected  void play(javax.sound.midi.Sequence sequence)
           
 void removeParserListener(ParserListener l)
          Removes a ParserListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parser

protected MidiParser parser
Constructor Detail

Anticipator

public Anticipator()
Method Detail

addParserListener

public void addParserListener(ParserListener l)
Adds a ParserListener.

Parameters:
listener - the listener to remove

removeParserListener

public void removeParserListener(ParserListener l)
Removes a ParserListener.

Parameters:
listener - the listener to remove

play

protected void play(javax.sound.midi.Sequence sequence)