Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::FreezeHoldReferenceTiming Struct Reference

Time-based FreezeHold timing that reproduces the frame-count defaults (8 capture frames, 6 crossfade frames, 0.015 rad/frame walk) at the reference geometry they were tuned for: a 512-sample analysis hop at 48 kHz (RealtimePitchTimeProcessor's quality mode, 4096/512). More...

#include <freeze_hold.hpp>

Static Public Attributes

static constexpr double kSampleRate = 48000.0
static constexpr int kAnalysisHop = 512
static constexpr double kCaptureSeconds = 8.0 * kAnalysisHop / kSampleRate
 8 hops: 8 * 512 / 48000 s.
static constexpr double kCrossfadeSeconds = 6.0 * kAnalysisHop / kSampleRate
 6 hops: 6 * 512 / 48000 s.
static constexpr double kPhaseJitterPerSqrtSecond = 0.14523687548277813
 0.015 rad per 512-sample frame, as a random-walk rate: 0.015 * sqrt(48000 / 512) rad per sqrt(second).

Detailed Description

Time-based FreezeHold timing that reproduces the frame-count defaults (8 capture frames, 6 crossfade frames, 0.015 rad/frame walk) at the reference geometry they were tuned for: a 512-sample analysis hop at 48 kHz (RealtimePitchTimeProcessor's quality mode, 4096/512).

Member Data Documentation

◆ kAnalysisHop

int pulp::signal::FreezeHoldReferenceTiming::kAnalysisHop = 512
staticconstexpr

◆ kCaptureSeconds

double pulp::signal::FreezeHoldReferenceTiming::kCaptureSeconds = 8.0 * kAnalysisHop / kSampleRate
staticconstexpr

8 hops: 8 * 512 / 48000 s.

◆ kCrossfadeSeconds

double pulp::signal::FreezeHoldReferenceTiming::kCrossfadeSeconds = 6.0 * kAnalysisHop / kSampleRate
staticconstexpr

6 hops: 6 * 512 / 48000 s.

◆ kPhaseJitterPerSqrtSecond

double pulp::signal::FreezeHoldReferenceTiming::kPhaseJitterPerSqrtSecond = 0.14523687548277813
staticconstexpr

0.015 rad per 512-sample frame, as a random-walk rate: 0.015 * sqrt(48000 / 512) rad per sqrt(second).

◆ kSampleRate

double pulp::signal::FreezeHoldReferenceTiming::kSampleRate = 48000.0
staticconstexpr

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/signal/include/pulp/signal/freeze_hold.hpp