Package heronarts.lx.midi
Class MidiNote
java.lang.Object
javax.sound.midi.MidiMessage
javax.sound.midi.ShortMessage
heronarts.lx.midi.LXShortMessage
heronarts.lx.midi.MidiNote
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
MidiNoteOff
,MidiNoteOn
-
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
ModifierConstructorDescriptionprotected
MidiNote
(int command, int channel, int pitch, int velocity) protected
MidiNote
(ShortMessage message, int command) -
Method Summary
Modifier and TypeMethodDescriptionint
getPitch()
static String
getPitchString
(int pitch) int
boolean
isNoteOn()
Methods inherited from class heronarts.lx.midi.LXShortMessage
dispatch, fromShortMessage
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
-
Constructor Details
-
MidiNote
protected MidiNote(int command, int channel, int pitch, int velocity) throws InvalidMidiDataException - Throws:
InvalidMidiDataException
-
MidiNote
-
-
Method Details
-
getPitchString
-
getPitchString
-
getPitch
public int getPitch() -
getVelocity
public int getVelocity() -
isNoteOn
public boolean isNoteOn()
-