|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfugue.Parser
org.jfugue.MidiParser
public class MidiParser
Field Summary |
---|
Fields inherited from class org.jfugue.Parser |
---|
listenerList, progressListenerList, TRACING_OFF, TRACING_ON |
Constructor Summary | |
---|---|
MidiParser()
|
Method Summary | |
---|---|
void |
parse(javax.sound.midi.MidiMessage message,
long timestamp)
Delegator method that calls specific parsers depending on the type of MidiMessage passed in. |
void |
parse(javax.sound.midi.Sequence sequence)
Parses a Sequence and fires events to subscribed ParserListener
interfaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MidiParser()
Method Detail |
---|
public void parse(javax.sound.midi.Sequence sequence)
Sequence
and fires events to subscribed ParserListener
interfaces. As the Sequence is parsed, events are sent
to ParserListener
interfaces, which are responsible for doing
something interesting with the music data, such as adding notes to a pattern.
sequence
- the Sequence
to parse
java.lang.Exception
- if there is an error parsing the patternpublic void parse(javax.sound.midi.MidiMessage message, long timestamp)
message
- the message to parsetimestamp
- the time at which the message was encountered in this track
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |