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/PBPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
7 
9 
10 namespace Bankable {
11 namespace ManyAddresses {
12 
31 template <setting_t N>
33  : public Bankable::MIDIFilteredAnalog<ManyAddresses<N>,
34  PitchBendSender<10>> {
35  public:
50  PBPotentiometer(const Bank<N> &bank, pin_t analogPin,
51  const Array<MIDICNChannel, N> &addresses,
52  const PitchBendSender<10> &sender = {})
54  {bank, copyAs<MIDICNChannelAddress>(addresses)},
55  analogPin,
56  sender,
57  } {}
58 };
59 
60 } // namespace ManyAddresses
61 } // namespace Bankable
62 
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::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::ManyAddresses::PBPotentiometer::PBPotentiometer
PBPotentiometer(const Bank< N > &bank, pin_t analogPin, const Array< MIDICNChannel, N > &addresses, const PitchBendSender< 10 > &sender={})
Create a new Bankable PBPotentiometer object with the given analog pin and channel.
Definition: ManyAddresses/PBPotentiometer.hpp:50
Array
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:20
BankAddresses.hpp
PitchBendSender< 10 >
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
PitchBendSender.hpp
Bankable::MIDIFilteredAnalog< ManyAddresses< N >, PitchBendSender< 10 > >::sender
PitchBendSender< 10 > sender
Definition: Bankable/Abstract/MIDIFilteredAnalog.hpp:151
MIDIFilteredAnalog.hpp
ArrayHelpers.hpp
Bankable::ManyAddresses::PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: ManyAddresses/PBPotentiometer.hpp:32
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10