feross / feross/timidity

Error with official example

Đang mở
#27 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
403
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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`?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.