{"_id":"@audio/synth-sfx","_rev":"6-830b753ca3000cc4ed7f361c47c84c0c","name":"@audio/synth-sfx","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.0":{"name":"@audio/synth-sfx","version":"1.0.0","keywords":["audio","synth","sfx","zzfx","chiptune"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-sfx@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"3382fdea73d97c948b64faa3fd01a420ddcd92df","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.0.0.tgz","fileCount":3,"integrity":"sha512-kfjQHvvxSm6+gkqaGM11wROvEEWj95Ap4AY5Rmehw/7ngYradf5EaRyZ9CkqBI/kW5Go7/8RfbnIhTB+XIpOuA==","signatures":[{"sig":"MEUCIQCwVp3vGv9P7VhuF2201ZomymUsdUWnpYQf7oqa5G/yYQIgBhI9DlC8359NHYL4DqTmiPl5hAAbCBCfEURlYhdpWgo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4113},"main":"sfx.js","type":"module","engines":{"node":">=18"},"exports":{".":"./sfx.js","./package.json":"./package.json"},"gitHead":"65821410d0140e5b5cdb0e679b437abe04a57dfd","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-sfx_1.0.0_1783548358965_0.6939720479762514","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/synth-sfx","version":"1.1.0","keywords":["audio","synth","sfx","zzfx","chiptune"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-sfx@1.1.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"atom":"./atom.js","dist":{"shasum":"bf9939ed7e77463ad3867dc6d732bf6102c81b42","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.1.0.tgz","fileCount":4,"integrity":"sha512-KqIoMJBWAf9ZGkejw4zrwsjkkCZ2fC0ZVWm6+9/pcfT3HZb+3ktLsvCe1xVmHp0Bo5iTft1vJ/2a2lpY22LsjQ==","signatures":[{"sig":"MEQCIE620z/rwZ4R3mmRVU5/LFKWYqosWSV7xZ1LlK1TNsWIAiBoIndeWr2THGWdVKDQYb2iv9wPvi+Plw/y1fiUlwwpog==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5066},"main":"sfx.js","type":"module","engines":{"node":">=18"},"exports":{".":"./sfx.js","./atom":"./atom.js","./package.json":"./package.json"},"gitHead":"f2458e903e5896eaa660c9e00cd1476613d2b58f","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-sfx_1.1.0_1783635192773_0.13070438526301942","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@audio/synth-sfx","version":"1.1.1","keywords":["audio","synth","sfx","zzfx","chiptune"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-sfx@1.1.1","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"0b95ee346150ffd85186f1aa2986b3bfc420c22b","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.1.1.tgz","fileCount":4,"integrity":"sha512-bvwt5n/I40LeWyq2UV9cf5tBbwCcT2EniB9CuCbVEUNMzu2V8ztVpklsEcJxKN1Q9X6XWYTk7RB7fsH3Kh2xRA==","signatures":[{"sig":"MEQCIE9lW8ox8hdRy5WV9jIE/cWCffHG1oVY7LIQ2UcoJk1ZAiAyCLtGoauGz7liYQtRAnteDdQzV7h42QEtVARy5InAgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5071},"main":"sfx.js","type":"module","audio":"./audio.js","engines":{"node":">=18"},"exports":{".":"./sfx.js","./audio":"./audio.js","./package.json":"./package.json"},"gitHead":"baa735f8d48ff20c8c4462325fa730e963a320aa","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-sfx_1.1.1_1783644961890_0.860544289374986","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@audio/synth-sfx","version":"1.1.2","keywords":["audio","synth","sfx","zzfx","chiptune"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-sfx@1.1.2","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"23d85ebeeffbb2da67596816faf8368c7e4a4e00","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.1.2.tgz","fileCount":5,"integrity":"sha512-ExePqBitIn0zWSmvDaK84uVJMMmEUvG0AhKthb9vTu0lIK5Vm4N9stQ4oSi9U6rbJIshUa0OPoN3bmemAOW02Q==","signatures":[{"sig":"MEQCIByzQkjL+aWeYPFhZLQtyuVlGNMikddLcP+JrvMttiDqAiAIjkRDsbBydCU5p10DsI5coHu9kQp3NKGi37Z/B3gIUQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6438},"main":"sfx.js","type":"module","audio":"./audio.js","engines":{"node":">=18"},"exports":{".":"./sfx.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"gitHead":"9f73eed77e399f2d104760a7c5a5ac1851f75d3d","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-sfx_1.1.2_1783701867233_0.5251093992467692","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@audio/synth-sfx","version":"1.1.3","keywords":["audio","synth","sfx","zzfx","chiptune"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/synth-sfx@1.1.3","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/synth#readme","bugs":{"url":"https://github.com/audiojs/synth/issues"},"dist":{"shasum":"8529273d656c744a34dba1e069d9d2b7ba56068a","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.1.3.tgz","fileCount":6,"integrity":"sha512-9lGPhIFyR8ehaDrRfhXw5oSiTIAz3FldPucmXfkWoBKOyLoiihqxNgNrv8kfwx2uGmvuKprLwea7Rp2oup7vYA==","signatures":[{"sig":"MEYCIQDaOY/Hud17iHO/qCzWudInunrWUfqsMAnGRV2gdB4qIQIhAMSZPcYVA7GvxWs45M/CE/Ik/PdS4ZZUnQP9PbIpNCzd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9694},"main":"sfx.js","type":"module","audio":"./audio.js","types":"sfx.d.ts","engines":{"node":">=18"},"exports":{".":"./sfx.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"06ea1dd11eb9420b4aacd5ff05916db7c526c811","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/synth.git","type":"git","directory":"packages/synth-sfx"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/synth-sfx_1.1.3_1783731959806_0.5906846509893608","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"_id":"@audio/synth-sfx@1.1.4","bugs":{"url":"https://github.com/audiojs/synth/issues"},"dist":{"shasum":"83645043cff2a013c8b951fe352061086a8673e8","tarball":"https://registry.npmjs.org/@audio/synth-sfx/-/synth-sfx-1.1.4.tgz","fileCount":6,"integrity":"sha512-XoBgoxIoCCr3GYEHwZp42zzGsWA2viSLoKGAEPq/TapRN5GBfZWcUHCK4JsXHNJ+MoV/tvaAai/BLVB1TgFtBw==","signatures":[{"sig":"MEQCIG94ezgT01OSxbqzSwIFWntp/64fe/8KYVm4wm3hyUyFAiBGcv5C9f7lxKdl4258gtSKokBUilZ5S2YU062L+kJO/Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBklmPKli9pLeHrbW8/i73oBfRaQxoQan51mtY3CSJfVAiEAud2GQ7EzDF2SMKmLmsWVWqJB0BrtZ6+iTXt3Qge7F9o="}],"unpackedSize":9921},"main":"sfx.js","name":"@audio/synth-sfx","type":"module","audio":"./audio.js","types":"sfx.d.ts","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"engines":{"node":">=18"},"exports":{".":"./sfx.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"6de5b49829a49844a59d2a46a06f714b3df0a572","license":"MIT","version":"1.1.4","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"homepage":"https://github.com/audiojs/synth#readme","keywords":["audio","synth","sfx","zzfx","chiptune"],"repository":{"url":"git+https://github.com/audiojs/synth.git","type":"git","directory":"packages/synth-sfx"},"_npmVersion":"11.12.1","description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/synth-osc":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/synth-sfx_1.1.4_1790633912817_0.7032751955405783"}}},"time":{"created":"2026-07-08T22:05:58.757Z","modified":"2026-09-28T22:18:33.091Z","1.0.0":"2026-07-08T22:05:59.103Z","1.1.0":"2026-07-09T22:13:12.953Z","1.1.1":"2026-07-10T00:56:02.009Z","1.1.2":"2026-07-10T16:44:27.382Z","1.1.3":"2026-07-11T01:05:59.965Z","1.1.4":"2026-09-28T22:18:32.899Z"},"bugs":{"url":"https://github.com/audiojs/synth/issues"},"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","homepage":"https://github.com/audiojs/synth#readme","keywords":["audio","synth","sfx","zzfx","chiptune"],"repository":{"url":"git+https://github.com/audiojs/synth.git","type":"git","directory":"packages/synth-sfx"},"description":"Game/UI sound effects generator — ZZFX / ChipTone class parameterized synthesis","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/synth-sfx [![npm](https://img.shields.io/npm/v/@audio/synth-sfx)](https://www.npmjs.com/package/@audio/synth-sfx) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nZZFX-class parameterized SFX, 8 deterministic presets\n\n```\nnpm install @audio/synth-sfx\n```\n\n```js\nimport sfx, { PRESETS } from '@audio/synth-sfx'\n```\n\nGame/UI sound-effect generator (ZZFX/sfxr class): one parameterized pipeline — shaped oscillator → frequency slide/vibrato/arpeggio → ADSR-ish envelope → optional lowpass/bitcrush — behind 8 named presets covering the sfxr archetypes (`pickup`, `laser`, `explosion`, `powerup`, `hit`, `jump`, `blip`, `coin`). Every field is overridable; noise is seeded, so renders are reproducible.\n\n```js\nsfx('laser')                          // named preset\nsfx('coin', { seed: 42 })             // preset + override\nsfx({ freq: 500, shape: 'square' })   // full custom parameter object\n```\n\n| Param | Default | |\n|---|---|---|\n| `preset` | `'blip'` | Preset name or full parameter object (positional) |\n| `freq` | preset | Base frequency, Hz |\n| `shape` | preset | `'sine'` \\| `'square'` \\| `'saw'` \\| `'triangle'` \\| `'noise'` |\n| `slide` | `0` | Octaves/second exponential pitch slide |\n| `vibrato` / `vibratoDepth` | `0` / `0.1` | Hz / depth |\n| `arp` / `arpAt` | `0` / `0.05` | Frequency multiplier stepped at `arpAt` seconds |\n| `attack` / `sustain` / `release` | `0.005` / `0.08` / `0.12` | Seconds |\n| `lowpass` | `0` | One-pole lowpass cutoff, Hz (0 = off) |\n| `crush` | `0` | 0..1 bitcrush amount |\n| `amp` | `0.8` | Peak amplitude |\n| `seed` | — | Noise PRNG seed |\n| `fs` | `44100` | Sample rate |\n\n**Use when:** deterministic game/UI SFX without shipping audio assets.\n\n---\n\nPart of [@audio/synth](https://github.com/audiojs/synth) — the synth family umbrella.\n\nMIT © [audiojs](https://github.com/audiojs)\n","readmeFilename":"README.md"}