Package at.ofai.music.util
Class Event
- java.lang.Object
-
- at.ofai.music.util.Event
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
- Direct Known Subclasses:
- WormEvent
public class Event extends java.lang.Object implements java.lang.Comparable, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description int
flags
double
keyDown
double
keyUp
int
midiChannel
int
midiCommand
int
midiPitch
int
midiTrack
int
midiVelocity
double
pedalUp
double
salience
double
scoreBeat
double
scoreDuration
-
Constructor Summary
Constructors Constructor and Description Event(double onset, double offset, double eOffset, int pitch, int velocity, double beat, double duration, int eventFlags)
Event(double onset, double offset, double eOffset, int pitch, int velocity, double beat, double duration, int eventFlags, int command, int channel, int track)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Event
clone()
int
compareTo(java.lang.Object o)
void
print(at.ofai.music.util.Flags f)
java.lang.String
toString()
-
-
-
Field Detail
-
flags
public int flags
-
keyDown
public double keyDown
-
keyUp
public double keyUp
-
midiChannel
public int midiChannel
-
midiCommand
public int midiCommand
-
midiPitch
public int midiPitch
-
midiTrack
public int midiTrack
-
midiVelocity
public int midiVelocity
-
pedalUp
public double pedalUp
-
salience
public double salience
-
scoreBeat
public double scoreBeat
-
scoreDuration
public double scoreDuration
-
-
Constructor Detail
-
Event
public Event(double onset, double offset, double eOffset, int pitch, int velocity, double beat, double duration, int eventFlags)
-
Event
public Event(double onset, double offset, double eOffset, int pitch, int velocity, double beat, double duration, int eventFlags, int command, int channel, int track)
-
-
Method Detail
-
clone
public Event clone()
- Overrides:
clone
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
print
public void print(at.ofai.music.util.Flags f)
-
-