Class GMSynth

java.lang.Object
org.jjazz.midi.api.MidiSynth
org.jjazz.midi.api.synths.GMSynth

public class GMSynth extends MidiSynth
A synth which only contains the GM bank.

  • Field Details

    • NAME

      public static String NAME
    • MANUFACTURER

      public static String MANUFACTURER
  • Method Details

    • getInstance

      public static GMSynth getInstance()
    • getGM1Bank

      public final GM1Bank getGM1Bank()
    • getVoidInstrument

      public final VoidInstrument getVoidInstrument()
      A special "empty" GM1Instrument: when used, no Midi messages are sent (no bank select/program change).

      This special instrument is part of the special InstrumentBank NotSetBank.

      Returns:
    • getGM1Instrument

      public static GM1Instrument getGM1Instrument(int progChange)
      Convenience method to directly get the GM1Instrument with specified Program Change.
      Parameters:
      progChange -
      Returns:
    • getGM1Instrument

      public static GM1Instrument getGM1Instrument(Instrument ins)
      Convenience method to get the GM1Instrument from this synth corresponding to an instrument from a synth's GM bank.
      Parameters:
      ins - Should be an ins from the GM-bank of its synth
      Returns:
      Null if ins is not an instrument of its synth's GM bank