Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Outputs
CCButtons.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MIDI_Outputs/Abstract/MIDIButtons.hpp
>
4
#include <
MIDI_Senders/DigitalCCSender.hpp
>
5
6
BEGIN_CS_NAMESPACE
7
23
template
<u
int
8_t NumButtons>
24
class
CCButtons
:
public
MIDIButtons
<DigitalCCSender, NumButtons> {
25
public
:
45
CCButtons
(
const
Array<AH::Button, NumButtons>
&
buttons
,
46
MIDIAddress
baseAddress
,
RelativeMIDIAddress
incrementAddress
,
47
const
DigitalCCSender
&
sender
= {})
48
:
MIDIButtons
<
DigitalCCSender
, NumButtons>(
buttons
,
baseAddress
,
49
incrementAddress
,
sender
) {}
50
};
51
52
END_CS_NAMESPACE
MIDIButtons.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
CCButtons::CCButtons
CCButtons(const Array< AH::Button, NumButtons > &buttons, MIDIAddress baseAddress, RelativeMIDIAddress incrementAddress, const DigitalCCSender &sender={})
Create a new CCButtons object with the given pins, the given controller number and channel.
Definition
CCButtons.hpp:45
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
MIDIButtons
An abstract class for momentary push buttons that send MIDI events.
Definition
Abstract/MIDIButtons.hpp:17
MIDIButtons< DigitalCCSender, NumButtons >::incrementAddress
RelativeMIDIAddress incrementAddress
Definition
Abstract/MIDIButtons.hpp:80
MIDIButtons< DigitalCCSender, NumButtons >::sender
DigitalCCSender sender
Definition
Abstract/MIDIButtons.hpp:83
MIDIButtons< DigitalCCSender, NumButtons >::buttons
Array< AH::Button, NumButtons > buttons
Definition
Abstract/MIDIButtons.hpp:78
MIDIButtons< DigitalCCSender, NumButtons >::baseAddress
MIDIAddress baseAddress
Definition
Abstract/MIDIButtons.hpp:79
MIDIButtons< DigitalCCSender, NumButtons >::MIDIButtons
MIDIButtons(const Array< AH::Button, NumButtons > &buttons, MIDIAddress baseAddress, RelativeMIDIAddress incrementAddress, const DigitalCCSender &sender)
Definition
Abstract/MIDIButtons.hpp:24
RelativeMIDIAddress
A class for saving an offset to a MIDI address.
Definition
MIDIAddress.hpp:113
AH::Array
An array wrapper for easy copying, comparing, and iterating.
Definition
Array.hpp:32
Generated by
1.17.0