Deluge Firmware 1.3.0
Build date: 2025.07.02
Loading...
Searching...
No Matches
PatchCableSet Class Referencefinal
Inheritance diagram for PatchCableSet:
Collaboration diagram for PatchCableSet:

Public Member Functions

 PatchCableSet (ParamCollectionSummary *summary)
void setupPatching (ModelStackWithParamCollection const *modelStack)
bool doesDestinationDescriptorHaveAnyCables (ParamDescriptor destinationParamDescriptor)
uint8_t getPatchCableIndex (PatchSource from, ParamDescriptor destinationParamDescriptor, ModelStackWithParamCollection const *modelStack=nullptr, bool createIfNotFound=false)
void deletePatchCable (ModelStackWithParamCollection const *modelStack, uint8_t c)
bool patchCableIsUsable (uint8_t c, ModelStackWithThreeMainThings const *modelStack)
int32_t getModifiedPatchCableAmount (int32_t c, int32_t p)
void removeAllPatchingToParam (ModelStackWithParamCollection *modelStack, uint8_t p)
bool isSourcePatchedToSomething (PatchSource s)
bool isSourcePatchedToSomethingManuallyCheckCables (PatchSource s)
bool doesParamHaveSomethingPatchedToIt (int32_t p)
void tickSamples (int32_t numSamples, ModelStackWithParamCollection *modelStack) override
 tick interpolation by a number of ticks
void tickTicks (int32_t numSamples, ModelStackWithParamCollection *modelStack) override
 tick interpolation by a number of ticks
void setPlayPos (uint32_t pos, ModelStackWithParamCollection *modelStack, bool reversed) override
void playbackHasEnded (ModelStackWithParamCollection *modelStack) override
void grabValuesFromPos (uint32_t pos, ModelStackWithParamCollection *modelStack) override
void generateRepeats (ModelStackWithParamCollection *modelStack, uint32_t oldLength, uint32_t newLength, bool shouldPingpong) override
void appendParamCollection (ModelStackWithParamCollection *modelStack, ModelStackWithParamCollection *otherModelStack, int32_t oldLength, int32_t reverseThisRepeatWithLength, bool pingpongingGenerally) override
void trimToLength (uint32_t newLength, ModelStackWithParamCollection *modelStack, Action *action, bool maySetupPatching) override
void shiftHorizontally (ModelStackWithParamCollection *modelStack, int32_t amount, int32_t effectiveLength) override
void processCurrentPos (ModelStackWithParamCollection *modelStack, int32_t ticksSkipped, bool reversed, bool didPingpong, bool mayInterpolate) override
void beenCloned (bool copyAutomation, int32_t reverseDirectionWithLength) override
ParamManagerForTimelinegetParamManager ()
void writePatchCablesToFile (Serializer &writer, bool writeAutomation)
void readPatchCablesFromFile (Deserializer &reader, int32_t readAutomationUpToPos)
void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack) override
void nudgeNonInterpolatingNodesAtPos (int32_t pos, int32_t offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithParamCollection *modelStack) override
void remotelySwapParamState (AutoParamState *state, ModelStackWithParamId *modelStack) override
AutoParamgetParam (ModelStackWithParamCollection const *modelStack, PatchSource s, ParamDescriptor destinationParamDescriptor, bool allowCreation=false)
ModelStackWithAutoParamgetAutoParamFromId (ModelStackWithParamId *modelStack, bool allowCreation=false) override
AutoParamgetParam (int32_t paramId)
void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow) override
void notifyPingpongOccurred (ModelStackWithParamCollection *modelStack) override
int32_t paramValueToKnobPos (int32_t paramValue, ModelStackWithAutoParam *modelStack) override
int32_t knobPosToParamValue (int32_t knobPos, ModelStackWithAutoParam *modelStack) override
bool isSourcePatchedToDestinationDescriptorVolumeInspecific (PatchSource s, ParamDescriptor destinationParamDescriptor)
bool isAnySourcePatchedToParamVolumeInspecific (ParamDescriptor destinationParamDescriptor)
void grabVelocityToLevelFromMIDIInput (LearnedMIDI *midiInput)
void grabVelocityToLevelFromMIDICable (MIDICable &cable)
PatchCablegetPatchCableFromVelocityToLevel ()
DestinationgetDestinationForParam (int32_t p)
deluge::modulation::params::Kind getParamKind () override
bool shouldParamIndicateMiddleValue (ModelStackWithParamId const *modelStack) override
Public Member Functions inherited from ParamCollection
 ParamCollection (int32_t newObjectSize, ParamCollectionSummary *summary)
virtual bool mayParamInterpolate (int32_t paramId)
virtual bool doesParamIdAllowAutomation (ModelStackWithParamId const *modelStack)

Static Public Member Functions

static int32_t getParamId (ParamDescriptor destinationParamDescriptor, PatchSource s)
static void dissectParamId (uint32_t paramId, ParamDescriptor *destinationParamDescriptor, PatchSource *s)

Public Attributes

uint32_t sourcesPatchedToAnything [2]
PatchCable patchCables [kMaxNumPatchCables]
uint8_t numUsablePatchCables
uint8_t numPatchCables
Destinationdestinations [2]
Public Attributes inherited from ParamCollection
const int32_t objectSize
int32_t ticksTilNextEvent

Private Member Functions

void swapCables (int32_t c1, int32_t c2)
void freeDestinationMemory (bool destructing)

Member Function Documentation

◆ appendParamCollection()

void PatchCableSet::appendParamCollection ( ModelStackWithParamCollection * modelStack,
ModelStackWithParamCollection * otherModelStack,
int32_t oldLength,
int32_t reverseThisRepeatWithLength,
bool pingpongingGenerally )
overridevirtual

Implements ParamCollection.

◆ beenCloned()

void PatchCableSet::beenCloned ( bool copyAutomation,
int32_t reverseDirectionWithLength )
overridevirtual

Implements ParamCollection.

◆ deleteAllAutomation()

void PatchCableSet::deleteAllAutomation ( Action * action,
ModelStackWithParamCollection * modelStack )
overridevirtual

Implements ParamCollection.

◆ generateRepeats()

void PatchCableSet::generateRepeats ( ModelStackWithParamCollection * modelStack,
uint32_t oldLength,
uint32_t newLength,
bool shouldPingpong )
overridevirtual

Implements ParamCollection.

◆ getAutoParamFromId()

ModelStackWithAutoParam * PatchCableSet::getAutoParamFromId ( ModelStackWithParamId * modelStack,
bool allowCreation = false )
overridevirtual

Implements ParamCollection.

◆ getParamKind()

deluge::modulation::params::Kind PatchCableSet::getParamKind ( )
inlineoverridevirtual

Implements ParamCollection.

◆ grabValuesFromPos()

void PatchCableSet::grabValuesFromPos ( uint32_t pos,
ModelStackWithParamCollection * modelStack )
overridevirtual

Implements ParamCollection.

◆ knobPosToParamValue()

int32_t PatchCableSet::knobPosToParamValue ( int32_t knobPos,
ModelStackWithAutoParam * modelStack )
overridevirtual

Reimplemented from ParamCollection.

◆ notifyParamModifiedInSomeWay()

void PatchCableSet::notifyParamModifiedInSomeWay ( ModelStackWithAutoParam const * modelStack,
int32_t oldValue,
bool automationChanged,
bool automatedBefore,
bool automatedNow )
overridevirtual

Reimplemented from ParamCollection.

◆ notifyPingpongOccurred()

void PatchCableSet::notifyPingpongOccurred ( ModelStackWithParamCollection * modelStack)
overridevirtual

Reimplemented from ParamCollection.

◆ nudgeNonInterpolatingNodesAtPos()

void PatchCableSet::nudgeNonInterpolatingNodesAtPos ( int32_t pos,
int32_t offset,
int32_t lengthBeforeLoop,
Action * action,
ModelStackWithParamCollection * modelStack )
overridevirtual

Implements ParamCollection.

◆ paramValueToKnobPos()

int32_t PatchCableSet::paramValueToKnobPos ( int32_t paramValue,
ModelStackWithAutoParam * modelStack )
overridevirtual

Reimplemented from ParamCollection.

◆ playbackHasEnded()

void PatchCableSet::playbackHasEnded ( ModelStackWithParamCollection * modelStack)
overridevirtual

Implements ParamCollection.

◆ processCurrentPos()

void PatchCableSet::processCurrentPos ( ModelStackWithParamCollection * modelStack,
int32_t ticksSkipped,
bool reversed,
bool didPingpong,
bool mayInterpolate )
overridevirtual

Implements ParamCollection.

◆ remotelySwapParamState()

void PatchCableSet::remotelySwapParamState ( AutoParamState * state,
ModelStackWithParamId * modelStack )
overridevirtual

Implements ParamCollection.

◆ setPlayPos()

void PatchCableSet::setPlayPos ( uint32_t pos,
ModelStackWithParamCollection * modelStack,
bool reversed )
overridevirtual

Reimplemented from ParamCollection.

◆ shiftHorizontally()

void PatchCableSet::shiftHorizontally ( ModelStackWithParamCollection * modelStack,
int32_t amount,
int32_t effectiveLength )
overridevirtual

Implements ParamCollection.

◆ shouldParamIndicateMiddleValue()

bool PatchCableSet::shouldParamIndicateMiddleValue ( ModelStackWithParamId const * modelStack)
inlineoverridevirtual

Reimplemented from ParamCollection.

◆ tickSamples()

void PatchCableSet::tickSamples ( int32_t numSamples,
ModelStackWithParamCollection * modelStack )
overridevirtual

tick interpolation by a number of ticks

Implements ParamCollection.

◆ tickTicks()

void PatchCableSet::tickTicks ( int32_t numSamples,
ModelStackWithParamCollection * modelStack )
inlineoverridevirtual

tick interpolation by a number of ticks

Implements ParamCollection.

◆ trimToLength()

void PatchCableSet::trimToLength ( uint32_t newLength,
ModelStackWithParamCollection * modelStack,
Action * action,
bool maySetupPatching )
overridevirtual

Implements ParamCollection.


The documentation for this class was generated from the following files:
  • src/deluge/modulation/patch/patch_cable_set.h
  • src/deluge/modulation/patch/patch_cable_set.cpp