Hi there,
I'm using this code in a constant:
| index |
index := EventVariable new initialValue: 0.5.
20 ms tick evaluate: (
(index <+ (((!ForwardsBackwards sign) eq: 1) true: (index + (!ForwardsBackwards squared * 0.005)) false: index)),
(index <+ (((!ForwardsBackwards sign) eq: -1) true: (index - (!ForwardsBackwards squared * 0.005)) false: index))),
(index mod: 1) * 2 - 1
It works exactly like I want but the value of index is not saved in the presets... Any ideas how I can work around that?
Thanks!