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