Join GitHub today
Plugins: Choose Index.ar calc function based on phase arg #3436
Both calculation functions do
But, the Ctor chooses next_k for a control-rate bufnum, regardless of the rate of the input that matters (index). So this PR changes
Five other UGens follow the same pattern: IndexL, FoldIndex, WrapIndex, IndexInBetween and DetectIndex.
Test: without the fix, the following displays an obvious sample-and-hold. With the fix, Index.ar is correctly equivalent to BufRd.ar without interpolation.
I'll suggest 3.9.1 for this as it's a small bugfix.
I have a draft UnitTest over here: https://gist.github.com/patrickdupuis/077577a8c2800f24c2c3849a0592176d
Currently, the second test fails because