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

Options for track_cycles. More...

#include <modal_extraction.hpp>

Public Attributes

double onset_threshold = 1.0e-3
 |x| above this counts as the onset.
double start_offset_s = 0.021
 Start tracking this long after the detected onset, to clear the excitation transient.
double tail_floor_ratio = 3.0e-4
 Stop tracking once |x| stays below max(|x|) * this ratio.
int sigma_half_window = 3
 Half-width, in cycles, of the sliding log-envelope fit that yields sigma.
int min_cycles = 4
 A track with fewer usable cycles than this is reported ok = false.

Detailed Description

Options for track_cycles.

Member Data Documentation

◆ min_cycles

int pulp::test::audio::CycleTrackOptions::min_cycles = 4

A track with fewer usable cycles than this is reported ok = false.

◆ onset_threshold

double pulp::test::audio::CycleTrackOptions::onset_threshold = 1.0e-3

|x| above this counts as the onset.

◆ sigma_half_window

int pulp::test::audio::CycleTrackOptions::sigma_half_window = 3

Half-width, in cycles, of the sliding log-envelope fit that yields sigma.

Wider = smoother but blurs genuine sigma structure; narrower = responsive but noisy. 3 (a 7-cycle fit) is the calibrated default.

◆ start_offset_s

double pulp::test::audio::CycleTrackOptions::start_offset_s = 0.021

Start tracking this long after the detected onset, to clear the excitation transient.

The default clears a few ms of contact pulse.

◆ tail_floor_ratio

double pulp::test::audio::CycleTrackOptions::tail_floor_ratio = 3.0e-4

Stop tracking once |x| stays below max(|x|) * this ratio.


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