Class InstrumentChooserDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public abstract class InstrumentChooserDialog extends JDialog
A dialog to select an instrument for a MidiMix channel.
See Also:
  • Method Details

    • getDefault

      public static InstrumentChooserDialog getDefault()
    • preset

      public abstract void preset(OutputSynth outSynth, RhythmVoice rv, Instrument preselectedIns, int transpose, int channel)
      Initialize the dialog.
      Parameters:
      outSynth - The OutputSynth which contains the available instruments to choose from.
      rv - The RhythmVoice for which we're choosing an instrument.
      preselectedIns -
      transpose - The initial transposition in semi-tons.
      channel - The Midi channel for this RhythmVoice.
    • getSelectedInstrument

      public abstract Instrument getSelectedInstrument()
      Returns:
      The selected instrument, or null if no selection or dialog cancelled.
    • getTransposition

      public abstract int getTransposition()