Class: AudioToolbox::MIDIPitchBendMessage
- Inherits:
-
MIDIChannelMessage
- Object
- MIDIChannelMessage
- AudioToolbox::MIDIPitchBendMessage
- Defined in:
- lib/music_player.rb,
ext/music_player/music_player.c
Instance Method Summary collapse
-
#initialize(opts) ⇒ MIDIPitchBendMessage
constructor
A new instance of MIDIPitchBendMessage.
- #mask ⇒ Object
Methods inherited from MIDIChannelMessage
#==, #add, #channel, #data1, #data2, #status
Constructor Details
#initialize(opts) ⇒ MIDIPitchBendMessage
Returns a new instance of MIDIPitchBendMessage.
193 194 195 196 197 |
# File 'lib/music_player.rb', line 193 def initialize(opts) channel, value = required_opts(opts, :channel, :value) super(:status => mask | channel, :data1 => value) end |
Instance Method Details
#mask ⇒ Object
191 |
# File 'lib/music_player.rb', line 191 def mask; 0xE0 end |