Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
deluge::note_locks::LiveEdit Struct Reference

#include <note_lock_playback.h>

Collaboration diagram for deluge::note_locks::LiveEdit:

Public Member Functions

bool armed () const
bool isFor (const void *song_, const void *clip_) const
bool matches (const void *clip_, int32_t noteRowId_, uint32_t pos_) const
 Whether this slot's edits apply to the note at pos_ of that row.

Public Attributes

LockSet edits
uint16_t tag {0}

Private Attributes

const void * song {nullptr}
const void * clip {nullptr}
int32_t noteRowId {0}
uint32_t pos {0}
uint32_t length {1}
uint32_t wrapLevel {1u << 31}

Friends

class LiveEdits

Detailed Description

Uncommitted lock edits for one held note pad in the clip view ("live" edits). While the pad is held, knob turns go into one of these fixed slots - values only, no pool indices, no allocation - and are heard straight away: the sequencer and the audition overlay them on the note's committed set, and Sound::updateLiveNoteLocks rewrites the voices already sounding. On pad release the clip view commits a slot with one Pool::intern per note, as one undoable action, and disarms it.

A slot is "armed" for as long as its pad is held, even before anything is edited, so voices started meanwhile get its tag and the first knob turn can reach them. The identity fields are only ever compared, never dereferenced, so a stale slot can't touch freed memory; Song and InstrumentClip destructors disarm slots pointing at them anyway.


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