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

Public Member Functions | |
| int32_t | size () const |
| bool | empty () const |
| bool | full () const |
| std::span< const uint8_t > | params () const |
| std::span< const int32_t > | values () const |
| uint64_t | mask () const |
| Bit p set if param p is locked. | |
| bool | has (int32_t param) const |
| bool | hasAnyOf (uint64_t paramMask) const |
| std::optional< int32_t > | get (int32_t param) const |
| The locked value of param, if it's locked. | |
| bool | set (int32_t param, int32_t value) |
| bool | remove (int32_t param) |
| False if param wasn't locked. | |
| bool | merge (const LockSet &other) |
| Sets each of other's locks, on top of these. False if any of them didn't fit. | |
| void | clear () |
| bool | operator== (const LockSet &other) const |
Private Attributes | |
| uint64_t | mask_ {0} |
| uint8_t | count_ {0} |
| std::array< uint8_t, kMaxLocksPerNote > | params_ {} |
| std::array< int32_t, kMaxLocksPerNote > | values_ {} |
A note's parameter locks: up to kMaxLocksPerNote (param, value) pairs, one per param, kept sorted by param (so equal sets are identical). A value is in the patched param's preset-value domain, the same as its knob / automation value. This is a plain value type: it's what a pool entry holds, what a Voice plays with, and what a held pad's uncommitted edits are.
| bool deluge::note_locks::LockSet::set | ( | int32_t | param, |
| int32_t | value ) |
Adds or replaces one lock. False (and no change) if param can't be locked, or it's a new one and the set is full.