|
BuGUI
BUtton Grid User Interface
|
Provides underlying functionalities to format and store MIDI messages, before applying blinking or pulsing effects. More...
#include <midi_formater.hpp>
Public Member Functions | |
| virtual void | set (uint8_t id, const color_converter< typename Component::color_t > &converter) |
| Converts and stores an LED's ID and color to the apropriate MIDI message. | |
| void | add (uint8_t element) |
| Add a given value to a MIDI message. This method is intended to call specific commands on the device (init, clear...) rathen than setting an LED's color (as in set). | |
| virtual void | clear () |
| Removes all stores values of the message except for it's message type or prefix (NOTE_ON, CONTROL_CHANGE or SYSTEM_EXCLUSIVE). | |
| bool | has_message () const |
| Checks if a message is stored and ready to be sent to the device. | |
| const libremidi::midi_bytes & | get () const |
| Retrives the MIDI message currently stored. | |
Protected Attributes | |
| libremidi::midi_bytes | bytes |
Provides underlying functionalities to format and store MIDI messages, before applying blinking or pulsing effects.
|
inlinevirtual |
Removes all stores values of the message except for it's message type or prefix (NOTE_ON, CONTROL_CHANGE or SYSTEM_EXCLUSIVE).
Reimplemented in bugui::dual_blinker< Component >, bugui::dual_pulser< Component >, bugui::midi_formater< Component >, bugui::midi_formater< Component >, and bugui::midi_formater< Component >.
|
inlinevirtual |
Converts and stores an LED's ID and color to the apropriate MIDI message.
Reimplemented in bugui::midi_formater< Component >.