Class: Musicality::MidiEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/musicality/performance/midi/midi_events.rb

Direct Known Subclasses

Expression, NoteOff, NoteOn

Defined Under Namespace

Classes: Expression, NoteOff, NoteOn

Constant Summary collapse

ORDERING =
{
  NoteOff => 0, Expression => 1, NoteOn => 2
}

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



4
5
6
# File 'lib/musicality/performance/midi/midi_events.rb', line 4

def <=> other
  ORDERING[self] <=> ORDERING[other]
end