This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
ManyAddresses/CCButton.hpp
Go to the documentation of this file.
1 #pragma once
2 
6 
8 namespace Bankable {
9 namespace ManyAddresses {
10 
27 template <setting_t N>
28 class CCButton
29  : public Bankable::MIDIButton<ManyAddresses<N>, DigitalCCSender> {
30  public:
49  CCButton(const Bank<N> &bank, pin_t pin,
50  const Array<MIDICNChannelAddress, N> &addresses,
51  const DigitalCCSender &sender = {})
53  {bank, addresses}, pin, sender} {}
54 };
55 
56 } // namespace ManyAddresses
57 } // namespace Bankable
58 
MIDIButton.hpp
Bank
A class that groups Bankable BankableMIDIOutputs and BankableMIDIInputs, and allows the user to chang...
Definition: Bank.hpp:77
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition: BankAddresses.hpp:7
Bankable::ManyAddresses::ManyAddresses< N >
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Def.hpp:17
DigitalCCSender.hpp
Array
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:20
Bankable::MIDIButton
An abstract class for momentary push buttons that send MIDI events.
Definition: Bankable/Abstract/MIDIButton.hpp:20
BankAddresses.hpp
DigitalCCSender
Definition: DigitalCCSender.hpp:7
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
Bankable::MIDIButton< ManyAddresses< N >, DigitalCCSender >::sender
DigitalCCSender sender
Definition: Bankable/Abstract/MIDIButton.hpp:59
Bankable::ManyAddresses::CCButton
A class of MIDIOutputElements that read the input of a momentary push button or switch,...
Definition: ManyAddresses/CCButton.hpp:28
Bankable::ManyAddresses::CCButton::CCButton
CCButton(const Bank< N > &bank, pin_t pin, const Array< MIDICNChannelAddress, N > &addresses, const DigitalCCSender &sender={})
Create a new Bankable CCButton object with the given bank configuration, button pin,...
Definition: ManyAddresses/CCButton.hpp:49