|
BuGUI
BUtton Grid User Interface
|
Enables the use of multiple buffers targetting diferent midi Channels. This method is used for devices and components expecting MIDI messages on 2 diffrent channels to blink LED's. More...
#include <midi_formater.hpp>
Public Member Functions | |
| bool | has_blink_message () const |
| Checks if a message is stored in the buffer dedicated for bliking, and ready to be sent to the device. | |
| void | add_blink (uint8_t element) |
| Add a given value to a MIDI buffer dedicated to blinking LED's. | |
| const libremidi::midi_bytes & | get_blink () const |
| Retrives the MIDI buffer dedicated to blinking LED's. | |
| Public Member Functions inherited from bugui::base_midi_formater< Component > | |
| 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). | |
| 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 Member Functions | |
| void | clear () override |
| Removes all stores values of the message except for it's message type or prefix (NOTE_ON, CONTROL_CHANGE or SYSTEM_EXCLUSIVE). | |
Protected Attributes | |
| libremidi::midi_bytes | blink_bytes |
| Protected Attributes inherited from bugui::base_midi_formater< Component > | |
| libremidi::midi_bytes | bytes |
Enables the use of multiple buffers targetting diferent midi Channels. This method is used for devices and components expecting MIDI messages on 2 diffrent channels to blink LED's.
|
inlineoverrideprotectedvirtual |
Removes all stores values of the message except for it's message type or prefix (NOTE_ON, CONTROL_CHANGE or SYSTEM_EXCLUSIVE).
Reimplemented from bugui::base_midi_formater< Component >.
Reimplemented in bugui::midi_formater< Component >, bugui::midi_formater< Component >, and bugui::midi_formater< Component >.