Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
src
MIDI_Outputs
PBPotentiometer.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MIDI_Outputs/Abstract/MIDIFilteredAnalog.hpp
>
4
#include <
MIDI_Senders/PitchBendSender.hpp
>
5
6
BEGIN_CS_NAMESPACE
7
22
class
PBPotentiometer
:
public
MIDIFilteredAnalog
<PitchBendSender<10>> {
23
public
:
34
PBPotentiometer
(pin_t analogPin,
MIDIChannelCable
address
=
Channel_1
)
35
:
MIDIFilteredAnalog
(analogPin,
address
, {}) {}
36
};
37
38
END_CS_NAMESPACE
MIDIFilteredAnalog.hpp
Channel_1
constexpr Channel Channel_1
Definition
Channel.hpp:118
PitchBendSender.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:14
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition
Settings/NamespaceSettings.hpp:11
MIDIChannelCable
A class for saving a MIDI channel and cable number.
Definition
MIDIAddress.hpp:24
MIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events.
Definition
Abstract/MIDIFilteredAnalog.hpp:17
MIDIFilteredAnalog< PitchBendSender< 10 > >::address
MIDIAddress address
Definition
Abstract/MIDIFilteredAnalog.hpp:90
PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition
PBPotentiometer.hpp:22
PBPotentiometer::PBPotentiometer
PBPotentiometer(pin_t analogPin, MIDIChannelCable address=Channel_1)
Create a new PBPotentiometer object with the given analog pin and channel.
Definition
PBPotentiometer.hpp:34
Generated by
1.10.0