Package wellen

Class ToneEngineMIDI

java.lang.Object
wellen.ToneEngine
wellen.ToneEngineMIDI

public class ToneEngineMIDI extends ToneEngine
implementation of ToneEngine sending MIDI messages to external MIDI devices.
  • Field Details

    • SEND_NOTE_OFF_TO_ALL

      public static boolean SEND_NOTE_OFF_TO_ALL
    • mMidiOut

      public final MidiOut mMidiOut
  • Constructor Details

    • ToneEngineMIDI

      public ToneEngineMIDI(String pMidiOutputDeviceName)
    • ToneEngineMIDI

      public ToneEngineMIDI(int pMidiOutputDeviceID)
  • Method Details

    • get_proper_device_name

      public static String get_proper_device_name(String pMidiOutputDeviceName)
    • stop

      public void stop()
      Overrides:
      stop in class ToneEngine
    • note_on

      public void note_on(int note, int velocity)
      Description copied from class: ToneEngine
      play a note
      Specified by:
      note_on in class ToneEngine
      Parameters:
      note - pitch of note ranging from 0 to 127
      velocity - volume of note ranging from 0 to 127
    • note_off

      public void note_off(int note)
      Description copied from class: ToneEngine
      turn off a note
      Specified by:
      note_off in class ToneEngine
      Parameters:
      note - pitch of note to turn off
    • note_off

      public void note_off()
      Description copied from class: ToneEngine
      turns off the last played note.
      Specified by:
      note_off in class ToneEngine
    • control_change

      public void control_change(int pCC, int pValue)
      Specified by:
      control_change in class ToneEngine
    • pitch_bend

      public void pitch_bend(int pValue)
      Specified by:
      pitch_bend in class ToneEngine
    • is_playing

      public boolean is_playing()
      Specified by:
      is_playing in class ToneEngine
    • instrument

      public Instrument instrument(int pInstrumentID)
      Specified by:
      instrument in class ToneEngine
    • instrument

      public Instrument instrument()
      Specified by:
      instrument in class ToneEngine
    • instruments

      public ArrayList<? extends Instrument> instruments()
      Specified by:
      instruments in class ToneEngine
    • is_initialized

      public boolean is_initialized()
    • replace_instrument

      public void replace_instrument(Instrument pInstrument)
      Specified by:
      replace_instrument in class ToneEngine