Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Outputs
Bankable
Bankable/CCButtonLatched.hpp
Go to the documentation of this file.
1
/* ✔ */
2
3
#pragma once
4
5
#include <
Banks/BankAddresses.hpp
>
6
#include <
MIDI_Outputs/Bankable/Abstract/MIDIButtonLatched.hpp
>
7
#include <
MIDI_Senders/DigitalCCSender.hpp
>
8
9
BEGIN_CS_NAMESPACE
10
11
namespace
Bankable
{
12
28
template
<u
int
8_t NumBanks>
29
class
CCButtonLatched
30
:
public
MIDIButtonLatched
<NumBanks, SingleAddress, DigitalCCSender> {
31
public
:
49
CCButtonLatched
(
BankConfig<NumBanks>
config,
pin_t
pin,
MIDIAddress
address
,
50
const
DigitalCCSender
&
sender
= {})
51
:
MIDIButtonLatched
<NumBanks,
SingleAddress
,
DigitalCCSender
>(
52
{config,
address
}, pin,
sender
) {}
53
};
54
55
}
// namespace Bankable
56
57
END_CS_NAMESPACE
BankAddresses.hpp
MIDIButtonLatched.hpp
DigitalCCSender.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
Bankable::CCButtonLatched::CCButtonLatched
CCButtonLatched(BankConfig< NumBanks > config, pin_t pin, MIDIAddress address, const DigitalCCSender &sender={})
Create a new bankable CCButtonLatched object on the given pin and with address.
Definition
Bankable/CCButtonLatched.hpp:49
Bankable::MIDIButtonLatched
A class for momentary buttons and switches that send MIDI events.
Definition
Bankable/Abstract/MIDIButtonLatched.hpp:22
Bankable::MIDIButtonLatched< NumBanks, SingleAddress, DigitalCCSender >::address
SingleAddress address
Definition
Bankable/Abstract/MIDIButtonLatched.hpp:68
Bankable::MIDIButtonLatched< NumBanks, SingleAddress, DigitalCCSender >::sender
DigitalCCSender sender
Definition
Bankable/Abstract/MIDIButtonLatched.hpp:73
Bankable::MIDIButtonLatched< NumBanks, SingleAddress, DigitalCCSender >::MIDIButtonLatched
MIDIButtonLatched(SingleAddress bankAddress, pin_t pin, const DigitalCCSender &sender)
Definition
Bankable/Abstract/MIDIButtonLatched.hpp:36
Bankable::SingleAddress
Definition
BankAddresses.hpp:9
DigitalCCSender
Class that sends MIDI control change messages signifying either "on" or "off".
Definition
DigitalCCSender.hpp:13
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
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