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, onTrackBeatTimeRequestedpublic void onTrackChanged(byte track)
ParserListeneronTrackChanged in interface ParserListeneronTrackChanged in class ParserListenerAdaptertrack - the new track event that has been parsedpublic void onNoteParsed(Note note)
ParserListeneronNoteParsed in interface ParserListeneronNoteParsed in class ParserListenerAdapternote - The note that was parsed. Please see the Note class for more details about notes!Notepublic double[] getDurations()