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

#include <transient_phase_policy.hpp>

Classes

struct  Config

Public Member Functions

void prepare (const Config &config)
 RT contract: prepare() allocates the previous-magnitude buffer and is not audio-thread safe.
void reset ()
SampleType analyze (const std::complex< SampleType > *const *frames, int channels, int num_bins)
 Analyze one frame group (all channels of the same time index) and return the phase-reset confidence: strength when a transient is detected, 0 otherwise.

Static Public Member Functions

static bool checked_retained_bytes (int fft_size, std::uint64_t target_max_bytes, std::uint64_t &bytes) noexcept

Member Function Documentation

◆ analyze()

template<typename SampleType = float>
SampleType pulp::signal::TransientPhasePolicyT< SampleType >::analyze ( const std::complex< SampleType > *const * frames,
int channels,
int num_bins )
inline

Analyze one frame group (all channels of the same time index) and return the phase-reset confidence: strength when a transient is detected, 0 otherwise.

◆ checked_retained_bytes()

template<typename SampleType = float>
bool pulp::signal::TransientPhasePolicyT< SampleType >::checked_retained_bytes ( int fft_size,
std::uint64_t target_max_bytes,
std::uint64_t & bytes )
inlinestaticnoexcept

◆ prepare()

template<typename SampleType = float>
void pulp::signal::TransientPhasePolicyT< SampleType >::prepare ( const Config & config)
inline

RT contract: prepare() allocates the previous-magnitude buffer and is not audio-thread safe.

After prepare(), analyze() and reset() are allocation-free for the prepared FFT size.

◆ reset()

template<typename SampleType = float>
void pulp::signal::TransientPhasePolicyT< SampleType >::reset ( )
inline

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