Skip to content
Browse files

Fix a bug meaning all tunings were equal temperament.

  • Loading branch information...
1 parent 7481747 commit c3aa1622abddfd2831e8b23564f7fce733e706db Joe Turner committed Aug 9, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/audiolet/Audiolet.js
  2. +1 −1 src/audiolet/Audiolet.min.js
  3. +1 −1 src/tuning/Tuning.js
View
2 src/audiolet/Audiolet.js
@@ -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));
}
};
View
2 src/audiolet/Audiolet.min.js
@@ -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));
}
};
View
2 src/tuning/Tuning.js
@@ -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.
Something went wrong with that request. Please try again.