Only include su_delay_times into source when a delay unit is present.#139
Only include su_delay_times into source when a delay unit is present.#139LeStahL wants to merge 1 commit intovsariola:masterfrom
su_delay_times into source when a delay unit is present.#139Conversation
|
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.