Control Surface  1.2.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | List of all members
ContinuousCCSender14< INPUT_PRECISION_BITS > Class Template Reference

Class that sends continuous MIDI control change messages with a resolution of 14 bits. More...

#include <MIDI_Senders/ContinuousCCSender.hpp>

+ Collaboration diagram for ContinuousCCSender14< INPUT_PRECISION_BITS >:

Public Member Functions

void send (uint16_t value, MIDIAddress address)
 Send a 14-bit CC message to the given address. More...
 

Static Public Member Functions

constexpr static uint8_t precision ()
 Get this sender's precision. More...
 

Detailed Description

template<uint8_t INPUT_PRECISION_BITS>
class ContinuousCCSender14< INPUT_PRECISION_BITS >

Class that sends continuous MIDI control change messages with a resolution of 14 bits.

Template Parameters
INPUT_PRECISION_BITSThe resolution of the input values. For example, if INPUT_PRECISION_BITS == 10, the send function expects a value between 0 and 1023.

Definition at line 37 of file ContinuousCCSender.hpp.

Member Function Documentation

◆ send()

void send ( uint16_t  value,
MIDIAddress  address 
)
inline

Send a 14-bit CC message to the given address.

Sends two 7-bit CC packets, one for address (MSB), and one for address + 0x20 (LSB).

Definition at line 42 of file ContinuousCCSender.hpp.

◆ precision()

constexpr static uint8_t precision ( )
inlinestaticconstexpr

Get this sender's precision.

Definition at line 49 of file ContinuousCCSender.hpp.


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