Class MUS.PitchEvent

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

public static class MUS.PitchEvent extends MUS.Event
Pitch wheel event.
  • Field Details

    • pitch

      protected int pitch
      The pitch wheel adjustment.
  • Method Details

    • getPitch

      public int getPitch()
      Returns:
      this event's pitch value.
    • setPitch

      public void setPitch(int pitch)
      Sets this event's pitch.
      Parameters:
      pitch - the pitch value.
      Throws:
      IllegalArgumentException - if pitch is not between 0 and 255.
    • 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