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

Public Member Functions

 ParamSet (int32_t newObjectSize, ParamCollectionSummary *summary)
 
int32_t getValue (int32_t p)
 
int32_t getValueAtPos (int32_t p, uint32_t pos, TimelineCounter *playPositionCounter)
 
void processCurrentPos (ModelStackWithParamCollection *modelStack, int32_t ticksSkipped, bool reversed, bool didPingpong, bool mayInterpolate) final
 
void writeParamAsAttribute (Serializer &writer, char const *name, int32_t p, bool writeAutomation, bool onlyIfContainsSomething=false, int32_t *valuesForOverride=nullptr)
 
void readParam (Deserializer &reader, ParamCollectionSummary *summary, int32_t p, int32_t readAutomationUpToPos)
 
void tickSamples (int32_t numSamples, ModelStackWithParamCollection *modelStack) final
 tick interpolation by a number of ticks
 
void tickTicks (int32_t numTicks, ModelStackWithParamCollection *modelStack) final
 tick interpolation by a number of ticks
 
void setPlayPos (uint32_t pos, ModelStackWithParamCollection *modelStack, bool reversed) final
 
void playbackHasEnded (ModelStackWithParamCollection *modelStack) final
 
void grabValuesFromPos (uint32_t pos, ModelStackWithParamCollection *modelStack) final
 
void generateRepeats (ModelStackWithParamCollection *modelStack, uint32_t oldLength, uint32_t newLength, bool shouldPingpong) final
 
void appendParamCollection (ModelStackWithParamCollection *modelStack, ModelStackWithParamCollection *otherModelStack, int32_t oldLength, int32_t reverseThisRepeatWithLength, bool pingpongingGenerally) final
 
void beenCloned (bool copyAutomation, int32_t reverseDirectionWithLength) override
 
void cloneFrom (ParamCollection *otherParamSet, bool copyAutomation)
 
void copyOverridingFrom (ParamSet *otherParamSet)
 
void trimToLength (uint32_t newLength, ModelStackWithParamCollection *modelStack, Action *action, bool maySetupPatching) final
 
void nudgeNonInterpolatingNodesAtPos (int32_t pos, int32_t offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithParamCollection *modelStack) final
 
void paramHasAutomationNow (ParamCollectionSummary *summary, int32_t p)
 
void paramHasNoAutomationNow (ModelStackWithParamCollection const *modelStack, int32_t p)
 
void shiftParamValues (int32_t p, int32_t offset)
 
void shiftParamVolumeByDB (int32_t p, float offset)
 
void shiftHorizontally (ModelStackWithParamCollection *modelStack, int32_t amount, int32_t effectiveLength) final
 
void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack) override
 
void deleteAutomationForParamBasicForSetup (ModelStackWithParamCollection *modelStack, int32_t p)
 
void insertTime (ModelStackWithParamCollection *modelStack, int32_t pos, int32_t lengthToInsert)
 
void deleteTime (ModelStackWithParamCollection *modelStack, int32_t startPos, int32_t lengthToDelete)
 
void backUpAllAutomatedParamsToAction (Action *action, ModelStackWithParamCollection *modelStack)
 
void notifyPingpongOccurred (ModelStackWithParamCollection *modelStack) final
 
void remotelySwapParamState (AutoParamState *state, ModelStackWithParamId *modelStack) final
 
int32_t getNumParams ()
 
ModelStackWithAutoParamgetAutoParamFromId (ModelStackWithParamId *modelStack, bool allowCreation=true) final
 
void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow) override
 
- Public Member Functions inherited from ParamCollection
 ParamCollection (int32_t newObjectSize, ParamCollectionSummary *summary)
 
virtual bool mayParamInterpolate (int32_t paramId)
 
virtual bool shouldParamIndicateMiddleValue (ModelStackWithParamId const *modelStack)
 
virtual bool doesParamIdAllowAutomation (ModelStackWithParamId const *modelStack)
 
virtual int32_t paramValueToKnobPos (int32_t paramValue, ModelStackWithAutoParam *modelStack)
 
