Deluge Firmware 1.3.0
Build date: 2025.04.16
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.
 
void sendMessage (MIDIMessage message) override
 Send a MIDI message.
 
void 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 connectedNow (int32_t midiDeviceNum)
 
void sendMCMsNowIfNeeded ()
 
- Public Member Functions inherited from MIDICable
virtual void writeToFlash (uint8_t *memory)=0
 
virtual char const * getDisplayName ()=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 needsToSendMCMs
 
uint8_t portNumber
 
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
overridevirtual

Get the number of bytes available in the send buffer.

Implements MIDICable.

◆ sendMessage()

void MIDICableUSB::sendMessage ( MIDIMessage message)
overridevirtual

Send a MIDI message.

Implements MIDICable.

◆ sendSysex()

void MIDICableUSB::sendSysex ( const uint8_t * data,
int32_t len )
overridevirtual

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: