From fbce4aa9cffd11738fca6d48e9a3adb8fa8ae2e0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 20 Sep 2016 15:10:59 -0400 Subject: scales work fine with negative indicies --- intonation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intonation.js') diff --git a/intonation.js b/intonation.js index a0cbedf..b660fee 100644 --- a/intonation.js +++ b/intonation.js @@ -43,7 +43,7 @@ var Intonation = (function(){ var ratio = Math.pow( interval, 1/tet ) var n = root scale.push(n) - for (var i = 0; i < tet; i++) { + for (var i = 0; i < tet-1; i++) { n *= ratio scale.push(n) } -- cgit v1.2.3-70-g09d2