Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
ManyAddresses/PBAbsoluteEncoder.hpp
Go to the documentation of this file.
1#pragma once
2
7
9
10namespace Bankable {
11namespace ManyAddresses {
12
26template <size_t NumBanks>
28 : public MIDIAbsoluteEncoder<NumBanks, ManyAddresses<NumBanks>,
29 PitchBendSender<14>> {
30 public:
60 const Array<MIDIChannelCable, NumBanks> &addresses,
61 int16_t speedMultiply = 1, uint8_t pulsesPerStep = 4)
62 : MIDIAbsoluteEncoder<NumBanks, ManyAddresses<NumBanks>,
63 PitchBendSender<14>>(
64 {bank, AH::copyAs<MIDIAddress>(addresses)}, std::move(encoder),
65 speedMultiply, pulsesPerStep, {}) {}
66};
67
68} // namespace ManyAddresses
69} // namespace Bankable
70
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Class for reading quadrature encoders, heavily influenced by http://www.pjrc.com/teensy/td_libs_Encod...
Definition AHEncoder.hpp:24
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
A class that groups Bankable MIDI Output Elements and Bankable MIDI Input Elements,...
Definition Bank.hpp:94
An abstract class for rotary encoders that send absolute MIDI events.
A class of MIDIOutputElements that read the input of a quadrature (rotary) encoder and send out absol...
PBAbsoluteEncoder(const Bank< NumBanks > &bank, AHEncoder &&encoder, const Array< MIDIChannelCable, NumBanks > &addresses, int16_t speedMultiply=1, uint8_t pulsesPerStep=4)
Construct a new Bankable PBAbsoluteEncoder object with the given pins, channel, speed factor,...
Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32