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

#include <Def/MIDIAddress.hpp>

Detailed Description

A class for saving an offset to a MIDI address.

It can be added to a MIDIAddress.

Definition at line 109 of file 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
 

Constructor & Destructor Documentation

◆ RelativeMIDIAddress() [1/2]

constexpr RelativeMIDIAddress ( )
inlineconstexpr

Definition at line 113 of file MIDIAddress.hpp.

◆ RelativeMIDIAddress() [2/2]

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

Definition at line 114 of file MIDIAddress.hpp.

Member Function Documentation

◆ isValid()

constexpr bool isValid ( ) const
inlineconstexpr

Definition at line 122 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 129 of file MIDIAddress.hpp.


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