Module: MIDIMessage::Status

Defined in:
lib/midi-message/short_message.rb

Overview

shortcuts for dealing with message status

Class Method Summary collapse

Class Method Details

.[](status_name) ⇒ Object

this returns the value of the Status constant with the name status_name



112
113
114
115
# File 'lib/midi-message/short_message.rb', line 112

def self.[](status_name)
  const = Constant.find("Status", status_name)
  const.value unless const.nil?
end