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
I got it to work by additionally wrapping the modified (see above) code inside setTimeout(() => {...}, 5000) and clicking on the webpage within those 5 seconds.
(Edit: That works locally in Chrome, where window.location.origin is 'file://'. In Firefox, where window.location.origin is null, its use in class Timidity causes Uncaught TypeError: URL constructor: null is not a valid URL.)
Overall, there were many successive errors and required workarounds (see also the previous post).
Please modify the example in the readme such that there are precise instructions for getting it to work.
When I try
const Timidity = require('timidity')
from the readme, I getUncaught ReferenceError: require is not defined
.Then I
browserify
the example from the readme. But then it can't findlibtimidity.wasm
.Then I replace
by
Then I get the warning "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.".
I click on the webpage (which works after applying
browserify
tobg-sound
). But there's still no sound.So how exactly can I use
timidity
?The text was updated successfully, but these errors were encountered: