Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
Patcher Class Reference
Collaboration diagram for Patcher:

Classes

struct  Config

Public Member Functions

 Patcher (const Config &config, std::span< int32_t > source_values, std::span< int32_t > param_final_values, const deluge::note_locks::LockSet *locks=nullptr)
void performInitialPatching (Sound &sound, ParamManager &param_manager)
void performPatching (uint32_t sources_changed, Sound &sound, ParamManagerForTimeline &param_manager)
void recalculateFinalValueForParamWithNoCables (int32_t param, Sound &sound, ParamManagerForTimeline &param_manager)

Private Member Functions

bool hasLocks () const
template<bool kLocks>
void performInitialPatchingImpl (Sound &sound, ParamManager &param_manager)
template<bool kLocks>
void performPatchingImpl (uint32_t sources_changed, Sound &sound, ParamManagerForTimeline &param_manager)
template<bool kLocks>
void recalculateFinalValueForParamWithNoCablesImpl (int32_t param, Sound &sound, ParamManagerForTimeline &param_manager)
template<bool kLocks>
int32_t presetValue (uint32_t param, Sound &sound, ParamManager &param_manager) const
int32_t combineCablesLinearForRangeParam (Destination const *destination, ParamManager &param_manager)
template<bool kLocks>
int32_t combineCablesLinear (Destination const *destination, uint32_t param, Sound &sound, ParamManager &param_manager)
template<bool kLocks>
int32_t combineCablesExp (Destination const *destination, uint32_t param, Sound &sound, ParamManager &param_manager)

Static Private Member Functions

static int32_t cableToLinearParamWithoutRangeAdjustment (int32_t running_total, int32_t source_value, int32_t cable_strength)
static int32_t cableToLinearParam (int32_t running_total, const PatchCable &cable, int32_t source_value, int32_t cable_strength)
static int32_t cableToExpParamWithoutRangeAdjustment (int32_t running_total, int32_t source_value, int32_t cable_strength)
static int32_t cableToExpParam (int32_t running_total, const PatchCable &cable, int32_t source_value, int32_t cable_strength)

Private Attributes

const Config & config
std::span< int32_t > source_values_
std::span< int32_t > param_final_values_
const deluge::note_locks::LockSet * locks_

Constructor & Destructor Documentation

◆ Patcher()

Patcher::Patcher ( const Config & config,
std::span< int32_t > source_values,
std::span< int32_t > param_final_values,
const deluge::note_locks::LockSet * locks = nullptr )
inline

locks: a Voice's patcher passes its note's parameter locks, which replace the preset (knob / automation) value of each locked param before cables are applied. nullptr for a Sound's (global) patcher.


The documentation for this class was generated from the following files:
  • src/deluge/modulation/patch/patcher.h
  • src/deluge/modulation/patch/patcher.cpp