Is there a reason not to compare this.coord with interval.coord directly?
The problem with using sum is that if the result of sub(this.coord, interval.coord) were [n,-n], it will still return true.
Let me know what you think!
Ugh, that's a bit embarrassing - but a nice find. I guess it was in the transition to using a vector based note representation, that this bug has sneaked in.
Hi there again :) I found that the interval equal function doesn't quite work.
For example:
Is there a reason not to compare this.coord with interval.coord directly? The problem with using sum is that if the result of sub(this.coord, interval.coord) were [n,-n], it will still return true. Let me know what you think!
Sean