Control Surface  1.2.0
MIDI Control Surface library for Arduino
ManyAddresses/CCPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 namespace Bankable {
9 namespace ManyAddresses {
10 
26 template <setting_t NumBanks>
28  : public Bankable::MIDIFilteredAnalogAddressable<ManyAddresses<NumBanks>,
29  ContinuousCCSender> {
30  public:
46  CCPotentiometer(const Bank<NumBanks> &bank, pin_t analogPin,
47  const Array<MIDIAddress, NumBanks> &addresses)
50  {bank, addresses}, analogPin, {}} {}
51 };
52 
53 } // namespace ManyAddresses
54 } // namespace Bankable
55 
Bank
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
Definition: Bank.hpp:75
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
Bankable::ManyAddresses::ManyAddresses
Definition: BankAddresses.hpp:106
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Hardware-Types.hpp:17
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:9
BankAddresses.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
Bankable::ManyAddresses::CCPotentiometer::CCPotentiometer
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.
Definition: ManyAddresses/CCPotentiometer.hpp:46
AH::Array
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:36
MIDIFilteredAnalog.hpp
Bankable::ManyAddresses::CCPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: ManyAddresses/CCPotentiometer.hpp:29
ContinuousCCSender.hpp
Bankable::MIDIFilteredAnalogAddressable
A class for potentiometers and faders that send MIDI events and that can be added to a Bank.
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:21
ContinuousCCSender
Class that sends continuous MIDI control change messages with a resolution of 7 bits.
Definition: ContinuousCCSender.hpp:14