Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DigitalCCSender Class Reference

#include <MIDI_Senders/DigitalCCSender.hpp>

Detailed Description

Class that sends MIDI control change messages signifying either "on" or "off".

Definition at line 13 of file DigitalCCSender.hpp.

+ Collaboration diagram for DigitalCCSender:

Public Member Functions

 DigitalCCSender (uint8_t onValue=0x7F, uint8_t offValue=0x00)
 
void sendOn (MIDIAddress address)
 Send a control change message to the given address, with onValue as value.
 
void sendOff (MIDIAddress address)
 Send a control change message to the given address, with offValue as value.
 
uint8_t getOnValue () const
 
void setOnValue (uint8_t onValue)
 
uint8_t getOffValue () const
 
void setOffValue (uint8_t offValue)
 

Private Attributes

uint8_t onValue
 
uint8_t offValue
 

Constructor & Destructor Documentation

◆ DigitalCCSender()

DigitalCCSender ( uint8_t onValue = 0x7F,
uint8_t offValue = 0x00 )
inline

Definition at line 15 of file DigitalCCSender.hpp.

Member Function Documentation

◆ sendOn()

void sendOn ( MIDIAddress address)
inline

Send a control change message to the given address, with onValue as value.

Definition at line 20 of file DigitalCCSender.hpp.

◆ sendOff()

void sendOff ( MIDIAddress address)
inline

Send a control change message to the given address, with offValue as value.

Definition at line 25 of file DigitalCCSender.hpp.

◆ getOnValue()

uint8_t getOnValue ( ) const
inline

Definition at line 29 of file DigitalCCSender.hpp.

◆ setOnValue()

void setOnValue ( uint8_t onValue)
inline

Definition at line 30 of file DigitalCCSender.hpp.

◆ getOffValue()

uint8_t getOffValue ( ) const
inline

Definition at line 31 of file DigitalCCSender.hpp.

◆ setOffValue()

void setOffValue ( uint8_t offValue)
inline

Definition at line 32 of file DigitalCCSender.hpp.

Member Data Documentation

◆ onValue

uint8_t onValue
private

Definition at line 35 of file DigitalCCSender.hpp.

◆ offValue

uint8_t offValue
private

Definition at line 36 of file DigitalCCSender.hpp.


The documentation for this class was generated from the following file: