Class MUS.ControllerChangeEvent

java.lang.Object
net.mtrop.doom.sound.MUS.Event
net.mtrop.doom.sound.MUS.ControllerChangeEvent
Enclosing class:
MUS

public static class MUS.ControllerChangeEvent extends MUS.Event
Controller Change event.
  • Field Details

    • CONTROLLER_INSTRUMENT

      public static final int CONTROLLER_INSTRUMENT
      See Also:
    • CONTROLLER_BANK_SELECT

      public static final int CONTROLLER_BANK_SELECT
      See Also:
    • CONTROLLER_MODULATION_POT

      public static final int CONTROLLER_MODULATION_POT
      See Also:
    • CONTROLLER_VOLUME

      public static final int CONTROLLER_VOLUME
      See Also:
    • CONTROLLER_PANNING

      public static final int CONTROLLER_PANNING
      See Also:
    • CONTROLLER_EXPRESSION_POT

      public static final int CONTROLLER_EXPRESSION_POT
      See Also:
    • CONTROLLER_REVERB

      public static final int CONTROLLER_REVERB
      See Also:
    • CONTROLLER_CHORUS

      public static final int CONTROLLER_CHORUS
      See Also:
    • CONTROLLER_SUSTAIN_PEDAL

      public static final int CONTROLLER_SUSTAIN_PEDAL
      See Also:
    • CONTROLLER_SOFT_PEDAL

      public static final int CONTROLLER_SOFT_PEDAL
      See Also:
    • controllerNumber

      protected int controllerNumber
      The controller number to change.
    • controllerValue

      protected int controllerValue
      The controller value.
  • Method Details

    • getController

      public int getController()
      Returns:
      this event's target controller.
    • setController

      public void setController(int controllerNumber)
      Sets this event's target controller.
      Parameters:
      controllerNumber - the controller number.
      Throws:
      IllegalArgumentException - if controllerNumber is not between 0 and 9.
    • getValue

      public int getValue()
      Returns:
      this event's controller value.
    • setControllerValue

      public void setControllerValue(int controllerValue)
      Sets this event's controller value.
      Parameters:
      controllerValue - the new controller value.
      Throws:
      IllegalArgumentException - if controllerValue is not between 0 and 127.
    • toBytes

      public byte[] toBytes()
      Specified by:
      toBytes in class MUS.Event
      Returns:
      this event to a serialized byte form.
    • toString

      public String toString()
      Overrides:
      toString in class Object