This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
PBPotentiometer.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
21 class PBPotentiometer : public MIDIFilteredAnalog<PitchBendSender<10>> {
22  public:
36  const PitchBendSender<10> &sender = {})
37  : MIDIFilteredAnalog(analogPin, address, sender) {}
38 };
39 
MIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events (with only a channel, no address).
Definition: Abstract/MIDIFilteredAnalog.hpp:90
PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition: PBPotentiometer.hpp:21
MIDIFilteredAnalog< PitchBendSender< 10 > >::address
const MIDICNChannelAddress address
Definition: Abstract/MIDIFilteredAnalog.hpp:145
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Def.hpp:17
MIDIFilteredAnalog.hpp
PitchBendSender< 10 >
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
MIDIFilteredAnalog< PitchBendSender< 10 > >::sender
PitchBendSender< 10 > sender
Definition: Abstract/MIDIFilteredAnalog.hpp:148
PitchBendSender.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
MIDIFilteredAnalog< PitchBendSender< 10 > >::MIDIFilteredAnalog
MIDIFilteredAnalog(pin_t analogPin, const MIDICNChannel &address, const PitchBendSender< 10 > &sender)
Construct a new MIDIFilteredAnalog.
Definition: Abstract/MIDIFilteredAnalog.hpp:103
PBPotentiometer::PBPotentiometer
PBPotentiometer(pin_t analogPin, const MIDICNChannel &address=CHANNEL_1, const PitchBendSender< 10 > &sender={})
Create a new PBPotentiometer object with the given analog pin and channel.
Definition: PBPotentiometer.hpp:35
CHANNEL_1
constexpr Channel CHANNEL_1
Definition: Channel.hpp:111