Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Outputs
NoteChordButton.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
MIDI_Outputs/Abstract/MIDIChordButton.hpp
>
4
#include <
MIDI_Senders/DigitalNoteSender.hpp
>
5
6
BEGIN_CS_NAMESPACE
7
19
class
NoteChordButton
:
public
MIDIChordButton
<DigitalNoteSender> {
20
public
:
40
template
<u
int
8_t N>
41
NoteChordButton
(
pin_t
pin,
MIDIAddress
address
,
Chord<N>
chord
,
42
uint8_t velocity = 0x7F)
43
:
MIDIChordButton
<
DigitalNoteSender
>(pin,
address
, std::move(
chord
),
44
{velocity}) {}
45
47
void
setVelocity
(uint8_t velocity) { this->
sender
.setVelocity(velocity); }
49
uint8_t
getVelocity
()
const
{
return
this->
sender
.getVelocity(); }
50
};
51
52
END_CS_NAMESPACE
MIDIChordButton.hpp
DigitalNoteSender.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
Chord
Definition
Chords.hpp:16
DigitalNoteSender
Class that sends MIDI note on and off messages.
Definition
DigitalNoteSender.hpp:12
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition
MIDIAddress.hpp:145
MIDIChordButton< DigitalNoteSender >::address
MIDIAddress address
Definition
Abstract/MIDIChordButton.hpp:84
MIDIChordButton< DigitalNoteSender >::sender
DigitalNoteSender sender
Definition
Abstract/MIDIChordButton.hpp:89
MIDIChordButton< DigitalNoteSender >::MIDIChordButton
MIDIChordButton(pin_t pin, MIDIAddress address, Chord< N > chord, const DigitalNoteSender &sender)
Definition
Abstract/MIDIChordButton.hpp:41
MIDIChordButton< DigitalNoteSender >::chord
std::unique_ptr< const IChord > chord
Definition
Abstract/MIDIChordButton.hpp:85
NoteChordButton::setVelocity
void setVelocity(uint8_t velocity)
Set the velocity of the MIDI Note events.
Definition
NoteChordButton.hpp:47
NoteChordButton::getVelocity
uint8_t getVelocity() const
Get the velocity of the MIDI Note events.
Definition
NoteChordButton.hpp:49
NoteChordButton::NoteChordButton
NoteChordButton(pin_t pin, MIDIAddress address, Chord< N > chord, uint8_t velocity=0x7F)
Create a new Bankable NoteChordButton object with the given pin, address and chord.
Definition
NoteChordButton.hpp:41
AH::ExtIO::pin_t
Type for storing pin numbers of Extended Input/Output elements.
Definition
Hardware-Types.hpp:25
Generated by
1.17.0