Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Private Attributes | List of all members
DigitalNoteSender Class Reference

#include <MIDI_Senders/DigitalNoteSender.hpp>

Detailed Description

Class that sends MIDI note on and off messages.

Definition at line 12 of file DigitalNoteSender.hpp.

+ Collaboration diagram for DigitalNoteSender:

Public Member Functions

 DigitalNoteSender (uint8_t velocity=0x7F)
 
void sendOn (MIDIAddress address)
 Send a note on message to the given address with this object's velocity as velocity. More...
 
void sendOff (MIDIAddress address)
 Send a note off message to the given address with 0x7F as velocity. More...
 
void setVelocity (uint8_t velocity)
 
uint8_t getVelocity () const
 

Private Attributes

uint8_t velocity
 

Constructor & Destructor Documentation

◆ DigitalNoteSender()

DigitalNoteSender ( uint8_t  velocity = 0x7F)
inline

Definition at line 14 of file DigitalNoteSender.hpp.

Member Function Documentation

◆ sendOn()

void sendOn ( MIDIAddress  address)
inline

Send a note on message to the given address with this object's velocity as velocity.

Definition at line 17 of file DigitalNoteSender.hpp.

◆ sendOff()

void sendOff ( MIDIAddress  address)
inline

Send a note off message to the given address with 0x7F as velocity.

Definition at line 21 of file DigitalNoteSender.hpp.

◆ setVelocity()

void setVelocity ( uint8_t  velocity)
inline

Definition at line 25 of file DigitalNoteSender.hpp.

◆ getVelocity()

uint8_t getVelocity ( ) const
inline

Definition at line 26 of file DigitalNoteSender.hpp.

Member Data Documentation

◆ velocity

uint8_t velocity
private

Definition at line 29 of file DigitalNoteSender.hpp.


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