http://scratch.mit.edu/projects/kevin_karplus/2162
works correctly in the squeak implementation, but not in the java implementation.
The problem seems to be that the java implementation does not correctly compute
(-1 mod 32) as 31, the way the squeak implementation does.
The mod function should always be x mod y = x - floor(x/y)*y even when x or y is negative or non-integer.
Offline