Control Surface  1.1.1
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 N>
28  : public Bankable::MIDIFilteredAnalogAddressable<ManyAddresses<N>,
29  ContinuousCCSender> {
30  public:
48  CCPotentiometer(const Bank<N> &bank, pin_t analogPin,
49  const Array<MIDICNChannelAddress, N> &addresses,
50  const ContinuousCCSender &sender = {})
52  {bank, addresses}, analogPin, sender} {}
53 };
54 
55 } // namespace ManyAddresses
56 } // namespace Bankable
57 
Bank
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
Definition: Bank.hpp:77
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< N >
Bankable::ManyAddresses::CCPotentiometer::CCPotentiometer
CCPotentiometer(const Bank< N > &bank, pin_t analogPin, const Array< MIDICNChannelAddress, N > &addresses, const ContinuousCCSender &sender={})
Create a new CCPotentiometer object with the given analog pin, and address list.
Definition: ManyAddresses/CCPotentiometer.hpp:48
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Hardware-Types.hpp:17
Bankable::MIDIFilteredAnalogAddressable< ManyAddresses< N >, ContinuousCCSender >::sender
ContinuousCCSender sender
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:79
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
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:27
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
Definition: ContinuousCCSender.hpp:7