Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::SpectralGateT< SampleType > Class Template Reference

#include <spectral_gate_blur.hpp>

Public Member Functions

bool set_threshold_magnitude (SampleType threshold) noexcept
 Set the scalar linear-magnitude threshold.
SampleType threshold_magnitude () const noexcept
bool process (std::complex< SampleType > *const *frames, int channels, int num_bins, const SampleType *thresholds=nullptr) noexcept
 Gate a coherent channel group in place.

Member Function Documentation

◆ process()

template<typename SampleType = float>
bool pulp::signal::SpectralGateT< SampleType >::process ( std::complex< SampleType > *const * frames,
int channels,
int num_bins,
const SampleType * thresholds = nullptr )
inlinenoexcept

Gate a coherent channel group in place.

When thresholds is non-null, it points to num_bins finite, non-negative per-bin thresholds and overrides the scalar threshold for this frame. Invalid geometry or a bad threshold curve is rejected before any bin is changed. Non-finite spectral input is replaced with silence so it cannot poison synthesis.

◆ set_threshold_magnitude()

template<typename SampleType = float>
bool pulp::signal::SpectralGateT< SampleType >::set_threshold_magnitude ( SampleType threshold)
inlinenoexcept

Set the scalar linear-magnitude threshold.

Invalid values are rejected without changing the live threshold.

◆ threshold_magnitude()

template<typename SampleType = float>
SampleType pulp::signal::SpectralGateT< SampleType >::threshold_magnitude ( ) const
inlinenoexcept

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