Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::ProcessorBase::ParameterChangeTracker Struct Reference

Tracks parameter value changes across processing cycles. More...

#include <src/dsp/processor_base.h>

Data Structures

struct  Change

Public Member Functions

const auto & changes () const
 Returns the changes accumulated during the current cycle.

Friends

class ProcessorBase

Detailed Description

Tracks parameter value changes across processing cycles.

Built during the existing parameter loop in process_block() — no extra passes. prev_values_ starts at -1.f (sentinel, since normalized values are [0,1]) so the first cycle naturally marks all params as changed.

Only valid to read during custom_process_block(); cleared afterward.

Definition at line 34 of file processor_base.h.

Member Function Documentation

◆ changes()

const auto & zrythm::dsp::ProcessorBase::ParameterChangeTracker::changes ( ) const
inline

Returns the changes accumulated during the current cycle.

Definition at line 46 of file processor_base.h.

◆ ProcessorBase

friend class ProcessorBase
friend

Definition at line 49 of file processor_base.h.


The documentation for this struct was generated from the following file: