Control Surface
main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
src
MIDI_Outputs
NoteButtonLatched.hpp
Go to the documentation of this file.
1
/* ✔ */
2
3
#pragma once
4
5
#include <
MIDI_Outputs/Abstract/MIDIButtonLatched.hpp
>
6
#include <
MIDI_Senders/DigitalNoteSender.hpp
>
7
8
BEGIN_CS_NAMESPACE
9
22
class
NoteButtonLatched
:
public
MIDIButtonLatched
<DigitalNoteSender> {
23
public
:
38
NoteButtonLatched
(pin_t pin,
MIDIAddress
address
,
uint8_t
velocity = 0x7F)
39
:
MIDIButtonLatched
{
40
pin,
41
address
,
42
{velocity},
43
} {}
44
46
void
setVelocity
(
uint8_t
velocity) { this->sender.setVelocity(velocity); }
48
uint8_t
getVelocity
()
const
{
return
this->sender.getVelocity(); }
49
};
50
51
END_CS_NAMESPACE
MIDIButtonLatched.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
MIDIAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition
MIDIAddress.hpp:145
MIDIButtonLatched
A class for momentary buttons and switches that send MIDI events.
Definition
Abstract/MIDIButtonLatched.hpp:20
MIDIButtonLatched< DigitalNoteSender >::address
const MIDIAddress address
Definition
Abstract/MIDIButtonLatched.hpp:76
NoteButtonLatched
A class of MIDIOutputElements that read the input of a momentary push button or switch,...
Definition
NoteButtonLatched.hpp:22
NoteButtonLatched::setVelocity
void setVelocity(uint8_t velocity)
Set the velocity of the MIDI Note events.
Definition
NoteButtonLatched.hpp:46
NoteButtonLatched::getVelocity
uint8_t getVelocity() const
Get the velocity of the MIDI Note events.
Definition
NoteButtonLatched.hpp:48
NoteButtonLatched::NoteButtonLatched
NoteButtonLatched(pin_t pin, MIDIAddress address, uint8_t velocity=0x7F)
Create a new NoteButtonLatched object on the given pin and with address.
Definition
NoteButtonLatched.hpp:38
AH::Array
An array wrapper for easy copying, comparing, and iterating.
Definition
Array.hpp:32
Generated by
1.10.0