feross / feross/timidity

Error with official example

Abierto
#27 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
403
Forks
44
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When I try `const Timidity = require('timidity')` from the readme, I get `Uncaught ReferenceError: require is not defined`.

Then I `browserify` the example from the readme. But then it can't find `libtimidity.wasm`.

Then I replace
```
const player = new Timidity()
player.load('/my-file.mid')
```
by
```
baseUrl = 'https://bitmidi.com/timidity/'
const player = new Timidity(baseUrl)
player.load('https://bitmidi.com/uploads/16752.mid')
```
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` to `bg-sound`). But there's still no sound.

So how exactly can I use `timidity`?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.