Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
deluge::note_locks::PendingScope Class Reference

Makes one note's locks pending for as long as it's in scope, then puts back what was pending before. More...

#include <note_lock_playback.h>

Classes

struct  Opened

Public Member Functions

 PendingScope (const Pool &pool, uint16_t lockSet, const LiveEdit *live)
 PendingScope (const Pool &pool, NoteRef note)
 PendingScope (const LockSet &locks, NoteRef note)
 PendingScope (const PendingScope &)=delete
PendingScope & operator= (const PendingScope &)=delete

Private Member Functions

void open (const Pool &pool, uint16_t lockSet, const LiveEdit *live)
void openWith (const LockSet &locks, NoteRef note)

Private Attributes

std::optional< Opened > opened_

Detailed Description

Makes one note's locks pending for as long as it's in scope, then puts back what was pending before.

Constructor & Destructor Documentation

◆ PendingScope() [1/3]

deluge::note_locks::PendingScope::PendingScope ( const Pool & pool,
uint16_t lockSet,
const LiveEdit * live )
inline

A note that may have live (uncommitted) edits from a held pad: live is that pad's slot (LiveEdits::find), or nullptr. Does nothing if this is what's pending already - in particular in the usual case of no locks at all.

◆ PendingScope() [2/3]

deluge::note_locks::PendingScope::PendingScope ( const Pool & pool,
NoteRef note )
inline

A note an arpeggiator plays: the locks of the held note it came from. Does nothing if that's what's pending already - when nothing has locks, or when the arp plays the very note the sequencer is sending. Any other note, even one with the same committed set, gets its own locks, so a held pad's edits never leak onto a different note the arp picks.

◆ PendingScope() [3/3]

deluge::note_locks::PendingScope::PendingScope ( const LockSet & locks,
NoteRef note )
inline

A note that was due earlier and had to wait (DeferredNoteOns): locks is what its locks were when it was due, which it plays with whatever has been edited since


The documentation for this class was generated from the following files: