Skip to main content

Crate roomeq_synthetic

Crate roomeq_synthetic 

Source
Expand description

Synthetic speaker curve generation for QA testing.

Provides deterministic test scenarios with known ground truth for validating optimization algorithms without relying on real measurement data.

Modules§

error

Structs§

CardioidSyntheticScenario
Synthetic cardioid subwoofer scenario (front + rear sub with separation).
Curve
A struct to hold frequency and SPL data. Re-exported from the main autoeq crate for compatibility.
DbaSyntheticScenario
Synthetic Double Bass Array scenario (front array + rear array).
MultiSubSyntheticScenario
Synthetic multi-sub scenario with per-subwoofer measurements.
SyntheticScenario
Full synthetic scenario with known ground truth.

Enums§

AutoeqError
Error type for autoeq operations.

Functions§

add_noise
Add Gaussian noise (in dB domain) with configurable RMS and deterministic seed.
apply_known_eq
Apply known biquad filters to a curve (simulates room modes).
generate_cardioid_scenario
Generate a synthetic cardioid subwoofer scenario.
generate_channel_curve
Generate a full-range degraded channel curve from a base target.
generate_dba_scenario
Generate a synthetic DBA scenario.
generate_flat_curve
Generate a flat curve at 0 dB SPL with log-spaced frequency points.
generate_harman_tilt_curve
Generate a Harman-style tilt curve (-0.8 dB/octave from 200 Hz reference).
generate_multisub_scenario
Build a multi-sub synthetic scenario.
generate_scenario
Build a complete test scenario: target → +noise1 → +room_modes → +noise2
generate_speaker_rolloff_curve
Generate a speaker-like rolloff curve: 0 dB above crossover_freq, rolling off at slope_db_per_oct dB/octave below it (negative slope = highpass rolloff).
generate_sub_curve_with_phase
Generate a bass-range curve with simulated propagation delay phase.
generate_subwoofer_rolloff_curve
Generate a subwoofer-like rolloff curve: 0 dB below crossover_freq, rolling off at slope_db_per_oct dB/octave above it (negative slope = lowpass rolloff).
try_generate_flat_curve
Checked variant of generate_flat_curve.
try_generate_harman_tilt_curve
Checked variant of generate_harman_tilt_curve.
try_generate_speaker_rolloff_curve
Checked variant of generate_speaker_rolloff_curve.
try_generate_subwoofer_rolloff_curve
Checked variant of generate_subwoofer_rolloff_curve.

Type Aliases§

Result
Result type alias for autoeq operations.