summaryrefslogtreecommitdiff
path: root/intonation.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-09-20 15:10:59 -0400
committerJules Laplace <jules@okfoc.us>2016-09-20 15:10:59 -0400
commitfbce4aa9cffd11738fca6d48e9a3adb8fa8ae2e0 (patch)
tree18a4fca53fc2b848b3e3fc8fa68bfcfea48877c2 /intonation.js
parenta7c9044a3139c517818d273bdb3e68d24704ceb0 (diff)
scales work fine with negative indicies
Diffstat (limited to 'intonation.js')
-rw-r--r--intonation.js2
1 files changed, 1 insertions, 1 deletions
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)
}