Skip to content

Preserve fractional sweep frequencies when restoring settings - #479

Open
WillHirsch wants to merge 1 commit into
tlecomte:masterfrom
WillHirsch:codex/upstream-restore-sweep-frequencies
Open

WillHirsch wants to merge 1 commit into
tlecomte:masterfrom
WillHirsch:codex/upstream-restore-sweep-frequencies

Conversation

@WillHirsch

Copy link
Copy Markdown

Restoring the Sweep generator's start and stop frequencies now reads floating-point values, matching the properties and saved settings. A saved 20.50 Hz value therefore retains its precision, and fractional values loaded from an INI file no longer trigger an integer-conversion error.

Closes #478.

Two regression tests cover a save/restore roundtrip and a fresh INI file containing fractional values. They use temporary settings stores and do not require audio hardware.

Validation

  • Both regression tests fail before the fix: one rounds 20.5 to 21; the other raises a Qt conversion TypeError.
  • Both regression tests pass after the fix.
  • git diff --check passes.

The patch changes only sweep settings restoration and its regression tests.

Read the start and stop frequencies as floats, matching their properties and saved settings. Cover floating-point QSettings values and fractional text from a fresh INI file.

Fixes tlecomte#478.
WillHirsch added a commit to WillHirsch/polyfriture that referenced this pull request Oct 19, 2026
Merge the branch submitted in tlecomte#479, preserving the upstream fix and regression tests. Git resolves the package rename into polyfriture/ without changing the reviewed patch contents.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Application crashes on startup after saving fractional sweep frequencies

1 participant