Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
src
MIDI_Outputs
Bankable
Bankable/PBPotentiometer.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Banks/BankAddresses.hpp
>
4
#include <
MIDI_Outputs/Bankable/Abstract/MIDIFilteredAnalog.hpp
>
5
#include <
MIDI_Senders/PitchBendSender.hpp
>
6
7
BEGIN_CS_NAMESPACE
8
9
namespace
Bankable
{
10
25
class
PBPotentiometer
26
:
public
MIDIFilteredAnalog
<SingleAddress, PitchBendSender<10>> {
27
public
:
41
PBPotentiometer
(
OutputBankConfig<BankType::ChangeChannel>
config,
42
pin_t
analogPin,
MIDIChannelCable
address
)
43
:
MIDIFilteredAnalog
{{config,
address
}, analogPin, {}} {}
44
};
45
46
}
// namespace Bankable
47
48
END_CS_NAMESPACE
BankAddresses.hpp
MIDIFilteredAnalog.hpp
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
Bankable::MIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events and can be added to a Bank.
Definition
Bankable/Abstract/MIDIFilteredAnalog.hpp:21
Bankable::MIDIFilteredAnalog< SingleAddress, PitchBendSender< 10 > >::address
SingleAddress address
Definition
Bankable/Abstract/MIDIFilteredAnalog.hpp:89
Bankable::PBPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition
Bankable/PBPotentiometer.hpp:26
Bankable::PBPotentiometer::PBPotentiometer
PBPotentiometer(OutputBankConfig< BankType::ChangeChannel > config, pin_t analogPin, MIDIChannelCable address)
Create a new Bankable PBPotentiometer object with the given analog pin and channel.
Definition
Bankable/PBPotentiometer.hpp:41
MIDIChannelCable
A class for saving a MIDI channel and cable number.
Definition
MIDIAddress.hpp:24
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition
BankAddresses.hpp:7
AH::ExtIO::pin_t
Type for storing pin numbers of Extended Input/Output elements.
Definition
Hardware-Types.hpp:25
OutputBankConfig
Definition
BankConfig.hpp:79
Generated by
1.10.0