-
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
Inconsistent @startframe
behavior in fluid.bufstats~
#231
Comments
Also, I posted this in the |
I think it could be a case of just trimming the weights vector before it is supplied to the MultiStats processor... I could possibly take a look but my C++ fu is not good. |
Do you have a patch to test with @rconstanzo? |
(why do I never get notifications from github responses...) |
Agreed. However, this is a textbook example of a hidden interface break (i.e. someone, somewhere will be relying on old behaviour). So, with heavy heart, great regret etc, I think that to fix this we need to make it optional with a new param 😢 ( |
Hmm, perhaps I'm overlooking something.I don't see how this would break anything. All that means is the person would have been manually changing the Presently:
Proposed:
It would still work if you manually crop the buffer ahead of time (I don't see why |
Any code that assumes that |
Ah fair, yeah that would indeed break. My suspicion is that (somehow) no one has used Plus this has the unintended side effect of immediately throwing an error ( |
As outlined in this thread on the discourse it seems that
@startframe
(and presumably@numframes
) is only being applied to the@source
buffer and not the@weights
buffer, leading to errors being thrown even when both buffers satisfy all the conditions offluid.bufstats~
:This creates a situation where the
@weights
buffer needs to be manually trimmed based on the@startframe
/@numframes
attributes offluid.bufstats~
.Expected behavior:
@startframe
/@numframes
truncating is applied to both@source
and@weights
buffers (as well as the right inlet (the "weights inlet").The text was updated successfully, but these errors were encountered: