Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
ManyAddresses/PBPotentiometer.hpp
Go to the documentation of this file.
1#pragma once
2
7
9
10namespace Bankable {
11namespace ManyAddresses {
12
31template <setting_t NumBanks>
33 : public Bankable::MIDIFilteredAnalog<ManyAddresses<NumBanks>,
34 PitchBendSender<10>> {
35 public:
48 PBPotentiometer(const Bank<NumBanks> &bank, pin_t analogPin,
49 const Array<MIDIChannelCable, NumBanks> &addresses)
51 {bank, AH::copyAs<MIDIAddress>(addresses)}, analogPin, {}} {}
52};
53
54} // namespace ManyAddresses
55} // namespace Bankable
56
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
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
A class for potentiometers and faders that send MIDI events and can be added to a Bank.
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
PBPotentiometer(const Bank< NumBanks > &bank, pin_t analogPin, const Array< MIDIChannelCable, NumBanks > &addresses)
Create a new Bankable PBPotentiometer object with the given analog pin and channel.
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
Type for storing pin numbers of Extended Input/Output elements.