Class VoidInstrument

All Implemented Interfaces:
Serializable

public class VoidInstrument extends GM1Instrument implements Serializable
A special "void" instrument: no bank change or program change is associated to this instrument.

When used, the system should not send any Midi bank select or program change messages for this instrument.

See Also:
  • Method Details

    • setBank

      public void setBank(InstrumentBank<?> bank)
      Description copied from class: GM1Instrument
      Overridden to make sure specified bank is the GM1Bank.
      Overrides:
      setBank in class GM1Instrument
      Parameters:
      bank - A non null value, the InstrumentBank this Instrument belongs to, e.g. GM1Bank.
    • getBank

      public InstrumentBank<?> getBank()
      Overrides:
      getBank in class Instrument
      Returns:
      Can be null.
    • getFullName

      public String getFullName()
      Description copied from class: Instrument
      A user-friendly string describing the instrument with its synth (or bank if its a standard bank).

      Examples: "GM: Acoustic Piano", "MOXF: JP Strings"

      Overrides:
      getFullName in class Instrument
      Returns:
    • getMidiMessages

      public MidiMessage[] getMidiMessages(int channel)
      Overridden : return an empty array.
      Overrides:
      getMidiMessages in class Instrument
      Returns: