Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PatchCableSet Class Referencefinal

#include <PatchCableSet.h>

Inheritance diagram for PatchCableSet:
Inheritance graph
Collaboration diagram for PatchCableSet:
Collaboration graph

Public Member Functions

 PatchCableSet (ParamCollectionSummary *summary)
 
 ~PatchCableSet ()
 
void setupPatching (ModelStackWithParamCollection const *modelStack)
 
bool doesDestinationDescriptorHaveAnyCables (ParamDescriptor destinationParamDescriptor)
 
uint8_t getPatchCableIndex (uint8_t from, ParamDescriptor destinationParamDescriptor, ModelStackWithParamCollection const *modelStack=NULL, bool createIfNotFound=false)
 
void deletePatchCable (ModelStackWithParamCollection const *modelStack, uint8_t c)
 
bool patchCableIsUsable (uint8_t c, ModelStackWithThreeMainThings const *modelStack)
 
int32_t getModifiedPatchCableAmount (int c, int p)
 
void removeAllPatchingToParam (ModelStackWithParamCollection *modelStack, uint8_t p)
 
bool isSourcePatchedToSomething (int s)
 
bool isSourcePatchedToSomethingManuallyCheckCables (int s)
 
bool doesParamHaveSomethingPatchedToIt (int p)
 
void tickSamples (int numSamples, ModelStackWithParamCollection *modelStack)
 
void setPlayPos (uint32_t pos, ModelStackWithParamCollection *modelStack, bool reversed)
 
void playbackHasEnded (ModelStackWithParamCollection *modelStack)
 
void grabValuesFromPos (uint32_t pos, ModelStackWithParamCollection *modelStack)
 
void generateRepeats (ModelStackWithParamCollection *modelStack, uint32_t oldLength, uint32_t newLength, bool shouldPingpong)
 
void appendParamCollection (ModelStackWithParamCollection *modelStack, ModelStackWithParamCollection *otherModelStack, int32_t oldLength, int32_t reverseThisRepeatWithLength, bool pingpongingGenerally)
 
void trimToLength (uint32_t newLength, ModelStackWithParamCollection *modelStack, Action *action, bool maySetupPatching)
 
void shiftHorizontally (ModelStackWithParamCollection *modelStack, int32_t amount, int32_t effectiveLength)
 
void processCurrentPos (ModelStackWithParamCollection *modelStack, int ticksSkipped, bool reversed, bool didPingpong, bool mayInterpolate)
 
void beenCloned (bool copyAutomation, int32_t reverseDirectionWithLength)
 
ParamManagerForTimelinegetParamManager ()
 
void writePatchCablesToFile (bool writeAutomation)
 
void readPatchCablesFromFile (int32_t readAutomationUpToPos)
 
void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack)
 
void nudgeNonInterpolatingNodesAtPos (int32_t pos, int offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithParamCollection *modelStack)
 
void remotelySwapParamState (AutoParamState *state, ModelStackWithParamId *modelStack)
 
AutoParamgetParam (ModelStackWithParamCollection const *modelStack, int s, ParamDescriptor destinationParamDescriptor, bool allowCreation=false)
 
ModelStackWithAutoParamgetAutoParamFromId (ModelStackWithParamId *modelStack, bool allowCreation=false)
 
AutoParamgetParam (int paramId)
 
void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow)
 
void notifyPingpongOccurred (ModelStackWithParamCollection *modelStack)
 
int paramValueToKnobPos (int32_t paramValue, ModelStackWithAutoParam *modelStack)
 
int32_t knobPosToParamValue (int knobPos, ModelStackWithAutoParam *modelStack)
 
bool isSourcePatchedToDestinationDescriptorVolumeInspecific (int s, ParamDescriptor destinationParamDescriptor)
 
bool isAnySourcePatchedToParamVolumeInspecific (ParamDescriptor destinationParamDescriptor)
 
void grabVelocityToLevelFromMIDIInput (LearnedMIDI *midiInput)
 
void grabVelocityToLevelFromMIDIDeviceDefinitely (MIDIDevice *device)
 
PatchCablegetPatchCableFromVelocityToLevel ()
 
DestinationgetDestinationForParam (int p)
 
- Public Member Functions inherited from ParamCollection
 ParamCollection (int newObjectSize, ParamCollectionSummary *summary)
 
virtual ~ParamCollection ()
 
virtual void beenCloned (bool copyAutomation, int32_t reverseDirectionWithLength=0)=0
 
virtual void tickSamples (int numSamples, ModelStackWithParamCollection *modelStack)=0
 
