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

A class for saving an offset to a MIDI address. More...

#include <Def/MIDIAddress.hpp>

+ Collaboration diagram for RelativeMIDIAddress:

Public Member Functions

constexpr RelativeMIDIAddress ()
 
constexpr RelativeMIDIAddress (int deltaAddress, int deltaChannel=0, int deltaCableNumber=0)
 
constexpr bool isValid () const
 
RelativeMIDIAddressoperator+= (RelativeMIDIAddress that)
 Compound addition. More...
 

Private Attributes

RawMIDIAddress addresses
 

Detailed Description

A class for saving an offset to a MIDI address.

It can be added to a MIDIAddress.

Definition at line 64 of file MIDIAddress.hpp.

Constructor & Destructor Documentation

◆ RelativeMIDIAddress() [1/2]

constexpr RelativeMIDIAddress ( )
inlineconstexpr

Definition at line 68 of file MIDIAddress.hpp.

◆ RelativeMIDIAddress() [2/2]

constexpr RelativeMIDIAddress ( int  deltaAddress,
int  deltaChannel = 0,
int  deltaCableNumber = 0 
)
inlineconstexpr

Definition at line 69 of file MIDIAddress.hpp.

Member Function Documentation

◆ isValid()

constexpr bool isValid ( ) const
inlineconstexpr

Definition at line 77 of file MIDIAddress.hpp.

◆ operator+=()

RelativeMIDIAddress & operator+= ( RelativeMIDIAddress  that)

Compound addition.

Element-wise addition, result is valid if both operands were valid.

Definition at line 5 of file MIDIAddress.cpp.

Member Data Documentation

◆ addresses

RawMIDIAddress addresses
private

Definition at line 84 of file MIDIAddress.hpp.


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