Class GM1Bank


public class GM1Bank extends InstrumentBank<GM1Instrument>
General Midi 1 bank.

Instance should be obtained from the StdSynth.

  • Field Details

  • Method Details

    • guessIsDrums

      public boolean guessIsDrums(String patchName)
      Try to guess if patchName represents a drums/percussion instrument.
      Parameters:
      patchName -
      Returns:
    • guessInstrument

      public GM1Instrument guessInstrument(String patchName)
      Try to guess from patchName the equivalent GM1 Instrument.
      Parameters:
      patchName -
      Returns:
      Null if nothing found.
    • getDefaultInstrument

      public GM1Instrument getDefaultInstrument(Family f)
      Return a hard-coded default GM1Instrument for the specified GM family.

      Parameters:
      f -
      Returns:
      A GM1Instrument.
    • setBankSelectMethod

      public void setBankSelectMethod(MidiAddress.BankSelectMethod m)
    • setBankSelectLsb

      public void setBankSelectLsb(int lsb)
    • setBankSelectMsb

      public void setBankSelectMsb(int msb)
    • isGM1Compatible

      public static boolean isGM1Compatible(InstrumentBank<? extends Instrument> bank)
      Check if the specified bank holds GM1 instruments: check size and a few instruments patch names.
      Parameters:
      bank -
      Returns: