Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkellum committed Feb 10, 2016
1 parent 16efe9c commit 32ef363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modularscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ function msFunction(v,settings) {
var baseHigh = Math.pow(ratio,1) * base[0];
for (var i = 1; i < base.length; i++) {
// shift up if value too low
while (base[i] < base[0]) {
while (base[i]/1 < base[0]/1) {
base[i] = Math.pow(ratio,1) * base[i];
}
// Shift down if too high
while (base[i] >= baseHigh) {
while (base[i]/1 >= baseHigh/1) {
base[i] = Math.pow(ratio,-1) * base[i];
}
}
Expand Down

0 comments on commit 32ef363

Please sign in to comment.