Deluge Firmware
|
#include <AutoParam.h>
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 |
AutoParam::AutoParam | ( | ) |
void AutoParam::appendParam | ( | AutoParam * | otherParam, |
int32_t | oldLength, | ||
int32_t | reverseThisRepeatWithLength, | ||
bool | pingpongingGenerally | ||
) |
int AutoParam::beenCloned | ( | bool | copyAutomation, |
int32_t | reverseDirectionWithLength | ||
) |
|
inline |
void AutoParam::cloneFrom | ( | AutoParam * | otherParam, |
bool | copyAutomation | ||
) |
|
static |
bool AutoParam::containsSomething | ( | uint32_t | neutralValue = 0 | ) |
void AutoParam::copy | ( | int32_t | startPos, |
int32_t | endPos, | ||
CopiedParamAutomation * | copiedParamAutomation, | ||
bool | isPatchCable, | ||
ModelStackWithAutoParam const * | modelStack | ||
) |
void AutoParam::copyOverridingFrom | ( | AutoParam * | otherParam | ) |
void AutoParam::deleteAutomation | ( | Action * | action, |
ModelStackWithAutoParam const * | modelStack, | ||
bool | shouldNotify = true |
||
) |
void AutoParam::deleteAutomationBasicForSetup | ( | ) |
void AutoParam::deleteNodesWithinRegion | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | pos, | ||
int32_t | length | ||
) |
void AutoParam::deleteTime | ( | int32_t | startPos, |
int32_t | lengthToDelete, | ||
ModelStackWithAutoParam * | modelStack | ||
) |
void AutoParam::generateRepeats | ( | uint32_t | oldLength, |
uint32_t | newLength, | ||
bool | shouldPingpong | ||
) |
|
inline |
int32_t AutoParam::getDistanceToNextNode | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | pos, | ||
bool | reversed | ||
) |
int32_t AutoParam::getValueAtPos | ( | uint32_t | pos, |
ModelStackWithAutoParam const * | modelStack, | ||
bool | reversed = false |
||
) |
int32_t AutoParam::getValuePossiblyAtPos | ( | int32_t | pos, |
ModelStackWithAutoParam * | modelStack | ||
) |
bool AutoParam::grabValueFromPos | ( | uint32_t | pos, |
ModelStackWithAutoParam const * | modelStack | ||
) |
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 |
||
) |
void AutoParam::init | ( | ) |
void AutoParam::insertStolenNodes | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | pos, | ||
int32_t | regionLength, | ||
int32_t | loopLength, | ||
Action * | action, | ||
StolenParamNodes * | stolenNodeRecord | ||
) |
void AutoParam::insertTime | ( | int32_t | pos, |
int32_t | lengthToInsert | ||
) |
|
inline |
int AutoParam::makeInterpolationGoodAgain | ( | int32_t | clipLength, |
int | quantizationRShift | ||
) |
void AutoParam::moveRegionHorizontally | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | pos, | ||
int32_t | length, | ||
int | offset, | ||
int32_t | lengthBeforeLoop, | ||
Action * | action | ||
) |
void AutoParam::notifyPingpongOccurred | ( | ) |
void AutoParam::nudgeNonInterpolatingNodesAtPos | ( | int32_t | pos, |
int | offset, | ||
int32_t | lengthBeforeLoop, | ||
Action * | action, | ||
ModelStackWithAutoParam const * | modelStack | ||
) |
void AutoParam::paste | ( | int32_t | startPos, |
int32_t | endPos, | ||
float | scaleFactor, | ||
ModelStackWithAutoParam const * | modelStack, | ||
CopiedParamAutomation * | copiedParamAutomation, | ||
bool | isPatchCable | ||
) |
int32_t AutoParam::processCurrentPos | ( | ModelStackWithAutoParam const * | modelStack, |
bool | reversed, | ||
bool | didPinpong, | ||
bool | mayInterpolate = true , |
||
bool | mustUpdateValueAtEveryNode = false |
||
) |
int AutoParam::readFromFile | ( | int32_t | readAutomationUpToPos | ) |
|
inline |
void AutoParam::setCurrentValueInResponseToUserInput | ( | int32_t | value, |
ModelStackWithAutoParam const * | modelStack, | ||
bool | shouldLogAction = true , |
||
int32_t | livePos = -1 , |
||
bool | mayDeleteNodesInLinearRun = true , |
||
bool | isMPE = false |
||
) |
void AutoParam::setCurrentValueWithNoReversionOrRecording | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | value | ||
) |
int AutoParam::setNodeAtPos | ( | int32_t | pos, |
int32_t | value, | ||
bool | shouldInterpolate | ||
) |
void AutoParam::setPlayPos | ( | uint32_t | pos, |
ModelStackWithAutoParam const * | modelStack, | ||
bool | reversed | ||
) |
void AutoParam::setValueForRegion | ( | uint32_t | pos, |
uint32_t | length, | ||
int32_t | value, | ||
ModelStackWithAutoParam const * | modelStack, | ||
int | actionType = ACTION_NOTE_EDIT |
||
) |
void AutoParam::setValuePossiblyForRegion | ( | int32_t | value, |
ModelStackWithAutoParam const * | modelStack, | ||
int32_t | pos, | ||
int32_t | length, | ||
bool | mayDeleteNodesInLinearRun = true |
||
) |
void AutoParam::shiftHorizontally | ( | int | amount, |
int32_t | effectiveLength | ||
) |
void AutoParam::shiftParamVolumeByDB | ( | float | offset | ) |
void AutoParam::shiftValues | ( | int32_t | offset | ) |
void AutoParam::stealNodes | ( | ModelStackWithAutoParam const * | modelStack, |
int32_t | pos, | ||
int32_t | regionLength, | ||
int32_t | loopLength, | ||
Action * | action, | ||
StolenParamNodes * | stolenNodeRecord = NULL |
||
) |
void AutoParam::swapState | ( | AutoParamState * | state, |
ModelStackWithAutoParam const * | modelStack | ||
) |
bool AutoParam::tickSamples | ( | int | numSamples | ) |
void AutoParam::transposeCCValuesToChannelPressureValues | ( | ) |
void AutoParam::trimToLength | ( | uint32_t | newLength, |
Action * | action, | ||
ModelStackWithAutoParam const * | modelStack | ||
) |
void AutoParam::writeToFile | ( | bool | writeAutomation, |
int32_t * | valueForOverride = NULL |
||
) |
int32_t AutoParam::currentValue |
ParamNodeVector AutoParam::nodes |
uint32_t AutoParam::renewedOverridingAtTime |
int32_t AutoParam::valueIncrementPerHalfTick |