On Tue, Jan 10, 2012 at 05:35:50AM -0200, Alexandre Torres Porres wrote:
by the way, I figured out a simple way of having an actual accurate loop inside [expr] in a similar fashion.
something like
expr if ($f1 >= end_$0, $f1 - end_$0, if ($f1 < 0, end_$0 + $f1, $f1))
and the after the [line~] object I also take take care of it
expr~ if ($v1 >= end_$0, $v1 - end_$0, $v1)
as for the back window, the above output is subtracted a hop size, and I do this expr~ if ($v1 < 0, $v1 + end_$0, $v1) so it doesnt get negative.
Sounds fine, perfect looping, thanks to [expr]
Isn't this actually very similar to the simpler and faster [wrap~] (see attachment)? [wrap~] is different in that it will also wrap around for values larger than twice the loop size and it will wrap around in negavite areas as well, but I think, that's what you want anyway.
Frank Barknecht Do You RjDj.me? _ ______footils.org__