Control Surface pin-t-adl
MIDI Control Surface library for Arduino
DigitalCCSender.hpp
Go to the documentation of this file.
1#pragma once
2
4
6
14 public:
15 DigitalCCSender(uint8_t onValue = 0x7F, uint8_t offValue = 0x00)
17
20 void sendOn(MIDIAddress address) {
22 }
25 void sendOff(MIDIAddress address) {
27 }
28
29 uint8_t getOnValue() const { return this->onValue; }
30 void setOnValue(uint8_t onValue) { this->onValue = onValue; }
31 uint8_t getOffValue() const { return this->offValue; }
32 void setOffValue(uint8_t offValue) { this->offValue = offValue; }
33
34 private:
35 uint8_t onValue;
36 uint8_t offValue;
37};
38
Control_Surface_ & Control_Surface
A predefined instance of the Control Surface to use in the Arduino sketches.
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
Class that sends MIDI control change messages signifying either "on" or "off".
uint8_t getOnValue() const
void sendOn(MIDIAddress address)
Send a control change message to the given address, with onValue as value.
uint8_t getOffValue() const
void setOffValue(uint8_t offValue)
DigitalCCSender(uint8_t onValue=0x7F, uint8_t offValue=0x00)
void sendOff(MIDIAddress address)
Send a control change message to the given address, with offValue as value.
void setOnValue(uint8_t onValue)
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
void sendControlChange(MIDIAddress address, uint8_t value)
Send a MIDI Control Change event.
Definition: MIDI_Sender.ipp:54