Class: Vissen::Input::Message::ChannelPressure
- Defined in:
- lib/vissen/input/message/channel_pressure.rb
Overview
From the MIDI Association:
Channel Pressure (After-touch). This message is most often sent by pressing down on the key after it "bottoms out". This message is different from polyphonic after-touch. Use this message to send the single greatest pressure value (of all the current depressed keys)
Constant Summary collapse
- DATA_LENGTH =
2
- STATUS =
0xD0
Constants included from Vissen::Input::Message
Instance Attribute Summary
Attributes included from Vissen::Input::Message
Instance Method Summary collapse
-
#pressure ⇒ Integer
The pressure value.
Methods inherited from Base
[], create, factory, match, match?, matcher, #valid?
Methods included from Vissen::Input::Message
#channel, #fetch, #initialize, #status, #to_h, #valid?
Instance Method Details
#pressure ⇒ Integer
Returns the pressure value.
19 20 21 |
# File 'lib/vissen/input/message/channel_pressure.rb', line 19 def pressure data[1] end |