Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add digitized instruments for guitar, fx, drums etc. #81

Open
surikov opened this issue Mar 8, 2018 · 6 comments
Open

Add digitized instruments for guitar, fx, drums etc. #81

surikov opened this issue Mar 8, 2018 · 6 comments

Comments

@surikov
Copy link

surikov commented Mar 8, 2018

Add WebAudioFont sounds to play melodies.
It has 1500 digitized instruments and drums. You can load instruments in realtime. No CORS problem.
Example of using
https://surikov.github.io/webaudiofont/examples/dynamic.html

@frastlin
Copy link
Contributor

I would love to see something like this as well.
Here is another option:
https://github.com/danigb/soundfont-player

I would call this adding support for soundfonts.
I could see one needing to include a js file with soundfont information as the source and then treating it like an oscillator.
How would it be possible to allow this functionality for both normal soundfonts and the webaudio fonts?
The problem I see with adding support similar to tuna would be the amount of fonts one would need by default. I think the best process would be to allow people to either download the webaudio fonts as a js file, or install them as an npm package.

@surikov
Copy link
Author

surikov commented Mar 25, 2018

You can't use soundfont files in web applications due of huge size. Good soundfonts like Fluid are 100 mb or more.

WebAudioFont includes Fluid, GeneralUser GS and other soundofnts. You can use all samples without including them into your project. WebAudioFont downloads instruments in realtime. All samples uses compression. See example above.

https://github.com/danigb/soundfont-player has no samples. It can play uncompressed samples from FluidR3_GM project.

@frastlin
Copy link
Contributor

How would you suggest implementing WebAudioFont into Wad?
Would you use it similar to Tuna or would it be more like an Oscillator?

@frastlin
Copy link
Contributor

Here is an interesting project that may be worth keeping an eye on:
http://www.webaudiomodules.org/
People are calling it VST plugins for the web.

@frastlin
Copy link
Contributor

frastlin commented Sep 9, 2018

There may be a great way of doing this. JFXR allows you to produce sound effects in the browser and export them as a script file. It would be amazing if we could import those files into Wad and play with those effects in Wad. I don't think it would be hard at all, just a small conversion script.
That would allow us to build sound effects in the browser, then use them in Wad. Either that, or have a similar generator to JFXR using Wad... I think JFXR could have a lot more capability built-in,, like polywads, but the existing UI is amazing!

@frastlin
Copy link
Contributor

I am at the point to where I need soundfonts. I am probably going to install surikov's library and try to get it to work with the Wad context. I love all the soundfonts surikov has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants