-
Notifications
You must be signed in to change notification settings - Fork 16
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
Only include su_delay_times
into source when a delay unit is present.
#139
Conversation
Did see this actually happening? Because I thought this line:
would already make sure that it does not get included if there is no delay units, as I thought DelayTimes would be empty then? |
Let me guess what might be happening: the delay times get added to the delay table even when the unit disabled? There definitely is an oversight in this: I checked the code and I noticed the delaytime table construction does not care about the new "disabled" flag. I think a more future proof approach would be to make a copy of the patch before compiling and just filter out all the disabled units, so when compiling, we can just assume all units are enabled. This way disabled units cannot have any effect on the resulting synth. |
yes, this happened in a track with commented delay ops -
can try and reproduce with minimal example after evoke (we're some bytes short) tho if you think that we should rather tackle the underlying problem with the other if not being false while it should :) |
The issue starts from here: Line 71 in 2667c3c
Line 215 in 2667c3c
Line 223 in 2667c3c
Line 110 in 2667c3c
https://github.com/vsariola/sointu/blob/2667c3c72c95f7b91669d97d1435a1814cb97c01/vm/delaytable.go#L120C16-L120C17 Long story short: I think the "constructDelayTimeTable" does not check if your delay unit is disabled. It's a bug (or uh... feature). Is this your issue? As an immediate quick fix, just delete the disabled delay unit(s) :) |
Double-checked: Yes, this is exactly the code path that breaks, and removing the commented ops resolves it. |
Or, rather the proper "quick fix" for now, if you are can compile Sointu, is
On line 120 of delaytable.go |
What the hell I faster push that master than typing here :D Just a sec. |
Thanks a lot! -- I assume we should close this PR, as it does not fix the issue but rather hides it. |
Fixed. Binaries should be soon available from Github Actions, as always. |
I thought of reopening this pull request, but I think I'll open a new issue instead: write unit tests for the disabled flag. |
No description provided.