Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Outputs
Bankable
PBSmartPotentiometer.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/PitchBendSender.hpp
>
6
7
BEGIN_CS_NAMESPACE
8
9
namespace
Bankable
{
10
32
template
<u
int
8_t NumBanks>
33
class
PBSmartPotentiometer
34
:
public
SmartMIDIFilteredAnalog
<NumBanks, SingleAddress,
35
PitchBendSender<10>> {
36
public
:
50
PBSmartPotentiometer
(
BankConfig<NumBanks>
config,
pin_t
analogPin,
51
MIDIChannelCable
address
)
52
:
SmartMIDIFilteredAnalog
<NumBanks,
SingleAddress
,
PitchBendSender
<10>>(
53
SingleAddress
{config,
address
}, analogPin, {}) {}
54
};
55
56
}
// namespace Bankable
57
58
END_CS_NAMESPACE
BankAddresses.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
SmartMIDIFilteredAnalog.hpp
Bankable::PBSmartPotentiometer::PBSmartPotentiometer
PBSmartPotentiometer(BankConfig< NumBanks > config, pin_t analogPin, MIDIChannelCable address)
Create a new Bankable PBSmartPotentiometer object with the given analog pin and channel.
Definition
PBSmartPotentiometer.hpp:50
Bankable::SingleAddress
Definition
BankAddresses.hpp:9
Bankable::SmartMIDIFilteredAnalog< NumBanks, SingleAddress, PitchBendSender< 10 > >::address
SingleAddress address
Definition
SmartMIDIFilteredAnalog.hpp:156
Bankable::SmartMIDIFilteredAnalog< NumBanks, SingleAddress, PitchBendSender< 10 > >::SmartMIDIFilteredAnalog
SmartMIDIFilteredAnalog(SingleAddress bankAddress, pin_t analogPin, const PitchBendSender< 10 > &sender)
Definition
SmartMIDIFilteredAnalog.hpp:39
MIDIChannelCable
A class for saving a MIDI channel and cable number.
Definition
MIDIAddress.hpp:24
PitchBendSender
Class that sends continuous MIDI pitch bend messages with a resolution of 14 bits.
Definition
PitchBendSender.hpp:20
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
BankConfig
Definition
BankConfig.hpp:54
Generated by
1.17.0