virtual void setPlayPos (uint32_t pos, ModelStackWithParamCollection *modelStack, bool reversed)
 
virtual void playbackHasEnded (ModelStackWithParamCollection *modelStack)=0
 
virtual void grabValuesFromPos (uint32_t pos, ModelStackWithParamCollection *modelStack)=0
 
virtual void generateRepeats (ModelStackWithParamCollection *modelStack, uint32_t oldLength, uint32_t newLength, bool shouldPingpong)=0
 
virtual void appendParamCollection (ModelStackWithParamCollection *modelStack, ModelStackWithParamCollection *otherModelStack, int32_t oldLength, int32_t reverseThisRepeatWithLength, bool pingpongingGenerally)=0
 
virtual void trimToLength (uint32_t newLength, ModelStackWithParamCollection *modelStack, Action *action, bool maySetupPatching)=0
 
virtual void shiftHorizontally (ModelStackWithParamCollection *modelStack, int32_t amount, int32_t effectiveLength)=0
 
virtual void processCurrentPos (ModelStackWithParamCollection *modelStack, int ticksSinceLast, bool reversed, bool didPingpong, bool mayInterpolate)=0
 
virtual void remotelySwapParamState (AutoParamState *state, ModelStackWithParamId *modelStack)=0
 
virtual void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack)=0
 
virtual void nudgeNonInterpolatingNodesAtPos (int32_t pos, int offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithParamCollection *modelStack)=0
 
virtual void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow)
 
virtual ModelStackWithAutoParamgetAutoParamFromId (ModelStackWithParamId *modelStack, bool allowCreation=false)=0
 
virtual bool mayParamInterpolate (int paramId)
 
virtual bool shouldParamIndicateMiddleValue (ModelStackWithParamId const *modelStack)
 
virtual bool doesParamIdAllowAutomation (ModelStackWithParamId const *modelStack)
 
virtual int paramValueToKnobPos (int32_t paramValue, ModelStackWithAutoParam *modelStack)
 
virtual int32_t knobPosToParamValue (int knobPos, ModelStackWithAutoParam *modelStack)
 
virtual void notifyPingpongOccurred (ModelStackWithParamCollection *modelStack)
 

Static Public Member Functions

static int getParamId (ParamDescriptor destinationParamDescriptor, int s)
 

Public Attributes

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

Constructor & Destructor Documentation

◆ PatchCableSet()

PatchCableSet::PatchCableSet ( ParamCollectionSummary summary)

◆ ~PatchCableSet()

PatchCableSet::~PatchCableSet ( )

Member Function Documentation

◆ appendParamCollection()

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

Implements ParamCollection.

◆ beenCloned()

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

Implements ParamCollection.

◆ deleteAllAutomation()

void PatchCableSet::deleteAllAutomation ( Action action,
ModelStackWithParamCollection modelStack 
)
virtual

Implements ParamCollection.

◆ deletePatchCable()

void PatchCableSet::deletePatchCable ( ModelStackWithParamCollection const *  modelStack,
uint8_t  c 
)

◆ doesDestinationDescriptorHaveAnyCables()

bool PatchCableSet::doesDestinationDescriptorHaveAnyCables ( ParamDescriptor  destinationParamDescriptor)

◆ doesParamHaveSomethingPatchedToIt()

bool PatchCableSet::doesParamHaveSomethingPatchedToIt ( int  p)

◆ generateRepeats()

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

Implements ParamCollection.

◆ getAutoParamFromId()

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

Implements ParamCollection.

◆ getDestinationForParam()

Destination * PatchCableSet::getDestinationForParam ( int  p)

◆ getModifiedPatchCableAmount()

int32_t PatchCableSet::getModifiedPatchCableAmount ( int  c,
int  p 
)

◆ getParam() [1/2]

AutoParam * PatchCableSet::getParam ( int  paramId)

◆ getParam() [2/2]

AutoParam * PatchCableSet::getParam ( ModelStackWithParamCollection const *  modelStack,
int  s,
ParamDescriptor  destinationParamDescriptor,
bool  allowCreation = false 
)

◆ getParamId()

int PatchCableSet::getParamId ( ParamDescriptor  destinationParamDescriptor,
int  s 
)
static

◆ getParamManager()

ParamManagerForTimeline * PatchCableSet::getParamManager ( )

◆ getPatchCableFromVelocityToLevel()

PatchCable * PatchCableSet::getPatchCableFromVelocityToLevel ( )

◆ getPatchCableIndex()

uint8_t PatchCableSet::getPatchCableIndex ( uint8_t  from,
ParamDescriptor  destinationParamDescriptor,
ModelStackWithParamCollection const *  modelStack = NULL,
bool  createIfNotFound = false 
)

