Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
velocity_edit::Ramp Class Reference

#include <velocity_edit.h>

Inheritance diagram for velocity_edit::Ramp:
Collaboration diagram for velocity_edit::Ramp:

Public Member Functions

void setup (int32_t firstX, int32_t firstVelocity, int32_t x, int32_t y)
template<typename IsStep, typename F>
void forEachStep (IsStep &&isStep, F &&fn) const
void renderValues (int32_t x)
 show the velocity at both ends of the ramp, or on 7seg the end at the pad pressed last (x)

Private Attributes

int32_t leftX {0}
int32_t rightX {0}
int32_t leftVelocity {0}
int32_t rightVelocity {0}

Additional Inherited Members

Protected Member Functions inherited from AutomationEditorLayout
RootUI * getAutomationView ()
AutomationParamType & getAutomationParamType ()
bool & getOnArrangerView ()
int32_t & getNavSysId ()
void renderDisplay (int32_t knobPosLeft=kNoSelection, int32_t knobPosRight=kNoSelection, bool modEncoderAction=false)
void displayAutomation (bool padSelected=false, bool updateDisplay=true)
void renderUndefinedArea (int32_t xScroll, uint32_t xZoom, int32_t lengthToDisplay, RGB image[][kDisplayWidth+kSideBarWidth], uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth], int32_t imageWidth, TimelineView *timelineView, bool tripletsOnHere, int32_t xDisplay)
void initInterpolation ()
void resetInterpolationShortcutBlinking ()
void blinkInterpolationShortcut ()
bool & getInterpolation ()
bool & getInterpolationBefore ()
bool & getInterpolationAfter ()
bool & getPadSelectionOn ()
void initPadSelection ()
void blinkPadSelectionShortcut ()
int32_t getPosFromSquare (int32_t square, int32_t localScroll=-1) const
int32_t getPosFromSquare (int32_t square, int32_t xScroll, uint32_t xZoom) const
bool & getMultiPadPressActive ()
bool & getMultiPadPressSelected ()
bool & getMiddlePadPressSelected ()
int32_t & getLeftPadSelectedX ()
int32_t & getLeftPadSelectedY ()
int32_t & getRightPadSelectedX ()
int32_t & getRightPadSelectedY ()
int32_t & getLastPadSelectedKnobPos ()
CopiedParamAutomation * getCopiedParamAutomation ()
ModelStackWithAutoParam * getModelStackWithParamForClip (ModelStackWithTimelineCounter *modelStack, Clip *clip, int32_t paramID=deluge::modulation::params::kNoParamID, deluge::modulation::params::Kind paramKind=deluge::modulation::params::Kind::NONE)

Detailed Description

a ramp between two presses in different columns. The first press keeps its current velocity and the second press sets the other end. Stored as if it was entered left to right.

Member Function Documentation

◆ forEachStep()

template<typename IsStep, typename F>
void velocity_edit::Ramp::forEachStep ( IsStep && isStep,
F && fn ) const
inline

fn(x, velocity) for each step of the ramp that isStep(x) accepts, with the velocity interpolated linearly from the left end on the first step to the right end on the last


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