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

#include <velocity_fold.h>

Inheritance diagram for VelocityFold:
Collaboration diagram for VelocityFold:

Classes

struct  PadPress

Public Member Functions

bool isFolded ()
void affectEntireChanged ()
 call after affect entire was pressed in the note editor (and the kit's affect entire toggled)
void render (InstrumentClip *clip, RGB image[][kDisplayWidth+kSideBarWidth], uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth])
void padAction (InstrumentClip *clip, int32_t x, int32_t y, int32_t velocity)
bool anyPadPresses () const
void adjustHeldVelocity (InstrumentClip *clip, int32_t offset)
 fine tune the velocity of every note on the held steps with the horizontal encoder
void endPadPresses ()

Private Member Functions

void padRelease (int32_t x, int32_t y)
void setStepVelocity (InstrumentClip *clip, Action *action, int32_t x, int32_t targetVelocity)
 scale every note starting on step x in every note row so the highest one becomes targetVelocity

Private Attributes

bool foldedNonKit {false}
PadPress padPresses [kEditPadPressBufferSize] {}
int32_t numPadPresses {0}
velocity_edit::Ramp ramp

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

Folded velocity editor, toggled with affect entire in the velocity editor. Every note row in the clip is shown in one velocity lane, so a pad press edits all notes that start on a step regardless of which row they are in. A kit's fold state is its affect entire state, so the gold knobs edit the whole kit while folded. Other clips' affect entire is always on, so they keep their own flag.

Member Function Documentation

◆ render()

void VelocityFold::render ( InstrumentClip * clip,
RGB image[][kDisplayWidth+kSideBarWidth],
uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth] )

every note row is drawn in its own colour (the same colour it has in the clip view). Each row draws a bar up to its velocity on that step; where bars overlap, the shorter bar wins, so each row shows as a band between its velocity and the next lower row's. Where several rows have the same velocity on a step their bars overlap completely, so the shared pads are drawn in the average of those rows' colours. Rows with notes starting on a step hide rows that only have a tail there.


The documentation for this class was generated from the following files:
  • src/deluge/gui/views/automation/editor_layout/note/velocity_fold.h
  • src/deluge/gui/views/automation/editor_layout/note/velocity_fold.cpp