Control Surface
main
MIDI Control Surface library for Arduino
Toggle main menu visibility
Loading...
Searching...
No Matches
src
MIDI_Senders
ProgramChangeSender.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Control_Surface/Control_Surface_Class.hpp
>
4
5
BEGIN_CS_NAMESPACE
6
12
class
ProgramChangeSender
{
13
public
:
15
void
sendOn
(
MIDIAddress
address) {
16
Control_Surface
.sendProgramChange(address);
17
}
18
19
void
sendOff
(
MIDIAddress
address) { (void)address; }
20
};
21
22
END_CS_NAMESPACE
Control_Surface
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
Definition
Control_Surface_Class.cpp:338
Control_Surface_Class.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
ProgramChangeSender
Class that sends MIDI program change messages.
Definition
ProgramChangeSender.hpp:12
ProgramChangeSender::sendOn
void sendOn(MIDIAddress address)
Sends a MIDI program change message for the given program.
Definition
ProgramChangeSender.hpp:15
ProgramChangeSender::sendOff
void sendOff(MIDIAddress address)
Doesn't do anything (you cannot "un-select" a program).
Definition
ProgramChangeSender.hpp:19
Generated by
1.17.0