public class LilyPondParserListener extends ParserListenerAdapter
Constructor and Description |
---|
LilyPondParserListener() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLyString() |
void |
onChordParsed(Chord chord) |
void |
onInstrumentParsed(byte instrument)
Called when the parser encounters a new instrument selection.
|
void |
onNoteParsed(Note note2)
We may have actually parsed a musical note!
In previous versions of JFugue, ParserListener had separate listeners for parallel notes and sequential notes
(now termed harmonic and melodic notes, respectively)
In this version of JFugue, whether a note is the first note, a harmonic note, or a melodic note is kept
as a property on the Note object itself.
|
void |
onTrackChanged(byte track)
Called when the parser encounters a new track (also known as a channel; previously in JFugue,
known as a Voice).
|
afterParsingFinished, beforeParsingStarts, onBarLineParsed, onChannelPressureParsed, onControllerEventParsed, onFunctionParsed, onKeySignatureParsed, onLayerChanged, onLyricParsed, onMarkerParsed, onNotePressed, onNoteReleased, onPitchWheelParsed, onPolyphonicPressureParsed, onSystemExclusiveParsed, onTempoChanged, onTimeSignatureParsed, onTrackBeatTimeBookmarked, onTrackBeatTimeBookmarkRequested, onTrackBeatTimeRequested
public void onTrackChanged(byte track)
ParserListener
onTrackChanged
in interface ParserListener
onTrackChanged
in class ParserListenerAdapter
track
- the new track event that has been parsedpublic void onInstrumentParsed(byte instrument)
ParserListener
onInstrumentParsed
in interface ParserListener
onInstrumentParsed
in class ParserListenerAdapter
instrument
- the MIDI instrument value that has been parsedpublic void onNoteParsed(Note note2)
ParserListener
onNoteParsed
in interface ParserListener
onNoteParsed
in class ParserListenerAdapter
note2
- The note that was parsed. Please see the Note class for more details about notes!Note
public void onChordParsed(Chord chord)
onChordParsed
in interface ParserListener
onChordParsed
in class ParserListenerAdapter
public java.lang.String getLyString()