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

Sound sometimes cuts out when switching to Wide mode #3683

Closed
TheNerdyMusicGuy opened this issue Jan 21, 2021 · 5 comments
Closed

Sound sometimes cuts out when switching to Wide mode #3683

TheNerdyMusicGuy opened this issue Jan 21, 2021 · 5 comments
Labels
Bug Report Item submitted using the Bug Report template DSP Issues and feature requests related to sound generation in the synth
Projects
Milestone

Comments

@TheNerdyMusicGuy
Copy link

When switching to the "Wide" filter routing, the sound sometimes cuts out with a loud burst of noise.

  1. Load the preset
  2. Switch back and forth between the S2 and wide filter routings a couple of times while playing some notes
  3. Notice the bug happening

The sound seems to come back after some time.

I'll try to pin this down further, if I find the time, but I just wanted to report things for now before I forget again.

Wide Bug.zip

Surge Synthesizer
Plugin Host: Ableton Live 10.1
System: x86 CPU, Windows VST3, 64-bit
Build Info: Built on 2021-01-21 at 01:31:57, using pipeline host 'fv-az95-512'
Version: 1.8.nightly.b7c72a6

@TheNerdyMusicGuy TheNerdyMusicGuy added the Bug Report Item submitted using the Bug Report template label Jan 21, 2021
@mkruselj mkruselj added the DSP Issues and feature requests related to sound generation in the synth label Jan 21, 2021
@baconpaul
Copy link
Collaborator

So here's what I think is happening

When you run in wide mode it uses twice as many filters obviously (one per channel)
When you switch to S1 those other-side filters are unused
so when you switch back those filters have the state from their last activation; you give them some new signal; that discontinuity looks like 'uninitialized' state; the filters crash out for a bit

The fix for this is: when switching into a stereo mode from a mono mode, re-init the stereo side voice filters at 0.

We don't really have a hook in the code where we can do that surgery easily now though so I think this one will have to roll to 1.9. it's a moderately big change to find and re-initialize those filters (and make sure we get the right ones).

@baconpaul baconpaul added this to the 1.9.0 milestone Jan 21, 2021
@TheNerdyMusicGuy
Copy link
Author

Sounds good to me. This seems to be relatively rare. It only seems to happen with that specific patch, it never happened the many, many times I performed that action before.

I tried to make it happen with a simpler patch, but I couldn't quite figure it out yet.

@mkruselj mkruselj modified the milestones: 1.9.0, Surge XT Jan 24, 2021
@mkruselj mkruselj modified the milestones: Surge XT, 1.9.0 Feb 8, 2021
@mkruselj mkruselj changed the title Sound sometimes cuts out when switching to wide mode on this preset Sound sometimes cuts out when switching to Wide mode Feb 20, 2021
@mkruselj mkruselj modified the milestones: 1.9.0, Surge XT 1.0 Mar 17, 2021
@mkruselj
Copy link
Collaborator

Linking this to #4355.

@mkruselj
Copy link
Collaborator

Right so in XT2 this will be a non issue since we're moving to nodal filter routing and all filters are gonna be stereo all the time.

@mkruselj mkruselj added this to To do in Filters Dec 2, 2022
@mkruselj
Copy link
Collaborator

OK so I am going to close this one since we know we're gonna be all stereo all the time in XT2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Item submitted using the Bug Report template DSP Issues and feature requests related to sound generation in the synth
Projects
Filters
To do
Development

No branches or pull requests

3 participants