![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
The live-edit slots: one per clip-view edit pad press (kEditPadPressBufferSize), indexed like editPadPresses. More...
#include <note_lock_playback.h>
Public Member Functions | |
| LiveEdit & | operator[] (int32_t slot) |
| void | arm (int32_t slot, const void *song, const void *clip, int32_t noteRowId, uint32_t pos, uint32_t length, uint32_t wrapLevel, bool samePress=false) |
| void | disarm (int32_t slot) |
| Drops the slot's edits. Its tag stays, so re-arming the same press keeps reaching the voices it started. | |
| void | disarmAllOf (const void *owner) |
| Disarms every slot whose song or clip is owner (called as a Song / InstrumentClip is destroyed). | |
| const LiveEdit * | find (const void *clip, int32_t noteRowId, uint32_t pos) const |
| The armed slot covering this note, or nullptr. Cheap when no pad is held, which is how the sequencer calls it. | |
| const LiveEdit * | findByTag (uint16_t tag) const |
| The armed slot with this tag, or nullptr (also for tag 0). | |
Static Public Attributes | |
| static constexpr int32_t | kNumSlots = 8 |
Private Member Functions | |
| const LiveEdit * | findArmed (const void *clip, int32_t noteRowId, uint32_t pos) const |
Private Attributes | |
| std::array< LiveEdit, kNumSlots > | slots_ |
| int32_t | numArmed_ {0} |
| uint16_t | nextTag_ {0} |
The live-edit slots: one per clip-view edit pad press (kEditPadPressBufferSize), indexed like editPadPresses.
| void deluge::note_locks::LiveEdits::arm | ( | int32_t | slot, |
| const void * | song, | ||
| const void * | clip, | ||
| int32_t | noteRowId, | ||
| uint32_t | pos, | ||
| uint32_t | length, | ||
| uint32_t | wrapLevel, | ||
| bool | samePress = false ) |
Arms slot for the notes at [pos, pos + length) of that row. samePress: the press it was armed for is just being pointed at where its notes are now (after a nudge, a vertical drag, or a commit) - keep the slot's tag, so voices already started from it still hear its edits, and any edits not yet committed. Otherwise it's a new press: new tag, no edits.