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

#include <AutoParam.h>

Collaboration diagram for AutoParam:
Collaboration graph

Public Member Functions

 AutoParam ()
 
void init ()
 
void setCurrentValueInResponseToUserInput (int32_t value, ModelStackWithAutoParam const *modelStack, bool shouldLogAction=true, int32_t livePos=-1, bool mayDeleteNodesInLinearRun=true, bool isMPE=false)
 
int32_t processCurrentPos (ModelStackWithAutoParam const *modelStack, bool reversed, bool didPinpong, bool mayInterpolate=true, bool mustUpdateValueAtEveryNode=false)
 
void setValueForRegion (uint32_t pos, uint32_t length, int32_t value, ModelStackWithAutoParam const *modelStack, int actionType=ACTION_NOTE_EDIT)
 
void setValuePossiblyForRegion (int32_t value, ModelStackWithAutoParam const *modelStack, int32_t pos, int32_t length, bool mayDeleteNodesInLinearRun=true)
 
int32_t getValueAtPos (uint32_t pos, ModelStackWithAutoParam const *modelStack, bool reversed=false)
 
bool tickSamples (int numSamples)
 
void setPlayPos (uint32_t pos, ModelStackWithAutoParam const *modelStack, bool reversed)
 
bool grabValueFromPos (uint32_t pos, ModelStackWithAutoParam const *modelStack)
 
void generateRepeats (uint32_t oldLength, uint32_t newLength, bool shouldPingpong)
 
void cloneFrom (AutoParam *otherParam, bool copyAutomation)
 
int beenCloned (bool copyAutomation, int32_t reverseDirectionWithLength)
 
void copyOverridingFrom (AutoParam *otherParam)
 
void trimToLength (uint32_t newLength, Action *action, ModelStackWithAutoParam const *modelStack)
 
void deleteAutomation (Action *action, ModelStackWithAutoParam const *modelStack, bool shouldNotify=true)
 
void deleteAutomationBasicForSetup ()
 
void writeToFile (bool writeAutomation, int32_t *valueForOverride=NULL)
 
int readFromFile (int32_t readAutomationUpToPos)
 
bool containsSomething (uint32_t neutralValue=0)
 
void shiftValues (int32_t offset)
 
void shiftParamVolumeByDB (float offset)
 
void shiftHorizontally (int amount, int32_t effectiveLength)
 
void swapState (AutoParamState *state, ModelStackWithAutoParam const *modelStack)
 
void copy (int32_t startPos, int32_t endPos, CopiedParamAutomation *copiedParamAutomation, bool isPatchCable, ModelStackWithAutoParam const *modelStack)
 
void paste (int32_t startPos, int32_t endPos, float scaleFactor, ModelStackWithAutoParam const *modelStack, CopiedParamAutomation *copiedParamAutomation, bool isPatchCable)
 
int makeInterpolationGoodAgain (int32_t clipLength, int quantizationRShift)
 
void transposeCCValuesToChannelPressureValues ()
 
void deleteTime (int32_t startPos, int32_t lengthToDelete, ModelStackWithAutoParam *modelStack)
 
void insertTime (int32_t pos, int32_t lengthToInsert)
 
void appendParam (AutoParam *otherParam, int32_t oldLength, int32_t reverseThisRepeatWithLength, bool pingpongingGenerally)
 
void nudgeNonInterpolatingNodesAtPos (int32_t pos, int offset, int32_t lengthBeforeLoop, Action *action, ModelStackWithAutoParam const *modelStack)
 
void stealNodes (ModelStackWithAutoParam const *modelStack, int32_t pos, int32_t regionLength, int32_t loopLength, Action *action, StolenParamNodes *stolenNodeRecord=NULL)
 
void insertStolenNodes (ModelStackWithAutoParam const *modelStack, int32_t pos, int32_t regionLength, int32_t loopLength, Action *action, StolenParamNodes *stolenNodeRecord)
 
void moveRegionHorizontally (ModelStackWithAutoParam const *modelStack, int32_t pos, int32_t length, int offset, int32_t lengthBeforeLoop, Action *action)
 
void deleteNodesWithinRegion (ModelStackWithAutoParam const *modelStack, int32_t pos, int32_t length)
 
int setNodeAtPos (int32_t pos, int32_t value, bool shouldInterpolate)
 
int homogenizeRegion (ModelStackWithAutoParam const *modelStack, int32_t startPos, int length, int startValue, bool interpolateLeftNode, bool interpolateRightNode, int32_t effectiveLength, bool reversed, int32_t posAtWhichClipWillCut=2147483647)
 
