rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.89k stars 160 forks source link

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

Open surikov opened 6 years ago

surikov commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

frastlin commented 6 years ago

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 commented 6 years ago

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 commented 3 years ago

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.