Class: AudioToolbox::MIDIPitchBendMessage

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) ⇒ 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

#maskObject



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

def mask; 0xE0 end