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

Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits. More...

#include <MIDI_Senders/PitchBendSender.hpp>

+ Collaboration diagram for PitchBendSender< INPUT_PRECISION_BITS >:

Static Public Member Functions

static void send (uint16_t value, MIDIAddress address)
 Send a MIDI pitch bend message with the given value and channel+CN. More...
 
constexpr static uint8_t precision ()
 Get this sender's precision. More...
 

Detailed Description

template<uint8_t INPUT_PRECISION_BITS>
class PitchBendSender< INPUT_PRECISION_BITS >

Class that sends continuous MIDI pitch bend 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 20 of file PitchBendSender.hpp.

Member Function Documentation

◆ send()

static void send ( uint16_t  value,
MIDIAddress  address 
)
inlinestatic

Send a MIDI pitch bend message with the given value and channel+CN.

address.getAddress() is ignored. Value should be INPUT_PRECISION_BITS wide.

Definition at line 25 of file PitchBendSender.hpp.

◆ precision()

constexpr static uint8_t precision ( )
inlinestaticconstexpr

Get this sender's precision.

Definition at line 34 of file PitchBendSender.hpp.


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