![]() |
Deluge Firmware 1.4.0
Build date: 2026.11.30
|
#include <note_lock_editor.h>

Classes | |
| struct | HeldNote |
| What the audition of a held note in this row plays with: the note's committed set, and the pad's live-edit slot. More... | |
| struct | PressedRow |
Public Member Functions | |
| NoteLockEditor (InstrumentClipView &clipView) | |
| HeldNoteLock | getHeldValue (ModelStackWithAutoParam *modelStack, int32_t *value) |
| bool | setHeldValue (ModelStackWithAutoParam *modelStack, int32_t value) |
| bool | automatesHeldNotes (ModelStackWithAutoParam const *modelStack) |
| bool | takeNotLockableNotice () |
| True once per pad press: show the "not lockable" notice before the automated value. | |
| void | arm (int32_t i, bool samePress=false) |
| void | rearmAll () |
| void | commit (int32_t i) |
| void | commitAll () |
| HeldNote | getHeldNote (int32_t yDisplay) |
| bool | heldNoteLocksSustain (int32_t yDisplay) |
| The note held in this row locks a sustain (committed or still live), so it has a tail even on a sound without. | |
| deluge::note_locks::LockSet | getMenuLocks () |
| The left-most targeted note's locks, with any pending edits. | |
| bool | setMenuLock (int32_t param, int32_t value) |
| bool | removeMenuLock (int32_t param) |
| bool | clearMenuLocks () |
Private Member Functions | |
| std::optional< PressedRow > | getRowOfPress (int32_t i) |
| The row press i is in, if it plays a Sound (a synth, or a kit's sound drum). | |
| uint16_t | getCommittedLockSet (int32_t i) |
| bool | editsHeldNotes (ModelStackWithAutoParam const *modelStack) |
| Pads are held in the clip view, and this is one of its params a held-pad knob turn edits. | |
| int32_t | findPressesFor (ModelStackWithAutoParam const *modelStack, bool *matches) |
| template<typename Change> | |
| bool | changeMenuLocks (Change change) |
Private Attributes | |
| InstrumentClipView & | clipView_ |
| bool | notLockableNoticeDue_ {false} |
Per-note parameter locks (model/note/note_locks.h), as entered from the instrument clip view, which owns one of these: hold a note pad and turn a knob for a local (per-voice) patched param, or use the note editor's "Param locks" menu.
While a pad is held its edits live in note_locks::liveEdits[i] (i = the edit pad press), heard immediately but not interned. They are committed - one Pool::intern per note, one undoable action - when the press ends, and before anything moves the held notes (nudge, vertical drag), so the locks move with them.
| void deluge::gui::NoteLockEditor::arm | ( | int32_t | i, |
| bool | samePress = false ) |
(Re)arms press i's live-edit slot for the notes it covers now. samePress: press i is the press the slot was armed for, now covering moved notes (note_locks::LiveEdits::arm)
|
nodiscard |
While note pads are held, a param of this clip that can't be locked (e.g. a patch cable's depth) is step-automated over the held notes as before, and the knob popup says so
| void deluge::gui::NoteLockEditor::commit | ( | int32_t | i | ) |
Commits a held pad's pending lock edits to its notes as one undoable change (no-op if none) and disarms its slot. Must be called whenever a press ends.
|
nodiscardprivate |
Pads are held in the clip view, and this is one of its params a held-pad knob turn edits.
The press whose note's value the knob shows (and matches[i] for every press playing the param's Sound), -1 if this isn't a lock edit (HeldNoteLock::NONE), or -2 if it is but no held note plays the Sound (HeldNoteLock::NO_NOTE)
| HeldNoteLock deluge::gui::NoteLockEditor::getHeldValue | ( | ModelStackWithAutoParam * | modelStack, |
| int32_t * | value ) |
For LOCK and NO_NOTE, gives the value to show: the held note's pending or committed lock, else the param's value at the note
| bool deluge::gui::NoteLockEditor::setHeldValue | ( | ModelStackWithAutoParam * | modelStack, |
| int32_t | value ) |