Class: AudioToolbox::MIDIChannelPressureMessage

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

Returns a new instance of MIDIChannelPressureMessage.



181
182
183
184
185
# File 'lib/music_player.rb', line 181

def initialize(opts)
  channel, pressure = required_opts(opts, :channel, :pressure)
  super(:status => mask | channel,
        :data1  => pressure)
end

Instance Method Details

#maskObject



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

def mask; 0xD0 end