-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
After update from 2.3.7 to 2.4.0, on some note played via tuxguitar, a "larsen" is emitted shortly #1451
Comments
What do you mean by "larsen"? Also, I highly recommend to use fluidsynth 2.4.1 since we have fixed possible clicks and pops in the low pass filter. If it also happens with 2.4.1, pls. post at least an audio sample where the "larsen" can be heard, or even better, a reproducible score. |
I will wait for the fedora update. |
So, you mean that feedback that builds up on the right channel? To me, this
sounds like a note that hasn't received a noteOff yet. I need a score or a
MIDI file to investigate. With which version of fluidsynth did you produce
this? Also, it would be helpful if you posted an example of what you would
expect to sound it like.
|
Good idea. I will check tonight if it's the case.
|
I reproduced the problem via an exported midi file played with vlc / fluidsynth and a specific sound font. |
Ok, thanks. So I'm still trying to understand what you mean. For this, I've rendered the midi + SF2 with both, fluidsynth 2.3.7 and 2.4.2. Then I inverted one rendering, mixed them both together and exported it to this file, so we only hear the differences: The differences in the drums are expected, due to #1199. And yes, fluidsynth 2.4.2 produces a strange sinusoidal feedback at e.g. 4:28 and 4:41 on the right channel - is that what you mean by "larsen"? |
Yes, by feedback I mean this sine wave on the right channel at the time you specified. |
Thanks for confirming I'll investigate what's going on. May take a while though... |
OK, thanks a lot for your work :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
The provided difference audio was generated with effects disabled, so it's not related to this. |
Splitting the file into two where: results in a clean output. Adding them back together results in clear sound that 2.3.7 produces. |
attaching them for reference: |
Excellent ! |
So, it turns out that when a voice is in delay phase, its amplitude is not updated. Since the amplitude isn't cleared either, it may inherit an amplitude as well as an amplitude increment of a previous voice. If that previous amp increment was non-zero, nothing prevents the amplitude of the current in-delay-phase-voice from rising infinitely. A case that I indeed haven't considered. I will propose a fix, since I was reworking that code anyway. |
Thanks ! |
No, sry, I thought about this before but decided against a sponsorship. But thanks for the offer :) |
Fixed by #1470 and will be released with 2.4.3. Thanks again for the report! |
Thanks a lot for your work ! |
FluidSynth version
I used fuildsynth 2.4.0 from Fedora 41. The version before this update was 2.3.7.
Describe the bug
I used fluidsynth via tuxguitar.
When I play some guitarpro score, some some notes; a larsen is emitted briefly.
Seems to disappear if I turn off chorus and / or reverb.
Expected behavior
No audible larsen
Steps to reproduce
I haven't yet a good reproducer. I will pos one once I found a reproductible score
Additional context
There was no problems before 2.4.0. Tuxguitar was not updated in the mean time.
I removed the tuxguitar configuration and start a new one from scratch but the problem is still here.
The text was updated successfully, but these errors were encountered: