public class ComputeDurationForEachTrackTool extends ParserListenerAdapter
Constructor and Description |
---|
ComputeDurationForEachTrackTool() |
Modifier and Type | Method and Description |
---|---|
double[] |
getDurations() |
void |
onNoteParsed(Note note)
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, onChordParsed, onControllerEventParsed, onFunctionParsed, onInstrumentParsed, 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 onNoteParsed(Note note)
ParserListener
onNoteParsed
in interface ParserListener
onNoteParsed
in class ParserListenerAdapter
note
- The note that was parsed. Please see the Note class for more details about notes!Note
public double[] getDurations()