Package heronarts.lx.midi
Class MidiPitchBend
java.lang.Object
javax.sound.midi.MidiMessage
javax.sound.midi.ShortMessage
heronarts.lx.midi.LXShortMessage
heronarts.lx.midi.MidiPitchBend
- All Implemented Interfaces:
LXMidiMessage
,Cloneable
-
Field Summary
Fields inherited from class javax.sound.midi.ShortMessage
ACTIVE_SENSING, CHANNEL_PRESSURE, CONTINUE, CONTROL_CHANGE, END_OF_EXCLUSIVE, MIDI_TIME_CODE, NOTE_OFF, NOTE_ON, PITCH_BEND, POLY_PRESSURE, PROGRAM_CHANGE, SONG_POSITION_POINTER, SONG_SELECT, START, STOP, SYSTEM_RESET, TIMING_CLOCK, TUNE_REQUEST
Fields inherited from class javax.sound.midi.MidiMessage
data, length
-
Constructor Summary
ConstructorsConstructorDescriptionMidiPitchBend
(int channel, int msb) MidiPitchBend
(int channel, int lsb, int msb) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the pitch bend value normalized space from [-1, +1]int
Returns the pitch bend value, signed from [-8192, +8191]toString()
Methods inherited from class heronarts.lx.midi.LXShortMessage
dispatch, fromShortMessage, getSource, setSource
Methods inherited from class javax.sound.midi.ShortMessage
clone, getChannel, getCommand, getData1, getData2, getDataLength, setMessage, setMessage, setMessage
Methods inherited from class javax.sound.midi.MidiMessage
getLength, getMessage, getStatus, setMessage
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.midi.LXMidiMessage
getInput
-
Constructor Details
-
MidiPitchBend
- Throws:
InvalidMidiDataException
-
MidiPitchBend
- Throws:
InvalidMidiDataException
-
-
Method Details
-
getPitchBend
public int getPitchBend()Returns the pitch bend value, signed from [-8192, +8191]- Returns:
- Pitch bend value
-
getNormalized
public double getNormalized()Returns the pitch bend value normalized space from [-1, +1]- Returns:
- Normalized pitch bend amount
-
toString
-