org.jfugue.extras
Class GetInstrumentsUsedTool

java.lang.Object
  extended by org.jfugue.ParserListenerAdapter
      extended by 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

Constructor Summary
GetInstrumentsUsedTool()
           
 
Method Summary
 java.util.List<java.lang.Byte> getInstrumentsUsedInPattern(Pattern pattern)
           
 void instrumentEvent(Instrument instrument)
          Called when the parser encounters an instrument event.
 
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
 

Constructor Detail

GetInstrumentsUsedTool

public GetInstrumentsUsedTool()
Method Detail

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)