Gin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
SmoothingType Class Reference

Parameter smoothing configuration for audio-rate interpolation. More...

#include <gin_processor.h>

Public Types

enum  Type { linear , eased }
 

Public Member Functions

 SmoothingType (float time_=0.1f, Type type_=linear)
 

Public Attributes

float time
 
Type type
 

Detailed Description

Parameter smoothing configuration for audio-rate interpolation.

SmoothingType specifies how parameter changes should be smoothed when applied to audio processing. This prevents zipper noise and clicks when parameters change, particularly important for frequency, gain, and other audio-critical parameters.

Smoothing Types:

The time value specifies how long the parameter takes to reach its new value from the current value. Typical values are 0.02-0.2 seconds.

Usage:

// Fast linear smoothing for non-critical params
// Slower eased smoothing for filter cutoff
// Used when creating parameters
auto cutoff = processor.addExtParam("cutoff", "Cutoff", "", "",
{20.0f, 20000.0f, 1.0f, 0.3f},
1000.0f, 0.0f,
A lightweight 2D point class for projects that don't use juce_graphics.
Definition gin_point.h:25
Parameter smoothing configuration for audio-rate interpolation.
Definition gin_processor.h:53
@ linear
Definition gin_processor.h:57
@ eased
Definition gin_processor.h:58
See also
Parameter, Processor

Member Enumeration Documentation

◆ Type

Enumerator
linear 
eased 

Constructor & Destructor Documentation

◆ SmoothingType()

SmoothingType::SmoothingType ( float  time_ = 0.1f,
Type  type_ = linear 
)

Member Data Documentation

◆ time

float SmoothingType::time

◆ type

Type SmoothingType::type

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