Class: Music::Performance::MidiEvent::NoteOn
- Inherits:
-
Music::Performance::MidiEvent
- Object
- Music::Performance::MidiEvent
- Music::Performance::MidiEvent::NoteOn
- Defined in:
- lib/music-performance/arrangement/midi/midi_events.rb
Constant Summary
Constants inherited from Music::Performance::MidiEvent
Instance Attribute Summary collapse
-
#accented ⇒ Object
readonly
Returns the value of attribute accented.
-
#notenum ⇒ Object
readonly
Returns the value of attribute notenum.
Instance Method Summary collapse
-
#initialize(notenum, accented) ⇒ NoteOn
constructor
A new instance of NoteOn.
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
#accented ⇒ Object (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 |
#notenum ⇒ Object (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 |