Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
MIDICable Class Referenceabstract

A MIDI cable connection. Stores all state specific to a given cable and its contained ports and channels. More...

#include <midi_device.h>

Inheritance diagram for MIDICable:
Collaboration diagram for MIDICable:

Public Member Functions

virtual void writeToFlash (uint8_t *memory)=0
 
virtual char const * getDisplayName ()=0
 
void dataEntryMessageReceived (ModelStack *modelStack, int32_t channel, int32_t msb)
 
virtual bool wantsToOutputMIDIOnChannel (MIDIMessage message, int32_t filter) const
 Used to decide if the given message should be output on a channel.
 
File IO functions
void writeReferenceToFile (Serializer &writer, char const *tagName="device")
 
void writeToFile (Serializer &writer, char const *tagName)
 
void readFromFile (Deserializer &reader)
 
bool worthWritingToFile ()
 
void writePorts (Serializer &writer)
 
Low-level Device I/O
virtual void sendMessage (MIDIMessage message)=0
 Send a MIDI message.
 
virtual void sendSysex (const uint8_t *data, int32_t len)=0
 
virtual size_t sendBufferSpace () const =0
 Get the number of bytes available in the send buffer.
 

High-level IO functions

MIDIPort ports [2]
 
uint8_t mpeZoneBendRanges [2][2]
 
MIDIInputChannel inputChannels [16]
 
int32_t defaultVelocityToLevel
 
uint8_t connectionFlags
 
bool sendClock
 
uint8_t incomingSysexBuffer [1024]
 
int32_t incomingSysexPos = 0
 
void sendAllMCMs ()
 Send MPE control messages.
 
void sendCC (int32_t channel, int32_t cc, int32_t value)
 
void sendRPN (int32_t channel, int32_t rpnMSB, int32_t rpnLSB, int32_t valueMSB)
 
bool hasDefaultVelocityToLevelSet ()
 
virtual void writeReferenceAttributesToFile (Serializer &writer)=0
 
void writeDefinitionAttributesToFile (Serializer &writer)
 

Detailed Description

A MIDI cable connection. Stores all state specific to a given cable and its contained ports and channels.

Member Function Documentation

◆ sendBufferSpace()

virtual size_t MIDICable::sendBufferSpace ( ) const
nodiscardpure virtual

Get the number of bytes available in the send buffer.

Implemented in MIDICableDINPorts, and MIDICableUSB.

◆ sendMessage()

virtual void MIDICable::sendMessage ( MIDIMessage message)
pure virtual

Send a MIDI message.

Implemented in MIDICableDINPorts, and MIDICableUSB.

◆ sendSysex()

virtual void MIDICable::sendSysex ( const uint8_t * data,
int32_t len )
pure virtual

Send a chunk of SYSEX data.

Parameters
dataData to send. Should include the 0xf0 and 0xf7 start/stop bytes.
lenNumber of bytes in data, including the start/stop bytes.

Implemented in MIDICableDINPorts, and MIDICableUSB.

◆ wantsToOutputMIDIOnChannel()

bool MIDICable::wantsToOutputMIDIOnChannel ( MIDIMessage message,
int32_t filter ) const
nodiscardvirtual

Used to decide if the given message should be output on a channel.

Reimplemented in MIDICableDINPorts, and MIDICableUSB.


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