Control Surface
1.2.0
MIDI Control Surface library for Arduino
src
MIDI_Outputs
Bankable
CCSmartPotentiometer.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Banks/BankAddresses.hpp
>
4
#include <
MIDI_Outputs/Bankable/Abstract/SmartMIDIFilteredAnalog.hpp
>
5
#include <
MIDI_Senders/ContinuousCCSender.hpp
>
6
7
AH_DIAGNOSTIC_WERROR
()
8
9
BEGIN_CS_NAMESPACE
10
11
namespace
Bankable
{
12
31
template
<u
int
8_t NumBanks>
32
class
CCSmartPotentiometer
33
:
public
SmartMIDIFilteredAnalog
<NumBanks, SingleAddress,
34
ContinuousCCSender> {
35
public
:
50
CCSmartPotentiometer
(
BankConfig<NumBanks>
config,
pin_t
analogPin,
51
MIDIAddress
address)
52
:
SmartMIDIFilteredAnalog
<NumBanks,
SingleAddress
,
ContinuousCCSender
>(
53
SingleAddress
{config, address}, analogPin, {}) {}
54
};
55
56
}
// namespace Bankable
57
58
END_CS_NAMESPACE
59
60
AH_DIAGNOSTIC_POP
()
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition:
MIDIAddress.hpp:91
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition:
BankAddresses.hpp:7
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition:
Hardware-Types.hpp:17
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:9
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition:
Warnings.hpp:36
SmartMIDIFilteredAnalog.hpp
BankAddresses.hpp
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition:
Settings/NamespaceSettings.hpp:10
Bankable::CCSmartPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition:
CCSmartPotentiometer.hpp:34
Bankable::SmartMIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events.
Definition:
SmartMIDIFilteredAnalog.hpp:28
Bankable::CCSmartPotentiometer::CCSmartPotentiometer
CCSmartPotentiometer(BankConfig< NumBanks > config, pin_t analogPin, MIDIAddress address)
Create a new Bankable CCSmartPotentiometer object with the given analog pin, controller number and ch...
Definition:
CCSmartPotentiometer.hpp:50
Bankable::SingleAddress
Definition:
BankAddresses.hpp:9
ContinuousCCSender.hpp
ContinuousCCSender
Class that sends continuous MIDI control change messages with a resolution of 7 bits.
Definition:
ContinuousCCSender.hpp:14
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition:
Warnings.hpp:35
BankConfig
Definition:
BankConfig.hpp:51
Generated by
1.8.19