Module: MIDIMessage::ChannelMessage::ClassMethods

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#propertiesObject (readonly)

Returns the value of attribute properties.



66
67
68
# File 'lib/midi-message/channel_message.rb', line 66

def properties
  @properties
end

Instance Method Details

#schema(*args) ⇒ Object Also known as: layout



72
73
74
# File 'lib/midi-message/channel_message.rb', line 72

def schema(*args)
  @properties = args
end

#second_data_byte?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/midi-message/channel_message.rb', line 77

def second_data_byte?
  @properties.nil? || (@properties.length-1) > 1
end

#type_for_statusObject



68
69
70
# File 'lib/midi-message/channel_message.rb', line 68

def type_for_status
  @display_name.nil? ? nil : Status[@display_name] 
end