public class MidiNote extends Note implements NoteWithVolume, NoteWithPanning
instrument, key| Constructor and Description |
|---|
MidiNote(long midiTick,
Instrument instrument,
byte key,
byte velocity,
byte panning) |
| Modifier and Type | Method and Description |
|---|---|
MidiNote |
clone() |
boolean |
equals(java.lang.Object o) |
long |
getMidiTick()
The MIDI tick of this note.
|
float |
getPanning() |
byte |
getRawPanning() |
byte |
getRawVelocity() |
float |
getVolume() |
int |
hashCode() |
void |
setPanning(float panning) |
void |
setVolume(float volume) |
getInstrument, getKey, getRawKey, setInstrument, setKeypublic MidiNote(long midiTick,
Instrument instrument,
byte key,
byte velocity,
byte panning)
public long getMidiTick()
public float getVolume()
getVolume in interface NoteWithVolumepublic void setVolume(float volume)
setVolume in interface NoteWithVolumevolume - The velocity/volume of the note, from 0% to 100%.public byte getRawVelocity()
public float getPanning()
getPanning in interface NoteWithPanningpublic void setPanning(float panning)
setPanning in interface NoteWithPanningpanning - The panning of the note, from -100% (left) to 100% (right). Where 0% is centered.public byte getRawPanning()