org.jfugue
Class Anticipator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parser
protected MidiParser parser
Anticipator
public Anticipator()
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)