Currently writing a UDO for freezing audio for a set period of time. Figured I could check when the a-rate phasor value reaches 1 to exit an if-statement and avoid rewriting the audio buffer, but it seems like it’s not possible to use a-rate variables in if-statements?
I’m getting this error:
error: boolean expression '>=' with arg types ac not found, line 36
Any suggestions on how I could do this otherwise? I tried a k-rate phasor for the if-statement, but it doesn’t update often enough to hit 1 it seems.