You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2023. It is now read-only.
Hello! I generated a custom soundfont using MIDI.js tools, and placed it inside my public folder (I'm using Svelte)
When creating the new instrument, I tried the following: let inst = Soundfont.instrument(ac, 'http://localhost:8080/soundfonts/acoustic_grand_piano-mp3.js'); let inst = Soundfont.instrument(ac, './soundfonts/acoustic_grand_piano-mp3.js');
And they both throw:
Uncaught TypeError: Cannot perform ArrayBuffer.prototype.slice on a detached ArrayBuffer
at ArrayBuffer.slice (<anonymous>)
at AudioContext.<anonymous> (index.js:68:64)
Hello! I generated a custom soundfont using MIDI.js tools, and placed it inside my public folder (I'm using Svelte)
When creating the new instrument, I tried the following:
let inst = Soundfont.instrument(ac, 'http://localhost:8080/soundfonts/acoustic_grand_piano-mp3.js');
let inst = Soundfont.instrument(ac, './soundfonts/acoustic_grand_piano-mp3.js');
And they both throw:
Do you have any idea what it could be?
Here's the generated js file too, just in case
acoustic_grand_piano-mp3.txt
Thank you!
The text was updated successfully, but these errors were encountered: