Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
ManyAddresses/CCPotentiometer.hpp
Go to the documentation of this file.
1#pragma once
2
6
8namespace Bankable {
9namespace ManyAddresses {
10
26template <setting_t NumBanks>
28 : public Bankable::MIDIFilteredAnalog<ManyAddresses<NumBanks>,
29 ContinuousCCSender> {
30 public:
44 CCPotentiometer(const Bank<NumBanks> &bank, pin_t analogPin,
45 const Array<MIDIAddress, NumBanks> &addresses)
47 {bank, addresses}, analogPin, {}} {}
48};
49
50} // namespace ManyAddresses
51} // namespace Bankable
52
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
A class for potentiometers and faders that send MIDI events and can be added to a Bank.
A class of MIDIOutputElements that read the analog input from a potentiometer or fader,...
CCPotentiometer(const Bank< NumBanks > &bank, pin_t analogPin, const Array< MIDIAddress, NumBanks > &addresses)
Create a new CCPotentiometer object with the given analog pin, and address list.
Class that sends continuous MIDI control change messages with a resolution of 7 bits.
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
An array wrapper for easy copying, comparing, and iterating.
Definition Array.hpp:32