Class: Vissen::Input::Message::ControlChange
- Defined in:
- lib/vissen/input/message/control_change.rb
Overview
From the MIDI Association:
This is sent when a controller value changes. Controllers
include devices such as pedals and levers. Controller numbers 120-127
are reserved as "Channel Mode Messages".
Constant Summary collapse
- STATUS =
0xB0
Constants inherited from Base
Constants included from Vissen::Input::Message
CHANNEL_MASK, DATA_LENGTH, STATUS_MASK
Instance Attribute Summary
Attributes included from Vissen::Input::Message
Instance Method Summary collapse
-
#number ⇒ Integer
The control number.
-
#value ⇒ Integer
The control value.
Methods inherited from Base
[], create, factory, match?, matcher, #valid?
Methods included from Vissen::Input::Message
#channel, #initialize, #status, #valid?
Instance Method Details
#number ⇒ Integer
Returns the control number.
14 15 16 |
# File 'lib/vissen/input/message/control_change.rb', line 14 def number data[1] end |
#value ⇒ Integer
Returns the control value.
19 20 21 |
# File 'lib/vissen/input/message/control_change.rb', line 19 def value data[2] end |