This is an old version of the documentation. View the latest version here.
Control Surface  1.0.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 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::MIDIFilteredAnalogAddressable< ManyAddresses< N >, ContinuousCCSender >::sender
ContinuousCCSender sender
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:79
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
Bankable::ManyAddresses::ManyAddresses< N >
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Def.hpp:17
Array
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:20
BankAddresses.hpp
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
MIDIFilteredAnalog.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
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