This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Bankable/PBPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 
9 namespace Bankable {
10 
26  : public MIDIFilteredAnalog<SingleAddress, PitchBendSender<10>> {
27  public:
43  PBPotentiometer(const OutputBankConfig &config, pin_t analogPin,
44  const MIDICNChannel &address,
45  const PitchBendSender<10> &sender = {})
46  : MIDIFilteredAnalog{{config, address}, analogPin, sender} {}
47 };
48 
49 } // namespace Bankable
50 
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
Bankable::MIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events (with only a channel, no address) and tha...
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:93
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Def.hpp:17
Bankable::PBPotentiometer::PBPotentiometer
PBPotentiometer(const OutputBankConfig &config, pin_t analogPin, const MIDICNChannel &address, const PitchBendSender< 10 > &sender={})
Create a new Bankable PBPotentiometer object with the given analog pin and channel.
Definition: Bankable/PBPotentiometer.hpp:43
BankAddresses.hpp
PitchBendSender< 10 >
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
PitchBendSender.hpp
Bankable::MIDIFilteredAnalog< SingleAddress, PitchBendSender< 10 > >::sender
PitchBendSender< 10 > sender
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:151
MIDIFilteredAnalog.hpp
MIDICNChannel
A class for saving a MIDI channel and cable number.
Definition: MIDICNChannelAddress.hpp:19
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
Bankable::MIDIFilteredAnalog< SingleAddress, PitchBendSender< 10 > >::address
SingleAddress address
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:147
OutputBankConfig
A struct for selecting the bank of BankableMIDIOutputs and the bank type.
Definition: BankConfig.hpp:50
Bankable::PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: Bankable/PBPotentiometer.hpp:25