Class: Music::Performance::MidiEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/music-performance/arrangement/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



5
6
7
# File 'lib/music-performance/arrangement/midi/midi_events.rb', line 5

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