Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ParamSet Class Referenceabstract

#include <ParamSet.h>

Inheritance diagram for ParamSet:
Inheritance graph
Collaboration diagram for ParamSet:
Collaboration graph

Public Member Functions

 ParamSet (int newObjectSize, ParamCollectionSummary *summary)
 
int32_t getValue (int p)
 
int32_t getValueAtPos (int p, uint32_t pos, TimelineCounter *playPositionCounter)
 
void processCurrentPos (ModelStackWithParamCollection *modelStack, int ticksSkipped, bool reversed, bool didPingpong, bool mayInterpolate) final
 
void writeParamAsAttribute (char const *name, int p, bool writeAutomation, bool onlyIfContainsSomething=false, int32_t *valuesForOverride=NULL)
 
void readParam (ParamCollectionSummary *summary, int p, int32_t readAutomationUpToPos)
 
void tickSamples (int numSamples, ModelStackWithParamCollection *modelStack) final
 
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)
 
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, int offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithParamCollection *modelStack) final
 
void paramHasAutomationNow (ParamCollectionSummary *summary, int p)
 
void paramHasNoAutomationNow (ModelStackWithParamCollection const *modelStack, int p)
 
void shiftParamValues (int p, int32_t offset)
 
void shiftParamVolumeByDB (int p, float offset)
 
void shiftHorizontally (ModelStackWithParamCollection *modelStack, int32_t amount, int32_t effectiveLength) final
 
void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack)
 
void deleteAutomationForParamBasicForSetup (ModelStackWithParamCollection *modelStack, int 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
 
virtual int getNumParams ()=0
 
ModelStackWithAutoParamgetAutoParamFromId (ModelStackWithParamId *modelStack, bool allowCreation=true) final
 
void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow)
 
- 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)
 

Public Attributes

uint8_t topUintToRepParams
 
AutoParam params [1]
 
- Public Attributes inherited from ParamCollection
const int objectSize
 
int32_t ticksTilNextEvent
 

Constructor & Destructor Documentation

◆ ParamSet()

ParamSet::ParamSet ( int  newObjectSize,
ParamCollectionSummary summary 
)

Member Function Documentation

◆ appendParamCollection()

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

Implements ParamCollection.

◆ backUpAllAutomatedParamsToAction()

void ParamSet::backUpAllAutomatedParamsToAction ( Action action,
ModelStackWithParamCollection modelStack 
)

◆ beenCloned()

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

Implements ParamCollection.

◆ cloneFrom()

void ParamSet::cloneFrom ( ParamCollection otherParamSet,
bool  copyAutomation 
)

◆ copyOverridingFrom()

void ParamSet::copyOverridingFrom ( ParamSet otherParamSet)

◆ deleteAllAutomation()

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

Implements ParamCollection.

Reimplemented in ExpressionParamSet.

◆ deleteAutomationForParamBasicForSetup()

void ParamSet::deleteAutomationForParamBasicForSetup ( ModelStackWithParamCollection modelStack,
int  p 
)

◆ deleteTime()

void ParamSet::deleteTime ( ModelStackWithParamCollection modelStack,
int32_t  startPos,
int32_t  lengthToDelete 
)

◆ 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.

◆ getNumParams()

virtual int ParamSet::getNumParams ( )
pure virtual

◆ getValue()

int32_t ParamSet::getValue ( int  p)
inline

◆ getValueAtPos()

int32_t ParamSet::getValueAtPos ( int  p,
uint32_t  pos,
TimelineCounter playPositionCounter 
)

◆ grabValuesFromPos()

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

Implements ParamCollection.

◆ insertTime()

void ParamSet::insertTime ( ModelStackWithParamCollection modelStack,
int32_t  pos,
int32_t  lengthToInsert 
)

◆ notifyParamModifiedInSomeWay()

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

Reimplemented from ParamCollection.

Reimplemented in PatchedParamSet, and ExpressionParamSet.

◆ notifyPingpongOccurred()

void ParamSet::notifyPingpongOccurred ( ModelStackWithParamCollection modelStack)
finalvirtual

Reimplemented from ParamCollection.

◆ nudgeNonInterpolatingNodesAtPos()

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

Implements ParamCollection.

◆ paramHasAutomationNow()

void ParamSet::paramHasAutomationNow ( ParamCollectionSummary summary,
int  p 
)

◆ paramHasNoAutomationNow()

void ParamSet::paramHasNoAutomationNow ( ModelStackWithParamCollection const *  modelStack,
int  p 
)

◆ playbackHasEnded()

void ParamSet::playbackHasEnded ( ModelStackWithParamCollection modelStack)
finalvirtual

Implements ParamCollection.

◆ processCurrentPos()

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

Implements ParamCollection.

◆ readParam()

void ParamSet::readParam ( ParamCollectionSummary summary,
int  p,
int32_t  readAutomationUpToPos 
)

◆ 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.

◆ shiftParamValues()

void ParamSet::shiftParamValues ( int  p,
int32_t  offset 
)

◆ shiftParamVolumeByDB()

void ParamSet::shiftParamVolumeByDB ( int  p,
float  offset 
)

◆ tickSamples()

void ParamSet::tickSamples ( int  numSamples,
ModelStackWithParamCollection modelStack 
)
finalvirtual

Implements ParamCollection.

◆ trimToLength()

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

Implements ParamCollection.

◆ writeParamAsAttribute()

void ParamSet::writeParamAsAttribute ( char const *  name,
int  p,
bool  writeAutomation,
bool  onlyIfContainsSomething = false,
int32_t *  valuesForOverride = NULL 
)

Member Data Documentation

◆ params

AutoParam ParamSet::params[1]

◆ topUintToRepParams

uint8_t ParamSet::topUintToRepParams

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