19template <u
int8_t INPUT_PRECISION_BITS>
26 value = AH::increaseBitDepth<14, precision(), uint16_t>(value);
35 static_assert(INPUT_PRECISION_BITS <= 14,
36 "Maximum pitch bend resolution is 14 bits");
37 return INPUT_PRECISION_BITS;
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
#define BEGIN_CS_NAMESPACE
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
constexpr Channel getChannel() const
Get the channel [CHANNEL_1, CHANNEL_16].
constexpr Cable getCableNumber() const
Get the cable number [CABLE_1, CABLE_16].
A class for saving a MIDI channel and cable number.
void sendPitchBend(MIDIChannelCable address, uint16_t value)
Send a MIDI Pitch Bend event.
Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits.
static constexpr uint8_t precision()
Get this sender's precision.
static void send(uint16_t value, MIDIAddress address)
Send a MIDI pitch bend message with the given value and channel+cable.