First time here? Check out the FAQ!
x

What am I doing wrong in my wee EventVariable code?

0 votes
483 views

This should work in terms of calculating the increment step right?

I want my EventVariable index to accumulate upwards or downwards over a certain time, specified by ?slewTime ( in seconds ). Normally wouldn't that be 1/SR * slewTime? Weirdly though it doesn't seem to work as expected, index accumulates faster when the !slewTime goes up in value, and slower when it tends towards 0. Not sure why? Any ideas? 

 

some code

asked May 17, 2022 in Capytalk & Smalltalk by cristian-vogel (Master) (8,440 points)
edited May 18, 2022 by cristian-vogel
Could you try changing the first assignment to pop instead of leaving the value on the top of the stack (in other words <+ instead of <~)?
I since moved on and tried another approach using pasted sounds instead... EventVariable stack style; would you say it is similar to the 'Functional style' in R/JS and other languages for example?

Please log in or register to answer this question.

...