Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chorus when compiling with single precision #1339

Merged
merged 2 commits into from
Jun 29, 2024
Merged

Conversation

derselbst
Copy link
Member

@derselbst derselbst commented Jun 20, 2024

The default chorus parameters yield an oscillator phase close to PI/2. When compiling with single precision, the phase becomes exactly PI/2, which causes the sinusoidal oscillation to get stuck, causing attenuated signals on the left or right channels, see #1331.

This only avoids a phase of PI/2 for the default values. I.e. it doesn't fix the chorus behavior when the phase really evaluates equal to PI/2.

@derselbst derselbst added the bug label Jun 20, 2024
@derselbst derselbst added this to the 2.3 milestone Jun 20, 2024
@derselbst derselbst linked an issue Jun 26, 2024 that may be closed by this pull request
@jjceresa
Copy link
Collaborator

@derselbst

Hello Tom, I'm afraid this change won't be enough. For detail, please read my comment in issue #1331.

Copy link

sonarcloud bot commented Jun 29, 2024

@derselbst derselbst merged commit 4fc3810 into release/2.3 Jun 29, 2024
61 of 67 checks passed
@derselbst derselbst deleted the issue-1331 branch June 29, 2024 15:41
DominusExult added a commit to DominusExult/fluidsynth-sans-glib that referenced this pull request Jul 29, 2024
* master: (33 commits)
  Remove interpolation of IIR filter coefficients (FluidSynth#1345)
  Add OS/2 KAI audio driver
  Fix behavior of volume envelope delay phase
  Fix chorus when compiling with single precision (FluidSynth#1339)
  Update docs about XG bank selection logic
  Fix a few compiler warnings
  Fix linkage against gobject
  Fix mixed declaration
  Log NRPNs in verbose mode
  Update documentation of synth.device-id
  Access to synth->bank_select not guarded by mutex
  when processing command line options: -o setting=value, the value is converted to UTF8
  review findings
  Documentation updated (settings, about utf-8 encoding) C++ example updated
  drivers: winmidi,waveout and dsound using utf8 options Unicode support enabled in CMake script and CLI utility
  Fixed  wasapi driver; encode device names as CP_UTF8 Solves FluidSynth#1322
  Fix an import library is treated as a static library on OS/2 (FluidSynth#1321)
  Bump the github-actions group with 2 updates
  Keep GitHub Actions up to date with GitHub's Dependabot
  Minor fixups for MSYS2 CI (FluidSynth#1317)
  ...

# Conflicts:
#	CMakeLists.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chorus malfunctioning for single precision builds
2 participants