Sure - I want behavior like in C, where integer division returns only whole numbers -
3 / 2 => 1
4 / 2 => 2
5 / 2 => 2
9 / 5 => 1
etc. In JS it would just be Math.floor(y/x);
I find it works really nicely with the modulo operator for things like scale transposition, like in this pseudocode:
def scale_and_transpose(n,scale):
octave = math.floor(n / scale.length)
scale_degree = n % scale.length
scale_note = scale[scale_degree]
return scale_note + (12 * octave)
But like I said, I’m just getting started with Orca, and there might be a better way to accomplish similar things. Really enjoying this wonderful project!