-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Distorted audio at loop points in AudioFileProcessor (nightly) #7094
Comments
It seems like ce722dd introduced the bug |
@sakertooth, do you have an idea what might cause this? I have to admin that I would never have thought about using AFP as a wavetable synthesizer but here we go. 😅 |
My guess is that somethings incorrect in |
Let me know if you're looking to find a solution to this @michaelgregorius. |
I think I'll pass on this @sakertooth. I am currently working on other things and the aforementioned commit seems to have introduced lots of changes. |
No problem, I can look into this for sure. Just wanted to know so that work doesn't start to overlap. 👍 |
After digging into the source code, I think the error originates from In the
From my understanding, Then in
In cases where the loop region is smaller than Similar thing happens to the |
I think the feature is very useful on short (or bass) samples where you want a quick way to lengthen them without the artifacts of audio-stretching or clipping, which requires the loop points to precisely match the waveform cycle. I use it a lot |
Thanks for the lead @khoidauminh, I was thinking the calculation of |
Hey @khoidauminh, so I believe I fixed this issue in #7100 just from listening to the playback I got, but could you check on your end to be sure? |
@sakertooth I've tested the fix and can confirm it's fixing the problem. However, I'm receiving some new problems.
At first I suspected the crash occurs on projects with the AFP but I noticed it's happening on other projects as well, and the crash is consistent. I suggest testing this on your end as well. I'm also gonna look into the code for both issues and hopefully find the source of the bugs to help speed up the process |
Could you send the full backtrace for this? |
@sakertooth |
Sorry, but I mean what do you get as output after entering in |
I also looked at
|
|
This should've been fixed after #7081. |
@sakertooth I'm assuming the #7100 happened before #7081 was merged so my git fetch didn't get that. I tried both and am indeed no longer getting crashes. Sorry for the noise The final problem left now is the Sample track playback issue |
Did some thinking, and I am pretty sure I know why this issue happens. Will try and patch it after work. |
I've been testing the new commits and am happy to say that everything is great! |
Bug Summary
Audio becomes distorted when AFP reaches the loop region of sample
Steps to reproduce
Expected behavior
Sample is played normally
Actual behavior
Sample is played incorrectly at the loop points, resulting in distorted audio
Screenshots and audio files
Audio in old LMMS
afp_old_alpha.mp4
Audio in latest LMMS
afp_new_alpha.mp4
LMMS build
The text was updated successfully, but these errors were encountered: