From controls to audio
Each layer generates a waveform, applies an envelope and pitch motion, then passes through filters, phaser and bit crushing. Layers mix in floating point before encoding. The meter reports peaks before the optional limiter.
The seed fixes pseudo-random noise. A jsfxr Base58 code uses a separate parameter model and renders in a reference mode. The original sfxr .sfs is another binary format and cannot be opened here.
Make a coin sound
Preset: Coin; seed: 123; rate: 44,100 Hz
Layer: square wave, pitch rises from about 880 Hz
Save: 16-bit stereo WAV and settings JSON
Godot: import WAV and play it through AudioStreamPlayerListen and inspect
- Play the sound, then open the downloaded file in an independent audio player and listen for the same attack and fade.
- Import the actual file into the game engine and play it at ordinary and reduced volume.
- Reopen a settings link and check its seed and layer values; imported samples must be selected again.
When a sound differs
| Symptom | Likely cause | How to check | Fix |
|---|---|---|---|
| Export is quiet | Master gain or limiter reduced peaks | Compare peak and RMS | Raise gain carefully and check clipped frames |
| MP3 has a longer tail | Encoder frame padding | Measure decoded duration | Use WAV for timing-critical effects |
| Shared link loses a sample | URL excludes audio bytes | Inspect the sample layer | Import the sample again and check its licence |
| jsfxr sound differs after edits | Controls cannot be converted without loss | Use reference mode | Keep the original jsfxr code unchanged |
Other ways to do it
| Option | When it is the better choice |
|---|---|
| jsfxr | Fast original-style sounds and codes used directly in JavaScript |
| Bfxr or ChipTone | Their own project files or particular effects are required |
What this page does not cover
- Native
.sfs, Bfxr.bfxrand ChipTone projects are not imported. - Settings URLs exclude imported samples.
- Nerulio synthesis is not sample-identical to jsfxr; only the reference mode uses its renderer. MP3 uses locally bundled LAME with licence, source and rebuild instructions linked beside the exporter; encoder padding can extend short cues.
Versions and sources
The reference mode vendors jsfxr 1.4.1. See docs/TOOL-SFX-GENERATOR.md for independent format and game-engine results.