diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-09-20 15:10:59 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-09-20 15:10:59 -0400 |
| commit | fbce4aa9cffd11738fca6d48e9a3adb8fa8ae2e0 (patch) | |
| tree | 18a4fca53fc2b848b3e3fc8fa68bfcfea48877c2 /intonation.js | |
| parent | a7c9044a3139c517818d273bdb3e68d24704ceb0 (diff) | |
scales work fine with negative indicies
Diffstat (limited to 'intonation.js')
| -rw-r--r-- | intonation.js | 2 |
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) } |
