Control Surface  1.2.0
MIDI Control Surface library for Arduino
CCSmartPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
10 
11 namespace Bankable {
12 
31 template <uint8_t NumBanks>
33  : public SmartMIDIFilteredAnalog<NumBanks, SingleAddress,
34  ContinuousCCSender> {
35  public:
51  MIDIAddress address)
53  SingleAddress{config, address}, analogPin, {}) {}
54 };
55 
56 } // namespace Bankable
57 
59 
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition: MIDIAddress.hpp:91
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
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
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:36
SmartMIDIFilteredAnalog.hpp
BankAddresses.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
Bankable::CCSmartPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: CCSmartPotentiometer.hpp:34
Bankable::SmartMIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events.
Definition: SmartMIDIFilteredAnalog.hpp:28
Bankable::CCSmartPotentiometer::CCSmartPotentiometer
CCSmartPotentiometer(BankConfig< NumBanks > config, pin_t analogPin, MIDIAddress address)
Create a new Bankable CCSmartPotentiometer object with the given analog pin, controller number and ch...
Definition: CCSmartPotentiometer.hpp:50
Bankable::SingleAddress
Definition: BankAddresses.hpp:9
ContinuousCCSender.hpp
ContinuousCCSender
Class that sends continuous MIDI control change messages with a resolution of 7 bits.
Definition: ContinuousCCSender.hpp:14
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:35
BankConfig
Definition: BankConfig.hpp:51