Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
PitchBendSender< INPUT_PRECISION_BITS > Class Template Reference

#include <MIDI_Senders/PitchBendSender.hpp>

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.

+ 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+cable.
 
static constexpr uint8_t precision ()
 Get this sender's precision.
 

Member Function Documentation

◆ send()

template<uint8_t INPUT_PRECISION_BITS>
static void send ( uint16_t value,
MIDIAddress address )
inlinestatic

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

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

Definition at line 25 of file PitchBendSender.hpp.

◆ precision()

template<uint8_t INPUT_PRECISION_BITS>
static constexpr uint8_t precision ( )
inlinestaticconstexpr

Get this sender's precision.

Definition at line 33 of file PitchBendSender.hpp.


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