sfxbrew
Procedural game sound effects for humans and AI coding agents. Eastern (wuxia / xianxia) sounds plus the usual game sounds, synthesized locally, with no API keys, no network and no per-call cost.
- 45 presets. Eastern instruments: guqin, pipa, erhu, bamboo flute, temple bell, gong, wind chime, wooden fish, war drum. Xianxia magic: sword qi, spell cast, heavenly thunder, lightning, breakthrough, talisman, alchemy, qi gathering. Combat: hit, explosion, laser, whoosh, arrow, sword clash, shield block. UI and items: click, confirm, error, notification, page turn, typing, coin, pickup, power-up, level up, chest open. Character: jump, land, footsteps on stone and grass. Ambience: rain, wind, campfire, stream, cave drip, monster growl
- Every generation is a fresh variation; a seed reproduces it exactly
- Output: 16-bit WAV, or a ~7 KB dependency-free JavaScript snippet that plays the same sound with Web Audio
- Free for commercial use, no attribution required for the sounds you generate
For AI agents (MCP)
Claude Code:
claude mcp add sfxbrew -- npx -y sfxbrew mcp
Other MCP clients (Cursor, Windsurf, Claude Desktop …):
{
"mcpServers": {
"sfxbrew": { "command": "npx", "args": ["-y", "sfxbrew", "mcp"] }
}
}
Tools:
| Tool |
What it does |
list_presets |
Presets and what each one is good for |
generate_sfx |
Write one or more WAV variants (and optionally a .js file with play functions) |
render_patch |
Render a hand-tuned patch JSON |
get_js_code |
One drop-in JS snippet with playX() functions for several sounds |
export_pack |
A game-engine folder: WAV variations or seamless loops + Godot .tres, Unity script, web player, README |
process_audio |
Make any audio files game-ready: same loudness (LUFS), trim silence, slice at silences, seamless loops, rename, WAV/MP3/OGG, audio sprite |
analyze_audio |
Loudness, peak, length and leading/trailing silence of audio files |
generate_vfx |
A 2D effect (a preset, or your own built from layers) as a sprite sheet + Godot scene + Phaser/Pixi atlas, optionally with its matching sound; returns a preview image |
list_vfx_layers |
The 14 layer types, their parameters and ranges, palettes and example patches, for writing your own effect |
Then just ask: "add a coin sound and a hit sound to my game".
Agent skill
A free SKILL.md that teaches your agent when and how to use SFX Brew: skills/sfxbrew/SKILL.md, also installable from Agensi.
Seamless loops and engine packs
Ambience and sustained sounds (rain, wind, campfire, stream, cave drip, thunder, wind chimes, war drums, monster growl) can be rendered as seamless loops of 10 to 120 seconds. The loop is stitched from several slightly different takes with equal-power crossfades, so it doesn't repeat every few seconds, and the WAV carries a loop point that Godot, FMOD, Wwise and GameMaker pick up automatically.
An engine pack is a folder (or a zip from the web editor) with WAV variations or loops plus:
godot/<name>.tres: an AudioStreamRandomizer that plays a random variation each time (Godot 4)
unity/SfxBrewPlayer.cs: drop on a GameObject, drag in the clips, call Play() (or tick Loop)
web/<name>.js: plain Web Audio player, playX() or startX() / stopX() for loops
Process any audio
sfxbrew process cleans up audio from anywhere (recordings, downloaded packs, other generators, WAV/MP3/OGG/FLAC) in one pass, and never touches the input files:
- Same loudness: integrated loudness (ITU-R BS.1770, matches ffmpeg's
ebur128 within about 0.1 LU), a peak ceiling (default -1 dBFS) and an optional look-ahead limiter that stops at 6 dB so hits keep their attack
- Trim silence at start and end, or slice one recording of many takes into separate clips
- Seamless loops: crossfade the tail into the head and write a WAV loop point
- Rename to
name-01.wav, name-02.wav …, change channels, sample rate (high-quality sinc resampling) or bit depth
- WAV, MP3 or OGG out (MP3 and OGG need ffmpeg installed; WAV needs nothing)
- Audio sprite: all clips in one file plus a JSON map that Howler.js reads directly
npx sfxbrew analyze assets/sfx # find what is too loud, too quiet or padded
npx sfxbrew process raw/footsteps.wav --slice --trim --lufs -20 --limit --name step --out assets/sfx
npx sfxbrew process downloads/ --lufs -20 --limit --format ogg --out assets/sfx
npx sfxbrew process ambience/forest.wav --loop-crossfade 800 --lufs -24 --out assets/sfx
npx sfxbrew process ui/ --trim --lufs -20 --limit --sprite ui --out web/audio
About -20 LUFS suits one-shot SFX, -22 to -26 ambience. Very spiky sounds (a single click or hit) can end up a few LU under the target because the limiter stops at 6 dB; the output says how far short each clip is.
2D effects
Effects that match the sounds, drawn in code (no image assets): swordQi, spell, hit, lightning, talisman, breakthrough, explosion and the looping aura, in a smooth glow style or as pixel art. One command writes a folder every common engine can use:
<name>_strip12.png: the sprite sheet (the _stripN name lets GameMaker slice it on import) and frames/ with one PNG per frame
<name>.json: TexturePacker-format atlas with an animations entry, for Phaser load.atlas and PixiJS AnimatedSprite
godot/<name>.tres (SpriteFrames) and godot/<name>.tscn, a scene that plays the effect and its sound once and frees itself
wav/ with the matching sound when you pass --sound, and a README with Unity, Phaser, PixiJS and GameMaker steps
preview/ (6 frames side by side) and patch/ (the effect as JSON, to tweak and render again)
npx sfxbrew vfx list
npx sfxbrew vfx swordQi --sound --out assets/fx
npx sfxbrew vfx hit --style pixel --palette ice --variants 3 --scale 2 --out assets/fx
npx sfxbrew vfx spell --palette "#ffffff,#e0ffe0,#40d080,#105030" --frames 24 --speed 0.8
Palettes: fire, ice, thunder, dark, holy, poison, blood, jade, or any four colours (core, light, mid, dark).
Build your own effect from layers
Every preset is a small JSON patch of layers. Write your own and render it the same way (an AI agent can do this through generate_vfx with patch, reading list_vfx_layers first):
{ "name": "frost-nova", "palette": "ice", "frames": 14, "layers": [
{ "type": "flash", "radius": 0.15 },
{ "type": "ring", "radiusTo": 0.46, "count": 2 },
{ "type": "debris", "shape": "shard", "tint": "#bfe9ff", "count": 12, "gravity": 0.3 },
{ "type": "glint", "points": 6, "start": 0.1, "end": 0.5 }
] }
npx sfxbrew vfx frost-nova.json --sound hit --variants 3 --mutate 0.3 --out assets/fx
npx sfxbrew vfx layers # every layer type and its parameters (--json for ranges and defaults)
Layers: flash, ring, glint, beam, slash, bolt, trail, burst, sparks, swirl, smoke, debris, sigil, shape. Each one also takes start/end (when it plays), x/y, angle, scale, color, intensity, blend, ease and jitter. Set "loop": true for seamless looping effects such as auras, fire or shields.
CLI
npx sfxbrew list
npx sfxbrew coin --out assets/sfx/coin.wav
npx sfxbrew swordQi --count 5 --out assets/sfx/sword.wav
npx sfxbrew hit --seed 42 --js src/sfx.js
npx sfxbrew render my-patch.json --out boom.wav
npx sfxbrew rain --loop 30 --out assets/sfx/rain-loop.wav # seamless loop with a WAV loop point
npx sfxbrew pack swordQi --count 8 --out . # Godot / Unity / web pack
npx sfxbrew pack campfire --loop 20 --out .
Music
Background music is composed and rendered locally too: one full piece per seed (intro, theme, contrast, theme, outro) as a seamless stereo WAV loop.
npx sfxbrew music list # moods and stingers
npx sfxbrew music medieval --count 3 --out music/town.wav
npx sfxbrew music primitive --seed 7 --out music/stone-age.wav
npx sfxbrew stinger guiltChild --out music/guilt-child.wav
Moods: calm, battle, mystery, sad (Eastern), primitive (bone flute, hummed drone, log drums, sticks, shaker), tribal (clay ocarina, bamboo flute, plucked zither, frame drum), medieval (dorian fiddle and shawm, lute, bagpipe drone, tambourine), and Western ones with seven-note melodies and V–I harmony: chiptune and chipBoss (8-bit square leads, fast arpeggios, triangle bass, noise drums), adventure (violins, nylon guitar, strings, light kit), action (distorted guitar, power chords, electric bass, drum kit), acoustic (nylon and steel-string guitars, flute, brushes), plus orchestral ones on CC0 recordings from VSCO 2 CE: fantasy (flute, oboe, horn, harp, strings, timpani), epic (horns, trumpets, brass stabs, cello spiccato, timpani), piano (solo upright piano over strings), pastoral (clarinet, oboe, flute, harp). Stingers: victory, defeat, battleStart, treasure, breakthrough, and three quiet 2-3 s ones for dark moments: guiltCannibal, guiltChild, grief, plus 8-bit chipWin and chipLose and an orchestral fanfare. MCP tool: generate_music.
Sound packs
Ready-made WAV packs: Xianxia & Wuxia Game Sound Pack on itch.io (44 sounds), or download any pack as a ZIP from sfxbrew.com/sounds.
Library
const sfx = require('sfxbrew');
const { patch, seed } = sfx.generate('coin');
const { bytes } = await sfx.renderWav(patch);
Browser editor
Tweak any sound with sliders and export WAV / JS in the web editor (same engine).
License
Code: MIT. Generated sounds: yours, free for any use.
A few presets (war drum, lightning, gong, erhu) and the music engine's recorded instruments (strings, brass, woodwinds, harp, piano, timpani) use short CC0 recordings from Freesound and VSCO 2 CE, listed with their recordists in samples/CREDITS.md.