![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
#include <note_lock_playback.h>

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 |
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.