Class: Vissen::Input::Message::ProgramChange
- Defined in:
- lib/vissen/input/message/program_change.rb
Overview
From the MIDI Association:
This message sent when the patch number changes.
Constant Summary collapse
- DATA_LENGTH =
2
- STATUS =
0xC0
Constants included from Vissen::Input::Message
Instance Attribute Summary
Attributes included from Vissen::Input::Message
Instance Method Summary collapse
-
#number ⇒ Integer
The program number.
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
#number ⇒ Integer
Returns the program number.
16 17 18 |
# File 'lib/vissen/input/message/program_change.rb', line 16 def number data[1] end |