|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplugin.midi.Note
public class Note
Instances from this class are notes in midi format defined by pitch, duration and timecode
Field Summary | |
---|---|
long |
duration
|
java.lang.String |
strPitch
|
long |
timecode
|
Constructor Summary | |
---|---|
Note(javax.sound.midi.MidiEvent evt,
javax.sound.midi.ShortMessage msg)
create a new instance |
Method Summary | |
---|---|
long |
getDuration()
get the duration for this note |
byte |
getPitchByte()
get the bytes of the midi message for this note |
java.lang.String |
getPitchStr()
the the pitch for this note |
long |
getTimecode()
get the timecode for this note |
void |
setDuration(long duration)
set the duration of this note |
java.lang.String |
toString()
default output method |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String strPitch
public long duration
public long timecode
Constructor Detail |
---|
public Note(javax.sound.midi.MidiEvent evt, javax.sound.midi.ShortMessage msg)
evt
- the MidiEventmsg
- the MidiShortMessageMethod Detail |
---|
public long getTimecode()
public long getDuration()
public java.lang.String getPitchStr()
public byte getPitchByte()
public void setDuration(long duration)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |