Class: Music::Performance::MidiEvent::NoteOn

Inherits:
Music::Performance::MidiEvent show all
Defined in:
lib/music-performance/arrangement/midi/midi_events.rb

Constant Summary

Constants inherited from Music::Performance::MidiEvent

ORDERING

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Music::Performance::MidiEvent

#<=>

Constructor Details

#initialize(notenum, accented) ⇒ NoteOn

Returns a new instance of NoteOn.



11
12
13
# File 'lib/music-performance/arrangement/midi/midi_events.rb', line 11

def initialize notenum, accented
  @notenum, @accented = notenum, accented
end

Instance Attribute Details

#accentedObject (readonly)

Returns the value of attribute accented.



10
11
12
# File 'lib/music-performance/arrangement/midi/midi_events.rb', line 10

def accented
  @accented
end

#notenumObject (readonly)

Returns the value of attribute notenum.



10
11
12
# File 'lib/music-performance/arrangement/midi/midi_events.rb', line 10

def notenum
  @notenum
end