wad icon indicating copy to clipboard operation
wad copied to clipboard

Add digitized instruments for guitar, fx, drums etc.

Open surikov opened this issue 8 years ago • 6 comments

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

surikov avatar Mar 08 '18 07:03 surikov

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.

frastlin avatar Mar 25 '18 08:03 frastlin

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.

surikov avatar Mar 25 '18 12:03 surikov

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

frastlin avatar Mar 25 '18 17:03 frastlin

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 avatar Jun 22 '18 17:06 frastlin

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 avatar Sep 09 '18 00:09 frastlin

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.

frastlin avatar Jan 13 '21 22:01 frastlin