This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
ProgramChangeSender.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
8  public:
9  void sendOn(MIDICNChannelAddress address) {
10  Control_Surface.MIDI().sendPC(address);
11  }
12  void sendOff(MIDICNChannelAddress address) {
13  (void) address;
14  }
15 };
16 
ProgramChangeSender::sendOn
void sendOn(MIDICNChannelAddress address)
Definition: ProgramChangeSender.hpp:9
ProgramChangeSender::sendOff
void sendOff(MIDICNChannelAddress address)
Definition: ProgramChangeSender.hpp:12
Control_Surface_::MIDI
MIDI_Interface & MIDI()
Get the MIDI interface of the Control Surface.
Definition: Control_Surface_Class.cpp:55
Control_Surface_Class.hpp
BEGIN_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Definition: NamespaceSettings.hpp:9
MIDICNChannelAddress
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
Definition: MIDICNChannelAddress.hpp:82
Control_Surface
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
Definition: Control_Surface_Class.cpp:171
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
ProgramChangeSender
Definition: ProgramChangeSender.hpp:7
MIDI_Interface::sendPC
void sendPC(MIDICNChannelAddress address)
Send a MIDI Program Change event.
Definition: MIDI_Interface.cpp:85