Class: AudioToolbox::MIDIControlChangeMessage

Inherits:
MIDIChannelMessage show all
Defined in:
lib/music_player.rb,
ext/music_player/music_player.c

Instance Method Summary collapse

Methods inherited from MIDIChannelMessage

#==, #add, #channel, #data1, #data2, #status

Constructor Details

#initialize(opts) ⇒ MIDIControlChangeMessage

Returns a new instance of MIDIControlChangeMessage.



156
157
158
159
160
161
# File 'lib/music_player.rb', line 156

def initialize(opts)
  channel, number, value = required_opts(opts, :channel, :number, :value)
  super(:status => mask | channel,
        :data1  => number,
        :data2  => value)
end

Instance Method Details

#maskObject



154
# File 'lib/music_player.rb', line 154

def mask; 0xB0 end