|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenpiano.midi.MidiNote
public class MidiNote
The MidiNote class represents a single MIDI note
| Constructor Summary | |
|---|---|
MidiNote(long startTick,
long endTick,
MidiMessage midiMessage)
Constructs a new MIDI note |
|
| Method Summary | |
|---|---|
int |
compareTo(MidiNote midiNote)
Compares the start ticks of MIDI notes |
long |
getEndTick()
Returns the end tick of the note |
int |
getKey()
Returns the corresponding key for the note |
MidiMessage |
getMidiMessage()
Returns the MIDI message for the note |
long |
getStartTick()
Returns the start tick of the note |
int |
getVelocity()
Returns the velocity of the note |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MidiNote(long startTick,
long endTick,
MidiMessage midiMessage)
startTick - the start tick of the noteendTick - the end tick of the notemidiMessage - the MIDI message containing the note| Method Detail |
|---|
public MidiMessage getMidiMessage()
public long getStartTick()
public long getEndTick()
public int getVelocity()
public int getKey()
public int compareTo(MidiNote midiNote)
compareTo in interface Comparable<MidiNote>midiNote - the MIDI note to compare with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||