I’m having some trouble figuring out what’s happening here. Maybe Rory or someone can chime in.
I have a slider that needs its max range updated based on the size of the sample in the buffer. As far as I can tell it is being updated at i-rate but it behaves as if it’s at k-rate?
I’m declaring it like this:
rslider bounds(150, 250, 60, 60), channel("Placement"), text("PLACEMENT"), identchannel("placementIdent"), range(0.001, 3, 2, 1, 0.001), $KNOB1, trackercolour(25, 181, 254)
And updating it like this
itablelength = ftlen(giRecBuf1L)
imaxlength = sr/itablelength
SPlacementRange sprintf "range(0.001, %f, %f, 1, 0.001)", imaxlength, imaxlength/2 ;update "Placement" max range with buffer max length
chnset SPlacementRange, "placementIdent"
But it’s behaving like this - snapping back to default value.