Class: AudioToolbox::MIDIControlChangeMessage
- Inherits:
-
MIDIChannelMessage
- Object
- MIDIChannelMessage
- AudioToolbox::MIDIControlChangeMessage
- Defined in:
- lib/midiosx.rb,
ext/music_player/midiosx.c
Instance Method Summary collapse
-
#initialize(opts) ⇒ MIDIControlChangeMessage
constructor
A new instance of MIDIControlChangeMessage.
- #mask ⇒ Object
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
#mask ⇒ Object
167 |
# File 'lib/midiosx.rb', line 167 def mask; 0xB0 end |