Class: MIDIEvents::NoteOn
- Inherits:
-
Object
- Object
- MIDIEvents::NoteOn
- Includes:
- NoteMessage
- Defined in:
- lib/midi-events/messages.rb
Overview
MIDI Note-On message
Constant Summary collapse
- STATUS =
0x9- DATA =
[:channel, :note, :velocity].freeze
- DISPLAY_NAME =
'Note On'.freeze
- CONSTANT =
{ 'Note' => :note }.freeze
Instance Method Summary collapse
-
#abs_note ⇒ Fixnum
included
from NoteMessage
How many half-steps is this note above the closest C.
-
#note_name ⇒ String
included
from NoteMessage
The name of the note without its octave e.g.
-
#octave ⇒ Fixnum
(also: #oct)
included
from NoteMessage
The octave number of the note.
-
#octave=(value) ⇒ NoteMessage
(also: #oct=)
included
from NoteMessage
Set the octave number of the note.
-
#to_note_off ⇒ Object
returns the NoteOff equivalent of this object.
Instance Method Details
#abs_note ⇒ Fixnum Originally defined in module NoteMessage
How many half-steps is this note above the closest C
#note_name ⇒ String Originally defined in module NoteMessage
The name of the note without its octave e.g. F#
#octave ⇒ Fixnum Also known as: oct Originally defined in module NoteMessage
The octave number of the note
#octave=(value) ⇒ NoteMessage Also known as: oct= Originally defined in module NoteMessage
Set the octave number of the note
#to_note_off ⇒ Object
returns the NoteOff equivalent of this object
102 103 104 |
# File 'lib/midi-events/messages.rb', line 102 def to_note_off NoteOff.new(channel, note, velocity) end |