JavaScript retro sound effects generator
github.grumdrig.com
JavaScript retro sound effects generator
1–10 of 25 posts
Re: JavaScript retro sound effects generator
#2Re: JavaScript retro sound effects generator
#3Re: JavaScript retro sound effects generator
#4Re: JavaScript retro sound effects generator
#5Oh wow! I used this last year to generate the sound effects for https://rocketblaster.app/ and it gave it a great retro vibe.
Re: JavaScript retro sound effects generator
#6Instead of exporting to a file is there a way to just make the sounds on the fly and then reuse them? For example in a JavaScript browser game?
https://fenomas.github.io/wafxr/
It can export wav files, but its main purpose is to generate code snippets for playing the sound effect through webaudio, underneath using a much more general library. But people familiar with audio synthesis might prefer just using the underlying dependency directly - it basically turns arbitrary config into webaudio. This playground shows how it works:
Re: JavaScript retro sound effects generator
#7Instead of exporting to a file is there a way to just make the sounds on the fly and then reuse them? For example in a JavaScript browser game?
I'm not sure what this webpage is, jsxfr is the name of the JavaScript library on nodejs which is a different url to this page.
But yeah once you start generating things procedurally you can do things like generate 10 sounds with subtle variations to make things less repetitive.
Re: JavaScript retro sound effects generator
#8I used the Flash predecessor to generate audio for my mobile game Cobalt Dungeon. It had pretty much the same controls and generated WAV files as well. Basically find something close to what you want then mutate it a whole bunch and then you're good to go.
Re: JavaScript retro sound effects generator
#9Re: JavaScript retro sound effects generator
#10Instead of exporting to a file is there a way to just make the sounds on the fly and then reuse them? For example in a JavaScript browser game?
SFXR is this is the canonical tool for doing that, and yes, you can do that! I'm not sure what this webpage is, jsxfr is the name of the JavaScript library on nodejs which is a different url to this page. But yeah once you start generating things procedurally you can do things like generate 10 sounds with subtle variations to make things less repetitive.
Basically:
- The original sfxr was a win32 app, ca. 2007
- There was later a widely-used Flash port called as3sfxr, ca. 2010
- This page (TFA) is a JS port of sfxr, ca. 2011.
- `jsfxr` on npm was originally a separate JS port of as3sfxr, ca 2014
- Current `jsfxr` on npm appears to have changed hands in 2022, and is now a fork of TFA with somebody else's contributions (and a paid version, confusingly branded as "sfxr")