This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
PCButton.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
7 
19 class PCButton : public MIDIButton<ProgramChangeSender> {
20  public:
36  const ProgramChangeSender &sender = {})
37  : MIDIButton(pin, address, sender) {}
38 };
39 
ProgramChangeSender.hpp
PCButton
A class of MIDIOutputElements that read the input of a momentary push button or switch,...
Definition: PCButton.hpp:19
pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Def.hpp:17
PCButton::PCButton
PCButton(pin_t pin, const MIDICNChannelAddress &address, const ProgramChangeSender &sender={})
Create a new PCButton object with the given pin, program number and channel.
Definition: PCButton.hpp:35
MIDIButton< ProgramChangeSender >::sender
ProgramChangeSender sender
Definition: Abstract/MIDIButton.hpp:55
MIDIButton
An abstract class for momentary push buttons that send MIDI events.
Definition: Abstract/MIDIButton.hpp:17
MIDIButton< ProgramChangeSender >::address
const MIDICNChannelAddress address
Definition: Abstract/MIDIButton.hpp:52
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
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
MIDIButton< ProgramChangeSender >::MIDIButton
MIDIButton(pin_t pin, const MIDICNChannelAddress &address, const ProgramChangeSender &sender)
Construct a new MIDIButton.
Definition: Abstract/MIDIButton.hpp:30
MIDIButton.hpp
ProgramChangeSender
Definition: ProgramChangeSender.hpp:7