org.jfugue.extras
Class GetInstrumentsUsedTool
java.lang.Object
org.jfugue.ParserListenerAdapter
org.jfugue.extras.GetInstrumentsUsedTool
- All Implemented Interfaces:
- java.util.EventListener, ParserListener
public class GetInstrumentsUsedTool
- extends ParserListenerAdapter
Returns a List containing all of the instruments used in the given pattern.
- Version:
- 4.0
- Author:
- David Koelle
| Methods inherited from class org.jfugue.ParserListenerAdapter |
channelPressureEvent, controllerEvent, keySignatureEvent, layerEvent, measureEvent, noteEvent, parallelNoteEvent, pitchBendEvent, polyphonicPressureEvent, sequentialNoteEvent, tempoEvent, timeEvent, voiceEvent |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetInstrumentsUsedTool
public GetInstrumentsUsedTool()
instrumentEvent
public void instrumentEvent(Instrument instrument)
- Description copied from class:
ParserListenerAdapter
- Called when the parser encounters an instrument event.
- Specified by:
instrumentEvent in interface ParserListener- Overrides:
instrumentEvent in class ParserListenerAdapter
- Parameters:
instrument - the event that has been parsed- See Also:
Instrument
getInstrumentsUsedInPattern
public java.util.List<java.lang.Byte> getInstrumentsUsedInPattern(Pattern pattern)