This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
DigitalCCSender.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
6 
8  public:
9  DigitalCCSender(uint8_t onValue = 0x7F, uint8_t offValue = 0x00)
11 
12  void sendOn(MIDICNChannelAddress address) {
13  Control_Surface.MIDI().sendCC(address, onValue);
14  }
15  void sendOff(MIDICNChannelAddress address) {
16  Control_Surface.MIDI().sendCC(address, offValue);
17  }
18 
19  uint8_t getOnValue() const { return this->onValue; }
20  void setOnValue(uint8_t onValue) { this->onValue = onValue; }
21  uint8_t getOffValue() const { return this->offValue; }
22  void setOffValue(uint8_t offValue) { this->offValue = offValue; }
23 
24  private:
25  uint8_t onValue;
26  uint8_t offValue;
27 };
28 
DigitalCCSender::setOnValue
void setOnValue(uint8_t onValue)
Definition: DigitalCCSender.hpp:20
DigitalCCSender::DigitalCCSender
DigitalCCSender(uint8_t onValue=0x7F, uint8_t offValue=0x00)
Definition: DigitalCCSender.hpp:9
Control_Surface_::MIDI
MIDI_Interface & MIDI()
Get the MIDI interface of the Control Surface.
Definition: Control_Surface_Class.cpp:55
DigitalCCSender
Definition: DigitalCCSender.hpp:7
MIDI_Interface::sendCC
void sendCC(MIDICNChannelAddress address, uint8_t value)
Send a MIDI Control Change event.
Definition: MIDI_Interface.cpp:75
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
DigitalCCSender::getOnValue
uint8_t getOnValue() const
Definition: DigitalCCSender.hpp:19
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
DigitalCCSender::setOffValue
void setOffValue(uint8_t offValue)
Definition: DigitalCCSender.hpp:22
DigitalCCSender::sendOn
void sendOn(MIDICNChannelAddress address)
Definition: DigitalCCSender.hpp:12
END_CS_NAMESPACE
#define END_CS_NAMESPACE
Definition: NamespaceSettings.hpp:10
DigitalCCSender::onValue
uint8_t onValue
Definition: DigitalCCSender.hpp:25
DigitalCCSender::offValue
uint8_t offValue
Definition: DigitalCCSender.hpp:26
DigitalCCSender::getOffValue
uint8_t getOffValue() const
Definition: DigitalCCSender.hpp:21
DigitalCCSender::sendOff
void sendOff(MIDICNChannelAddress address)
Definition: DigitalCCSender.hpp:15