Control Surface pin-t-adl
MIDI Control Surface library for Arduino
ManyAddresses/CCPotentiometer.hpp
Go to the documentation of this file.
1#pragma once
2
6
8namespace Bankable {
9namespace ManyAddresses {
10
26template <setting_t NumBanks>
28 : public Bankable::MIDIFilteredAnalog<ManyAddresses<NumBanks>,
29 ContinuousCCSender> {
30 public:
46 CCPotentiometer(const Bank<NumBanks> &bank, pin_t analogPin,
47 const Array<MIDIAddress, NumBanks> &addresses)
49 {bank, addresses}, analogPin, {}} {}
50};
51
52} // namespace ManyAddresses
53} // namespace Bankable
54
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
A class that groups Bankable MIDI Output Elements and Bankable MIDI Input Elements,...
Definition: Bank.hpp:91
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,...
CCPotentiometer(const Bank< NumBanks > &bank, pin_t analogPin, const Array< MIDIAddress, NumBanks > &addresses)
Create a new CCPotentiometer object with the given analog pin, and address list.
Class that sends continuous MIDI control change messages with a resolution of 7 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:36
Type for storing pin numbers of Extended Input/Output elements.