Class: Vissen::Input::Message::ChannelPressure

Inherits:
Base
  • Object
show all
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

CHANNEL_MASK, STATUS_MASK

Instance Attribute Summary

Attributes included from Vissen::Input::Message

#data, #timestamp

Instance Method Summary collapse

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

#pressureInteger

Returns the pressure value.

Returns:

  • (Integer)

    the pressure value.



19
20
21
# File 'lib/vissen/input/message/channel_pressure.rb', line 19

def pressure
  data[1]
end