int32_t getDistanceToNextNode (ModelStackWithAutoParam const *modelStack, int32_t pos, bool reversed)
 
void setCurrentValueWithNoReversionOrRecording (ModelStackWithAutoParam const *modelStack, int32_t value)
 
int32_t getCurrentValue ()
 
int32_t getValuePossiblyAtPos (int32_t pos, ModelStackWithAutoParam *modelStack)
 
void notifyPingpongOccurred ()
 
void setCurrentValueBasicForSetup (int32_t value)
 
bool isAutomated ()
 
void cancelOverriding ()
 

Static Public Member Functions

static bool containedSomethingBefore (bool wasAutomatedBefore, uint32_t valueBefore, uint32_t neutralValue=0)
 

Public Attributes

ParamNodeVector nodes
 
int32_t currentValue
 
int32_t valueIncrementPerHalfTick
 
uint32_t renewedOverridingAtTime
 

Constructor & Destructor Documentation

◆ AutoParam()

AutoParam::AutoParam ( )

Member Function Documentation

◆ appendParam()

void AutoParam::appendParam ( AutoParam otherParam,
int32_t  oldLength,
int32_t  reverseThisRepeatWithLength,
bool  pingpongingGenerally 
)

◆ beenCloned()

int AutoParam::beenCloned ( bool  copyAutomation,
int32_t  reverseDirectionWithLength 
)

◆ cancelOverriding()

void AutoParam::cancelOverriding ( )
inline

◆ cloneFrom()

void AutoParam::cloneFrom ( AutoParam otherParam,
bool  copyAutomation 
)

◆ containedSomethingBefore()

bool AutoParam::containedSomethingBefore ( bool  wasAutomatedBefore,
uint32_t  valueBefore,
uint32_t  neutralValue = 0 
)
static

◆ containsSomething()

bool AutoParam::containsSomething ( uint32_t  neutralValue = 0)

◆ copy()

void AutoParam::copy ( int32_t  startPos,
int32_t  endPos,
CopiedParamAutomation copiedParamAutomation,
bool  isPatchCable,
ModelStackWithAutoParam const *  modelStack 
)

◆ copyOverridingFrom()

void AutoParam::copyOverridingFrom ( AutoParam otherParam)

◆ deleteAutomation()

void AutoParam::deleteAutomation ( Action action,
ModelStackWithAutoParam const *  modelStack,
bool  shouldNotify = true 
)

◆ deleteAutomationBasicForSetup()

void AutoParam::deleteAutomationBasicForSetup ( )

◆ deleteNodesWithinRegion()

void AutoParam::deleteNodesWithinRegion ( ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
int32_t  length 
)

◆ deleteTime()

void AutoParam::deleteTime ( int32_t  startPos,
int32_t  lengthToDelete,
ModelStackWithAutoParam modelStack 
)

◆ generateRepeats()

void AutoParam::generateRepeats ( uint32_t  oldLength,
uint32_t  newLength,
bool  shouldPingpong 
)

◆ getCurrentValue()

int32_t AutoParam::getCurrentValue ( )
inline

◆ getDistanceToNextNode()

int32_t AutoParam::getDistanceToNextNode ( ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
bool  reversed 
)

◆ getValueAtPos()

int32_t AutoParam::getValueAtPos ( uint32_t  pos,
ModelStackWithAutoParam const *  modelStack,
bool  reversed = false 
)

◆ getValuePossiblyAtPos()

int32_t AutoParam::getValuePossiblyAtPos ( int32_t  pos,
ModelStackWithAutoParam modelStack 
)

◆ grabValueFromPos()

bool AutoParam::grabValueFromPos ( uint32_t  pos,
ModelStackWithAutoParam const *  modelStack 
)

◆ homogenizeRegion()

int AutoParam::homogenizeRegion ( ModelStackWithAutoParam const *  modelStack,
int32_t  startPos,
int  length,
int  startValue,
bool  interpolateLeftNode,
bool  interpolateRightNode,
int32_t  effectiveLength,
bool  reversed,
int32_t  posAtWhichClipWillCut = 2147483647 
)

◆ init()

void AutoParam::init ( )

◆ insertStolenNodes()

void AutoParam::insertStolenNodes ( ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
int32_t  regionLength,
int32_t  loopLength,
Action action,
StolenParamNodes stolenNodeRecord 
)

◆ insertTime()

void AutoParam::insertTime ( int32_t  pos,
int32_t  lengthToInsert 
)