virtual int32_t knobPosToParamValue (int32_t knobPos, ModelStackWithAutoParam *modelStack)
 
virtual deluge::modulation::params::Kind getParamKind ()=0
 

Public Attributes

AutoParamparams
 
uint8_t topUintToRepParams
 
- Public Attributes inherited from ParamCollection
const int32_t objectSize
 
int32_t ticksTilNextEvent
 

Protected Attributes

int32_t numParams_
 Number of parameters in the params array.
 

Private Member Functions

void backUpParamToAction (int32_t p, Action *action, ModelStackWithParamCollection *modelStack)
 
void checkWhetherParamHasInterpolationNow (ModelStackWithParamCollection const *modelStack, int32_t p)
 

Member Function Documentation

◆ appendParamCollection()

void ParamSet::appendParamCollection ( ModelStackWithParamCollection * modelStack,
ModelStackWithParamCollection * otherModelStack,
int32_t oldLength,
int32_t reverseThisRepeatWithLength,
bool pingpongingGenerally )
finalvirtual

Implements ParamCollection.

◆ beenCloned()

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

Implements ParamCollection.

◆ deleteAllAutomation()

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

Implements ParamCollection.

◆ generateRepeats()

void ParamSet::generateRepeats ( ModelStackWithParamCollection * modelStack,
uint32_t oldLength,
uint32_t newLength,
bool shouldPingpong )
finalvirtual

Implements ParamCollection.

◆ getAutoParamFromId()

ModelStackWithAutoParam * ParamSet::getAutoParamFromId ( ModelStackWithParamId * modelStack,
bool allowCreation = true )
finalvirtual

Implements ParamCollection.

◆ grabValuesFromPos()

void ParamSet::grabValuesFromPos ( uint32_t pos,
ModelStackWithParamCollection * modelStack )
finalvirtual

Implements ParamCollection.

◆ notifyParamModifiedInSomeWay()

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

Reimplemented from ParamCollection.

◆ notifyPingpongOccurred()

void ParamSet::notifyPingpongOccurred ( ModelStackWithParamCollection * modelStack)
finalvirtual

Reimplemented from ParamCollection.

◆ nudgeNonInterpolatingNodesAtPos()

void ParamSet::nudgeNonInterpolatingNodesAtPos ( int32_t pos,
int32_t offset,
int32_t lengthBeforeLoop,
Action * action,
ModelStackWithParamCollection * modelStack )
finalvirtual

Implements ParamCollection.

◆ playbackHasEnded()

void ParamSet::playbackHasEnded ( ModelStackWithParamCollection * modelStack)
finalvirtual

Implements ParamCollection.

◆ processCurrentPos()

void ParamSet::processCurrentPos ( ModelStackWithParamCollection * modelStack,
int32_t ticksSkipped,
bool reversed,
bool didPingpong,
bool mayInterpolate )
finalvirtual

Implements ParamCollection.

◆ remotelySwapParamState()

void ParamSet::remotelySwapParamState ( AutoParamState * state,
ModelStackWithParamId * modelStack )
finalvirtual

Implements ParamCollection.

◆ setPlayPos()

void ParamSet::setPlayPos ( uint32_t pos,
ModelStackWithParamCollection * modelStack,
bool reversed )
finalvirtual

Reimplemented from ParamCollection.

◆ shiftHorizontally()

void ParamSet::shiftHorizontally ( ModelStackWithParamCollection * modelStack,
int32_t amount,
int32_t effectiveLength )
finalvirtual

Implements ParamCollection.

◆ tickSamples()

void ParamSet::tickSamples ( int32_t numSamples,
ModelStackWithParamCollection * modelStack )
finalvirtual

tick interpolation by a number of ticks

Implements ParamCollection.

◆ tickTicks()

void ParamSet::tickTicks ( int32_t numSamples,
ModelStackWithParamCollection * modelStack )
finalvirtual

tick interpolation by a number of ticks

Implements ParamCollection.

◆ trimToLength()

void ParamSet::trimToLength ( uint32_t newLength,
ModelStackWithParamCollection * modelStack,
Action * action,
bool maySetupPatching )
finalvirtual

Implements ParamCollection.


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