◆ grabValuesFromPos()

void PatchCableSet::grabValuesFromPos ( uint32_t  pos,
ModelStackWithParamCollection modelStack 
)
virtual

Implements ParamCollection.

◆ grabVelocityToLevelFromMIDIDeviceDefinitely()

void PatchCableSet::grabVelocityToLevelFromMIDIDeviceDefinitely ( MIDIDevice device)

◆ grabVelocityToLevelFromMIDIInput()

void PatchCableSet::grabVelocityToLevelFromMIDIInput ( LearnedMIDI midiInput)

◆ isAnySourcePatchedToParamVolumeInspecific()

bool PatchCableSet::isAnySourcePatchedToParamVolumeInspecific ( ParamDescriptor  destinationParamDescriptor)

◆ isSourcePatchedToDestinationDescriptorVolumeInspecific()

bool PatchCableSet::isSourcePatchedToDestinationDescriptorVolumeInspecific ( int  s,
ParamDescriptor  destinationParamDescriptor 
)

◆ isSourcePatchedToSomething()

bool PatchCableSet::isSourcePatchedToSomething ( int  s)

◆ isSourcePatchedToSomethingManuallyCheckCables()

bool PatchCableSet::isSourcePatchedToSomethingManuallyCheckCables ( int  s)

◆ knobPosToParamValue()

int32_t PatchCableSet::knobPosToParamValue ( int  knobPos,
ModelStackWithAutoParam modelStack 
)
virtual

Reimplemented from ParamCollection.

◆ notifyParamModifiedInSomeWay()

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

Reimplemented from ParamCollection.

◆ notifyPingpongOccurred()

void PatchCableSet::notifyPingpongOccurred ( ModelStackWithParamCollection modelStack)
virtual

Reimplemented from ParamCollection.

◆ nudgeNonInterpolatingNodesAtPos()

void PatchCableSet::nudgeNonInterpolatingNodesAtPos ( int32_t  pos,
int  offset,
int32_t  lengthBeforeLoop,
Action action,
ModelStackWithParamCollection modelStack 
)
virtual

Implements ParamCollection.

◆ paramValueToKnobPos()

int PatchCableSet::paramValueToKnobPos ( int32_t  paramValue,
ModelStackWithAutoParam modelStack 
)
virtual

Reimplemented from ParamCollection.

◆ patchCableIsUsable()

bool PatchCableSet::patchCableIsUsable ( uint8_t  c,
ModelStackWithThreeMainThings const *  modelStack 
)

◆ playbackHasEnded()

void PatchCableSet::playbackHasEnded ( ModelStackWithParamCollection modelStack)
virtual

Implements ParamCollection.

◆ processCurrentPos()

void PatchCableSet::processCurrentPos ( ModelStackWithParamCollection modelStack,
int  ticksSkipped,
bool  reversed,
bool  didPingpong,
bool  mayInterpolate 
)
virtual

Implements ParamCollection.

◆ readPatchCablesFromFile()

void PatchCableSet::readPatchCablesFromFile ( int32_t  readAutomationUpToPos)

◆ remotelySwapParamState()

void PatchCableSet::remotelySwapParamState ( AutoParamState state,
ModelStackWithParamId modelStack 
)
virtual

Implements ParamCollection.

◆ removeAllPatchingToParam()

void PatchCableSet::removeAllPatchingToParam ( ModelStackWithParamCollection modelStack,
uint8_t  p 
)

◆ setPlayPos()

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

Reimplemented from ParamCollection.

◆ setupPatching()

void PatchCableSet::setupPatching ( ModelStackWithParamCollection const *  modelStack)

◆ shiftHorizontally()

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

Implements ParamCollection.

◆ tickSamples()

void PatchCableSet::tickSamples ( int  numSamples,
ModelStackWithParamCollection modelStack 
)
virtual

Implements ParamCollection.

◆ trimToLength()

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

Implements ParamCollection.

◆ writePatchCablesToFile()

void PatchCableSet::writePatchCablesToFile ( bool  writeAutomation)

Member Data Documentation

◆ destinations

Destination* PatchCableSet::destinations[2]

◆ numPatchCables

uint8_t PatchCableSet::numPatchCables

◆ numUsablePatchCables

uint8_t PatchCableSet::numUsablePatchCables

◆ patchCables

PatchCable PatchCableSet::patchCables[MAX_NUM_PATCH_CABLES]

◆ sourcesPatchedToAnything

uint32_t PatchCableSet::sourcesPatchedToAnything[2]

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