Module: MIDIEvents::Constant::Status
Overview
Shortcuts for dealing with MIDI status bytes
Provides quick lookup of status byte values by their human-readable names (e.g., "Note On" => 0x9).
Class Method Summary collapse
-
.find(status_name) ⇒ Integer?
(also: #[])
Find a status byte value by its name.
Instance Method Summary collapse
-
#find(status_name) ⇒ Integer?
(also: #[])
Find a status byte value by its name.
Class Method Details
.find(status_name) ⇒ Integer? Also known as: []
Find a status byte value by its name
257 258 259 260 |
# File 'lib/midi-events/constant.rb', line 257 def find(status_name) const = Constant.find('Status', status_name) const&.value end |
Instance Method Details
#find(status_name) ⇒ Integer? Also known as: []
Find a status byte value by its name
257 258 259 260 |
# File 'lib/midi-events/constant.rb', line 257 def find(status_name) const = Constant.find('Status', status_name) const&.value end |