Deluge Firmware 1.3.0
Build date: 2025.07.09
Loading...
Searching...
No Matches
MIDICableUSB Class Reference
Inheritance diagram for MIDICableUSB:
Collaboration diagram for MIDICableUSB:

Public Member Functions

 MIDICableUSB (uint8_t portNum=0)
bool wantsToOutputMIDIOnChannel (MIDIMessage message, int32_t filter) const override
 Used to decide if the given message should be output on a channel.
Error sendMessage (MIDIMessage message) override
 Send a MIDI message.
Error sendSysex (const uint8_t *data, int32_t len) override
size_t sendBufferSpace () const override
 Get the number of bytes available in the send buffer.
void checkIncomingSysex (uint8_t const *msg, int32_t ip, int32_t d)
void connectedNow (int32_t midiDeviceNum)
void sendMCMsNowIfNeeded ()
Public Member Functions inherited from MIDICable
virtual void writeToFlash (uint8_t *memory)=0
virtual char const * getDisplayName () const =0
void dataEntryMessageReceived (ModelStack *modelStack, int32_t channel, int32_t msb)
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)
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 ()

Public Attributes

uint8_t portNumber
uint8_t needsToSendMCMs = 0
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

Additional Inherited Members

virtual void writeReferenceAttributesToFile (Serializer &writer)=0
void writeDefinitionAttributesToFile (Serializer &writer)

Member Function Documentation

◆ sendBufferSpace()

size_t MIDICableUSB::sendBufferSpace ( ) const
nodiscardoverridevirtual

Get the number of bytes available in the send buffer.

Implements MIDICable.

◆ sendMessage()

Error MIDICableUSB::sendMessage ( MIDIMessage message)
nodiscardoverridevirtual

Send a MIDI message.

Implements MIDICable.

◆ sendSysex()

Error MIDICableUSB::sendSysex ( const uint8_t * data,
int32_t len )
nodiscardoverridevirtual

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.

Implements MIDICable.

◆ wantsToOutputMIDIOnChannel()

bool MIDICableUSB::wantsToOutputMIDIOnChannel ( MIDIMessage message,
int32_t filter ) const
nodiscardoverridevirtual

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

Reimplemented from MIDICable.


The documentation for this class was generated from the following files:
  • src/deluge/io/midi/cable_types/usb_common.h
  • src/deluge/io/midi/cable_types/usb_common.cpp