|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.frinika.sequencer.model.MultiEvent
com.frinika.sequencer.model.ChannelEvent
com.frinika.sequencer.model.NoteEvent
public class NoteEvent
Nested Class Summary | |
---|---|
static class |
NoteEvent.EndComparator
|
static class |
NoteEvent.NoteComparator
|
static class |
NoteEvent.StartComparator
Utility comparators for sorted sets. |
Field Summary | |
---|---|
static NoteEvent.EndComparator |
endComparator
|
static java.util.Comparator<NoteEvent> |
noteComparator
|
static NoteEvent.StartComparator |
startComparator
|
Fields inherited from class com.frinika.sequencer.model.MultiEvent |
---|
startTick |
Constructor Summary | |
---|---|
NoteEvent(FrinikaTrackWrapper track,
long startTick,
int note,
int velocity,
int channel,
long duration)
Deprecated. |
|
NoteEvent(MidiPart part,
long startTick,
int note,
int velocity,
int channel,
long duration)
|
Method Summary | |
---|---|
void |
commitAddImpl()
Add the MidiEvents generated by this MultiEvent to the track |
long |
getDuration()
|
long |
getEndTick()
sub classes should override this. |
int |
getNote()
|
java.lang.String |
getNoteName()
|
int |
getValue()
|
int |
getVelocity()
|
boolean |
isDrumHit()
|
void |
restoreFromClone(EditHistoryRecordable object)
On removal the EditHistoryContainer will attempt to clone the object - and if restored later it will use the restoreFromClone method to restore the cloned data on the original instance. |
long |
rightTickForMove()
PLease override if need be |
void |
setDuration(long duration)
|
void |
setEndEvent(javax.sound.midi.MidiEvent endEvent)
|
void |
setNote(int note)
|
void |
setValue(int val)
|
void |
setVelocity(int velocity)
|
void |
validate()
PJL HACK NOT DO NOT USE |
Methods inherited from class com.frinika.sequencer.model.ChannelEvent |
---|
getChannel, setChannel |
Methods inherited from class com.frinika.sequencer.model.MultiEvent |
---|
addToModel, clone, commitAdd, commitChanges, compareTo, deepCopy, deepMove, detachedCopy, getMidiPart, getMultiEventEndTickComparable, getPart, getStartTick, getTrack, getTrackerColumn, getValueUI, isSelected, isZombie, leftTickForMove, removeFromModel, setSelected, setStartTick, setTrackerColumn, setValueUI |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<NoteEvent> noteComparator
public static final NoteEvent.StartComparator startComparator
public static final NoteEvent.EndComparator endComparator
Constructor Detail |
---|
public NoteEvent(FrinikaTrackWrapper track, long startTick, int note, int velocity, int channel, long duration)
track
- startTick
- note
- velocity
- channel
- duration
- public NoteEvent(MidiPart part, long startTick, int note, int velocity, int channel, long duration)
group
- startTick
- note
- velocity
- channel
- duration
- Method Detail |
---|
public void setEndEvent(javax.sound.midi.MidiEvent endEvent)
public long getEndTick()
MultiEvent
getEndTick
in class MultiEvent
public int getNote()
public java.lang.String getNoteName()
public void setNote(int note)
public int getVelocity()
public void setVelocity(int velocity)
public long getDuration()
public void setDuration(long duration)
duration
- The duration to set.public void commitAddImpl()
MultiEvent
public void restoreFromClone(EditHistoryRecordable object)
EditHistoryRecordable
public void setValue(int val)
setValue
in class MultiEvent
public int getValue()
getValue
in class MultiEvent
public long rightTickForMove()
MultiEvent
rightTickForMove
in interface Selectable
rightTickForMove
in class MultiEvent
public boolean isDrumHit()
public void validate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |