From 80cbec0c9dd56c80829b92a16c49bbce86e7c216 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 15 Jul 2025 10:04:33 -0400 Subject: [PATCH] Fix error in toneJS library --- js/src/Tonejs-Instruments.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/src/Tonejs-Instruments.js b/js/src/Tonejs-Instruments.js index c21f5b5..a539ff5 100644 --- a/js/src/Tonejs-Instruments.js +++ b/js/src/Tonejs-Instruments.js @@ -37,10 +37,7 @@ export var SampleLibrary = { var i; for (i = 0; i <= this.list.length - 1; i++) { for (var property in this[this.list[i]]) { - this[this.list[i]][property] = this[this.list[i]][property].replace( - this.ext, - newExt, - ); + this[this.list[i]][property] = this[this.list[i]][property].replace(this.ext, newExt); } } this.ext = newExt; @@ -288,7 +285,7 @@ export var SampleLibrary = { D5: "D5.[mp3|ogg]", "D#2": "Ds2.[mp3|ogg]", "D#3": "Ds3.[mp3|ogg]", - "D#4": "Ds3.[mp3|ogg]", + "D#4": "Ds4.[mp3|ogg]", E2: "E2.[mp3|ogg]", E3: "E3.[mp3|ogg]", E4: "E4.[mp3|ogg]",