Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Outputs
Bankable
Bankable/CCButtonMatrix.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Banks/BankAddresses.hpp
>
4
#include <
MIDI_Outputs/Bankable/Abstract/MIDIButtonMatrix.hpp
>
5
#include <
MIDI_Senders/DigitalCCSender.hpp
>
6
7
BEGIN_CS_NAMESPACE
8
9
namespace
Bankable
{
10
28
template
<u
int
8_t NumRows, u
int
8_t NumCols>
29
class
CCButtonMatrix
30
:
public
MIDIButtonMatrix
<MatrixAddress<NumRows, NumCols>, DigitalCCSender,
31
NumRows, NumCols> {
32
public
:
59
CCButtonMatrix
(
OutputBankConfig<>
config,
const
PinList<NumRows>
&
rowPins
,
60
const
PinList<NumCols>
&
colPins
,
61
const
AddressMatrix<NumRows, NumCols>
&controllers,
62
MIDIChannelCable
channelCN,
63
const
DigitalCCSender
&
sender
= {})
64
:
MIDIButtonMatrix
<
MatrixAddress
<NumRows, NumCols>,
DigitalCCSender
,
65
NumRows, NumCols> {
66
{config, controllers, channelCN},
rowPins
,
colPins
,
sender
} {}
67
};
68
69
}
// namespace Bankable
70
71
END_CS_NAMESPACE
BankAddresses.hpp
MIDIButtonMatrix.hpp
AddressMatrix
Array2D< uint8_t, NumRows, NumCols > AddressMatrix
Definition
Def.hpp:30
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::MIDIButtonMatrix< MatrixAddress< NumRows, NumCols >, DigitalCCSender, NumRows, NumCols >::rowPins
const PinList< NumRows > rowPins
Definition
ButtonMatrix.hpp:88
Bankable::MIDIButtonMatrix< MatrixAddress< NumRows, NumCols >, DigitalCCSender, NumRows, NumCols >::colPins
const PinList< NumCols > colPins
Definition
ButtonMatrix.hpp:89
Bankable::CCButtonMatrix::CCButtonMatrix
CCButtonMatrix(OutputBankConfig<> config, const PinList< NumRows > &rowPins, const PinList< NumCols > &colPins, const AddressMatrix< NumRows, NumCols > &controllers, MIDIChannelCable channelCN, const DigitalCCSender &sender={})
Create a new Bankable CCButtonMatrix object with the given pins, controller numbers and channel.
Definition
Bankable/CCButtonMatrix.hpp:59
Bankable::MIDIButtonMatrix
MIDIButtonMatrix.
Definition
Bankable/Abstract/MIDIButtonMatrix.hpp:33
Bankable::MIDIButtonMatrix< MatrixAddress< NumRows, NumCols >, DigitalCCSender, NumRows, NumCols >::sender
DigitalCCSender sender
Definition
Bankable/Abstract/MIDIButtonMatrix.hpp:85
Bankable::MIDIButtonMatrix< MatrixAddress< NumRows, NumCols >, DigitalCCSender, NumRows, NumCols >::MIDIButtonMatrix
MIDIButtonMatrix(MatrixAddress< NumRows, NumCols > bankAddress, const PinList< NumRows > &rowPins, const PinList< NumCols > &colPins, const DigitalCCSender &sender)
Definition
Bankable/Abstract/MIDIButtonMatrix.hpp:55
Bankable::MatrixAddress
Definition
BankAddresses.hpp:77
DigitalCCSender
Class that sends MIDI control change messages signifying either "on" or "off".
Definition
DigitalCCSender.hpp:13
MIDIChannelCable
A class for saving a MIDI channel and cable number.
Definition
MIDIAddress.hpp:24
AH::PinList
Array< pin_t, N > PinList
An easy alias for arrays of pins.
Definition
Hardware-Types.hpp:100
Bankable
A namespace for MIDI elements that can be added to a Bank, to change their address or channel.
Definition
BankAddresses.hpp:7
OutputBankConfig
Definition
BankConfig.hpp:79
Generated by
1.17.0