Class: AudioToolbox::MIDIControlChangeMessage

Inherits:
MIDIChannelMessage show all
Defined in:
lib/midiosx.rb,
ext/music_player/midiosx.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.



169
170
171
172
173
174
# File 'lib/midiosx.rb', line 169

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



167
# File 'lib/midiosx.rb', line 167

def mask; 0xB0 end