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
    • 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() 
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class java.lang.Object
      • compareTo

        public int compareTo(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • print

        public void print(at.ofai.music.util.Flags f)