Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a bug meaning all tunings were equal temperament.

  • Loading branch information...
commit c3aa1622abddfd2831e8b23564f7fce733e706db 1 parent 7481747
Joe Turner authored
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));
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.