Class: AudioToolbox::MIDIControlChangeMessage
- Inherits:
-
MIDIChannelMessage
- Object
- MIDIChannelMessage
- AudioToolbox::MIDIControlChangeMessage
- Defined in:
- lib/music_player.rb,
ext/music_player/music_player.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.
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
#mask ⇒ Object
154 |
# File 'lib/music_player.rb', line 154 def mask; 0xB0 end |