20#include "model/note/note_locks.h"
21#include "modulation/params/param.h"
54 if (!hasAnyOf(kEnvelope0Tail)) [[likely]] {
57 return giveSustainLocked(sound, paramManager);
78 deluge::modulation::params::LOCAL_OSC_B_VOLUME);
80 deluge::modulation::params::LOCAL_LPF_MORPH);
82 deluge::modulation::params::LOCAL_HPF_MORPH);
88 static_assert(deluge::modulation::params::FIRST_LOCAL_NON_VOLUME <= 32);
89 return ((
static_cast<uint32_t
>(
mask()) >> param) & 1) != 0;
93 deluge::modulation::params::LOCAL_ENV_0_SUSTAIN, deluge::modulation::params::LOCAL_ENV_0_DECAY,
94 deluge::modulation::params::LOCAL_ENV_0_RELEASE);
95 static constexpr uint64_t kOscBVolume =
98 deluge::modulation::params::LOCAL_OSC_A_VOLUME, deluge::modulation::params::LOCAL_OSC_B_VOLUME);
99 static constexpr uint64_t kNoiseVolume =
105 [[gnu::cold, gnu::noinline]]
bool sourceActiveCurrentlyLocked(
Sound& sound, int32_t s)
const;
106 [[gnu::cold, gnu::noinline]]
bool oscSyncCurrentlyLocked(
Sound& sound)
const;
107 [[gnu::cold, gnu::noinline]]
bool modulatorActiveLocked(
Sound& sound, int32_t m)
const;
109 [[gnu::cold, gnu::noinline]]
bool noiseEverActiveLocked()
const;
Definition model_stack.h:282
Definition param_manager.h:156
Definition param_manager.h:45
Definition voice_note_locks.h:35
bool giveSustain(Sound &sound, ParamManagerForTimeline *paramManager) const
Definition voice_note_locks.h:53
bool noiseEverActive(ParamManager *paramManager) const
The noise volume is ever above -inf, from its knob / automation or a lock.
Definition voice_note_locks_inline.h:69
static bool pendingTurnsOnASource(Sound &sound)
Definition voice_note_locks.cpp:59
uint16_t liveEditTag
note_locks::LiveEdit::tag of the held pad whose uncommitted lock edits this voice was started with,...
Definition voice_note_locks.h:38
static constexpr uint64_t kStereo
Sound::renderingVoicesInStereo only looks for stereo samples in the sources the knob values have on.
Definition voice_note_locks.h:76
bool oscSyncCurrently(Sound &sound, ParamManagerForTimeline *paramManager) const
Sound::renderingOscillatorSyncCurrently, with a lock on osc B's volume in place of its knob value.
Definition voice_note_locks_inline.h:53
bool volumeLocked(int32_t param) const
Definition voice_note_locks.h:87
bool takePending()
Definition voice_note_locks.cpp:47
bool sourceEverActive(ModelStackWithSoundFlags *modelStack, int32_t s) const
Definition voice_note_locks_inline.h:35
bool modulatorActive(Sound &sound, int32_t m, ParamManagerForTimeline *paramManager) const
The FM modulator's volume is above -inf, from a lock if there is one, else its knob value.
Definition voice_note_locks_inline.h:60
bool sourceActiveCurrently(Sound &sound, int32_t s, ParamManagerForTimeline *paramManager) const
Sound::isSourceActiveCurrently, with a lock on the source's volume in place of its knob value.
Definition voice_note_locks_inline.h:45
Definition note_locks.h:63
uint64_t mask() const
Bit p set if param p is locked.
Definition note_locks.h:72
constexpr uint64_t paramMask(Params... params)
A bit per param, as LockSet::mask() has them.
Definition note_locks.h:55