◆ isAutomated()

bool AutoParam::isAutomated ( )
inline

◆ makeInterpolationGoodAgain()

int AutoParam::makeInterpolationGoodAgain ( int32_t  clipLength,
int  quantizationRShift 
)

◆ moveRegionHorizontally()

void AutoParam::moveRegionHorizontally ( ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
int32_t  length,
int  offset,
int32_t  lengthBeforeLoop,
Action action 
)

◆ notifyPingpongOccurred()

void AutoParam::notifyPingpongOccurred ( )

◆ nudgeNonInterpolatingNodesAtPos()

void AutoParam::nudgeNonInterpolatingNodesAtPos ( int32_t  pos,
int  offset,
int32_t  lengthBeforeLoop,
Action action,
ModelStackWithAutoParam const *  modelStack 
)

◆ paste()

void AutoParam::paste ( int32_t  startPos,
int32_t  endPos,
float  scaleFactor,
ModelStackWithAutoParam const *  modelStack,
CopiedParamAutomation copiedParamAutomation,
bool  isPatchCable 
)

◆ processCurrentPos()

int32_t AutoParam::processCurrentPos ( ModelStackWithAutoParam const *  modelStack,
bool  reversed,
bool  didPinpong,
bool  mayInterpolate = true,
bool  mustUpdateValueAtEveryNode = false 
)

◆ readFromFile()

int AutoParam::readFromFile ( int32_t  readAutomationUpToPos)

◆ setCurrentValueBasicForSetup()

void AutoParam::setCurrentValueBasicForSetup ( int32_t  value)
inline

◆ setCurrentValueInResponseToUserInput()

void AutoParam::setCurrentValueInResponseToUserInput ( int32_t  value,
ModelStackWithAutoParam const *  modelStack,
bool  shouldLogAction = true,
int32_t  livePos = -1,
bool  mayDeleteNodesInLinearRun = true,
bool  isMPE = false 
)

◆ setCurrentValueWithNoReversionOrRecording()

void AutoParam::setCurrentValueWithNoReversionOrRecording ( ModelStackWithAutoParam const *  modelStack,
int32_t  value 
)

◆ setNodeAtPos()

int AutoParam::setNodeAtPos ( int32_t  pos,
int32_t  value,
bool  shouldInterpolate 
)

◆ setPlayPos()

void AutoParam::setPlayPos ( uint32_t  pos,
ModelStackWithAutoParam const *  modelStack,
bool  reversed 
)

◆ setValueForRegion()

void AutoParam::setValueForRegion ( uint32_t  pos,
uint32_t  length,
int32_t  value,
ModelStackWithAutoParam const *  modelStack,
int  actionType = ACTION_NOTE_EDIT 
)

◆ setValuePossiblyForRegion()

void AutoParam::setValuePossiblyForRegion ( int32_t  value,
ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
int32_t  length,
bool  mayDeleteNodesInLinearRun = true 
)

◆ shiftHorizontally()

void AutoParam::shiftHorizontally ( int  amount,
int32_t  effectiveLength 
)

◆ shiftParamVolumeByDB()

void AutoParam::shiftParamVolumeByDB ( float  offset)

◆ shiftValues()

void AutoParam::shiftValues ( int32_t  offset)

◆ stealNodes()

void AutoParam::stealNodes ( ModelStackWithAutoParam const *  modelStack,
int32_t  pos,
int32_t  regionLength,
int32_t  loopLength,
Action action,
StolenParamNodes stolenNodeRecord = NULL 
)

◆ swapState()

void AutoParam::swapState ( AutoParamState state,
ModelStackWithAutoParam const *  modelStack 
)

◆ tickSamples()

bool AutoParam::tickSamples ( int  numSamples)

◆ transposeCCValuesToChannelPressureValues()

void AutoParam::transposeCCValuesToChannelPressureValues ( )

◆ trimToLength()

void AutoParam::trimToLength ( uint32_t  newLength,
Action action,
ModelStackWithAutoParam const *  modelStack 
)

◆ writeToFile()

void AutoParam::writeToFile ( bool  writeAutomation,
int32_t *  valueForOverride = NULL 
)

Member Data Documentation

◆ currentValue

int32_t AutoParam::currentValue

◆ nodes

ParamNodeVector AutoParam::nodes

◆ renewedOverridingAtTime

uint32_t AutoParam::renewedOverridingAtTime

◆ valueIncrementPerHalfTick

int32_t AutoParam::valueIncrementPerHalfTick

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