Control Surface  1.2.0
MIDI Control Surface library for Arduino
PBSmartPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
10 
11 namespace Bankable {
12 
34 template <uint8_t NumBanks>
36  : public SmartMIDIFilteredAnalog<NumBanks, SingleAddress,
37  PitchBendSender<10>> {
38  public:
53  MIDIChannelCN address)
55  SingleAddress{config, address}, analogPin, {}) {}
56 };
57 
58 } // namespace Bankable
59 
61 
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
Bankable::PBSmartPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: PBSmartPotentiometer.hpp:37
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Hardware-Types.hpp:17
MIDIChannelCN
A class for saving a MIDI channel and cable number.
Definition: MIDIAddress.hpp:19
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
Bankable::PBSmartPotentiometer::PBSmartPotentiometer
PBSmartPotentiometer(BankConfig< NumBanks > config, pin_t analogPin, MIDIChannelCN address)
Create a new Bankable PBSmartPotentiometer object with the given analog pin and channel.
Definition: PBSmartPotentiometer.hpp:52
PitchBendSender
Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits.
Definition: PitchBendSender.hpp:20
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: Settings/NamespaceSettings.hpp:10
PitchBendSender.hpp
Bankable::SmartMIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events.
Definition: SmartMIDIFilteredAnalog.hpp:28
Bankable::SingleAddress
Definition: BankAddresses.hpp:9
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:35
BankConfig
Definition: BankConfig.hpp:51