BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::base_midi_formater< Component > Struct Template Reference

Provides underlying functionalities to format and store MIDI messages, before applying blinking or pulsing effects. More...

#include <midi_formater.hpp>

Inheritance diagram for bugui::base_midi_formater< Component >:
bugui::midi_formater< Component > bugui::dual_blinker< Component > bugui::dual_pulser< Component > bugui::midi_formater< Component > bugui::midi_formater< Component > bugui::midi_formater< Component > bugui::midi_formater< Component > bugui::midi_formater< Component > bugui::midi_formater< Component >

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

Detailed Description

template<typename Component>
struct bugui::base_midi_formater< Component >

Provides underlying functionalities to format and store MIDI messages, before applying blinking or pulsing effects.

Member Function Documentation

◆ clear()

template<typename Component>
virtual void bugui::base_midi_formater< Component >::clear ( )
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 >.

◆ set()

template<typename Component>
virtual void bugui::base_midi_formater< Component >::set ( uint8_t id,
const color_converter< typename Component::color_t > & converter )
inlinevirtual

Converts and stores an LED's ID and color to the apropriate MIDI message.

Reimplemented in bugui::midi_formater< Component >.


The documentation for this struct was generated from the following file: