Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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
BEGIN_CS_NAMESPACE
8
9
namespace
Bankable
{
10
29
template
<u
int
8_t NumBanks>
30
class
CCSmartPotentiometer
31
:
public
SmartMIDIFilteredAnalog
<NumBanks, SingleAddress,
32
ContinuousCCSender> {
33
public
:
48
CCSmartPotentiometer
(
BankConfig<NumBanks>
config, pin_t analogPin,
49
MIDIAddress
address
)
50
:
SmartMIDIFilteredAnalog
<NumBanks,
SingleAddress
,
ContinuousCCSender
>(
51
SingleAddress
{config,
address
}, analogPin, {}) {}
52
};
53
54
}
// namespace Bankable
55
56
END_CS_NAMESPACE
BankAddresses.hpp
ContinuousCCSender.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
SmartMIDIFilteredAnalog.hpp
AH::FilteredAnalog< Sender::precision()>
Bankable::CCSmartPotentiometer
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
Definition
CCSmartPotentiometer.hpp:32
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:48
Bankable::SingleAddress
Definition
BankAddresses.hpp:9
Bankable::SmartMIDIFilteredAnalog
A class for potentiometers and faders that send MIDI events.
Definition
SmartMIDIFilteredAnalog.hpp:26
Bankable::SmartMIDIFilteredAnalog< NumBanks, SingleAddress, ContinuousCCSender >::address
SingleAddress address
Definition
SmartMIDIFilteredAnalog.hpp:156
ContinuousCCSender
Class that sends continuous MIDI control change messages with a resolution of 7 bits.
Definition
ContinuousCCSender.hpp:14
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition
MIDIAddress.hpp:145
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition
BankAddresses.hpp:7
Generated by
1.10.0