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

#include <ParamSet.h>

Inheritance diagram for ExpressionParamSet:
Inheritance graph
Collaboration diagram for ExpressionParamSet:
Collaboration graph

Public Member Functions

 ExpressionParamSet (ParamCollectionSummary *summary, bool forDrum=false)
 
int getNumParams ()
 
void notifyParamModifiedInSomeWay (ModelStackWithAutoParam const *modelStack, int32_t oldValue, bool automationChanged, bool automatedBefore, bool automatedNow)
 
bool mayParamInterpolate (int paramId)
 
int32_t knobPosToParamValue (int knobPos, ModelStackWithAutoParam *modelStack)
 
int paramValueToKnobPos (int32_t paramValue, ModelStackWithAutoParam *modelStack)
 
bool writeToFile (bool mustWriteOpeningTagEndFirst=false)
 
void readFromFile (ParamCollectionSummary *summary, int32_t readAutomationUpToPos)
 
void moveRegionHorizontally (ModelStackWithParamCollection *modelStack, int32_t pos, int32_t length, int offset, int32_t lengthBeforeLoop, Action *action)
 
void clearValues (ModelStackWithParamCollection const *modelStack)
 
void cancelAllOverriding ()
 
void deleteAllAutomation (Action *action, ModelStackWithParamCollection *modelStack)
 
- Public Member Functions inherited from ParamSet
 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

AutoParam fakeParams [NUM_EXPRESSION_DIMENSIONS - 1]
 
uint8_t bendRanges [2]
 
- Public Attributes inherited from ParamSet
uint8_t topUintToRepParams
 
AutoParam params [1]
 
- Public Attributes inherited from ParamCollection
const int objectSize
 
int32_t ticksTilNextEvent
 

Constructor & Destructor Documentation

◆ ExpressionParamSet()

ExpressionParamSet::ExpressionParamSet ( ParamCollectionSummary summary,
bool  forDrum = false 
)

Member Function Documentation

◆ cancelAllOverriding()

void ExpressionParamSet::cancelAllOverriding ( )

◆ clearValues()

void ExpressionParamSet::clearValues ( ModelStackWithParamCollection const *  modelStack)

◆ deleteAllAutomation()

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

Reimplemented from ParamSet.

◆ getNumParams()

int ExpressionParamSet::getNumParams ( )
inlinevirtual

Implements ParamSet.

◆ knobPosToParamValue()

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

Reimplemented from ParamCollection.

◆ mayParamInterpolate()

bool ExpressionParamSet::mayParamInterpolate ( int  paramId)
inlinevirtual

Reimplemented from ParamCollection.

◆ moveRegionHorizontally()

void ExpressionParamSet::moveRegionHorizontally ( ModelStackWithParamCollection modelStack,
int32_t  pos,
int32_t  length,
int  offset,
int32_t  lengthBeforeLoop,
Action action 
)

◆ notifyParamModifiedInSomeWay()

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

Reimplemented from ParamSet.

◆ paramValueToKnobPos()

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

Reimplemented from ParamCollection.

◆ readFromFile()

void ExpressionParamSet::readFromFile ( ParamCollectionSummary summary,
int32_t  readAutomationUpToPos 
)

◆ writeToFile()

bool ExpressionParamSet::writeToFile ( bool  mustWriteOpeningTagEndFirst = false)

Member Data Documentation

◆ bendRanges

uint8_t ExpressionParamSet::bendRanges[2]

◆ fakeParams

AutoParam ExpressionParamSet::fakeParams[NUM_EXPRESSION_DIMENSIONS - 1]

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