Closed RaulMelinte closed 5 years ago
What doesn't work exactly?
Buffers are empty till you decode audio or play it. See https://github.com/surikov/webaudiofont/wiki/4.2.-decodeAfterLoading
return window["_tone_0730_FluidR3_GM_sf2_file"];
returns undefined, a bug with return statement maybe?
Paste here link from https://jsbin.com/ that reproduces problem.
There are no bugs. Look to examples at https://github.com/surikov/webaudiofont#code-examples
Open this link https://jsbin.com/muhayizego/edit?html,output
select Harpsichord from first list click Play
It works.
Look to debug messages. Look to the source. Your code is completely wrong. You load audiointo one variable, seek for other one, play third one.
Please look to examples at project page. It is enough to learn a way to use this library.
Hi,
I'm just starting with web applications development and i can't find a way to figure out this.
I have 3 instruments at the same time, and I want to choose between all you have available. The way I do this is:
3 input select
I load all the instruments:
And a switch case:
Doing so works, the problem is that loading 100 instruments when page open is quite slow, I would like to load them only when they are required:
This returns me random empty buffer.
And this doesn't work.
Am I doing something wrong?
Thank you