Skip to content

Commit

Permalink
Fix a bug meaning all tunings were equal temperament.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Turner committed Aug 9, 2011
1 parent 7481747 commit c3aa162
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/audiolet/Audiolet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7069,7 +7069,7 @@ var Tuning = function(semitones, octaveRatio) {
this.ratios = [];
var tuningLength = this.semitones.length;
for (var i = 0; i < tuningLength; i++) {
this.ratios.push(Math.pow(2, i / tuningLength));
this.ratios.push(Math.pow(2, this.semitones[i] / tuningLength));
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/audiolet/Audiolet.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -7069,7 +7069,7 @@ var Tuning = function(semitones, octaveRatio) {
this.ratios = [];
var tuningLength = this.semitones.length;
for (var i = 0; i < tuningLength; i++) {
this.ratios.push(Math.pow(2, i / tuningLength));
this.ratios.push(Math.pow(2, this.semitones[i] / tuningLength));
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/tuning/Tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ var Tuning = function(semitones, octaveRatio) {
this.ratios = [];
var tuningLength = this.semitones.length;
for (var i = 0; i < tuningLength; i++) {
this.ratios.push(Math.pow(2, i / tuningLength));
this.ratios.push(Math.pow(2, this.semitones[i] / tuningLength));
}
};

0 comments on commit c3aa162

Please sign in to comment.