Skip to main content

uppercut-sound-effect-synth

Procedural sound effects that render the same way every time. It provides envelopes, band-limited noise, zero-phase and sweeping filters, pitch sweeps, soft saturation, a seeded random source, 8/16/24-bit WAV writing, thirteen ready-made sounds (whoosh, riser, impact, click, ding and more) and a pack renderer that writes a manifest of SHA-256 hashes. The same seed, sound name and take give identical samples and an identical WAV file on the same NumPy version and platform. The only dependency is NumPy.

Install

pip install uppercut-sound-effect-synth

Example

from uppercut_sound_effect_synth import render, write_wav, render_pack

audio = render("impact", seed=7)            # (n, 2) float array, peak -3 dBFS
write_wav("impact.wav", audio)              # returns the file's SHA-256

render_pack("sfx", ["whoosh", "click"], seed=7, bits=16)   # also writes sfx/manifest.json

Your own recipe is a function (rng, rate) -> 1-D array:

from uppercut_sound_effect_synth import render, tone, envelope

beep = {"beep": lambda rng, rate: tone(1000, rate // 5, rate) * envelope(rate // 5, 0.002, 2.0, rate)}
audio = render("beep", sounds=beep, seed=1)

Command line:

uppercut-sound-effect-synth --list
uppercut-sound-effect-synth --out sfx --only whoosh,click --seed 7 --bits 16 --preview

Functions

Function What it does
render(name, seed=7, take=0, sounds=None, rate=48000, peak_db=-3.0, tail=0.05, width=0.15, channels=2) Renders one sound. The generator is seeded from seed, name and take, so a new take is a new variation.
render_pack(out, names=None, seed=7, take=0, sounds=None, rate, bits=24, channels=2, peak_db, preview=False) Writes WAV files and manifest.json; returns the manifest.
write_wav(path, x, rate=48000, bits=24) / wav_bytes(...) / pcm_bytes(x, bits) WAV output. write_wav returns the SHA-256.
Rng(seed), derive_seed(seed, *labels) Seeded random source: unit, uniform, normal, white, choice.
envelope(n, attack, curve, rate), exp_decay(n, time_constant, attack, rate), fade(x, fade_in, fade_out, rate) Amplitude shapes.
lowpass, highpass, bandpass, band_noise(rng, n, low, high), sweep_lowpass(x, f0, f1) Filters; Butterworth magnitude response, applied zero-phase.
tone(freq, n, rate, phase), sweep(f0, f1, n, log=True) Sine oscillator with a constant or per-sample frequency; frequency curves.
saturate(x, drive), mix_into(buf, x, at, gain, rate), finish(x, peak_db, tail, width, channels, rng, rate), seconds(duration, rate) Saturation, mixing, final level and stereo width, sample counts.

Built-in names: whoosh, whoosh-short, riser, impact, sub-drop, click, tick, pop, shimmer, glitch, type, ding, swell.

Errors

Error Raised when
KeyError A sound name is not in the table.
ValueError A cutoff is outside 0 to Nyquist, bits is not 8, 16 or 24, channels is not 1 or 2, or an argument is out of range.

License

MIT

Metadata

Release files for uppercut-sound-effect-synth 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uppercut-sound-effect-synth 0.1.0
File Size Uploaded Provenance Actions
uppercut_sound_effect_synth-0.1.0.tar.gz 12.1 kB Without provenance Details for uppercut_sound_effect_synth-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uppercut-sound-effect-synth 0.1.0
File Interpreter ABI Platform Actions
uppercut_sound_effect_synth-0.1.0-py3-none-any.whl Python 3 none any Details for uppercut_sound_effect_synth-0.1.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / uppercut_sound_effect_synth-0.1.0.tar.gz

Download URL uppercut_sound_effect_synth-0.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d3d1058c12669cdeb88c3166911f2d56a40497b2631df3734ffc74f7bf5d260d
BLAKE2b-256 checksum
How to use checksums
11d0c2a410497ea3a84f741514f2f790f3ffe2125c04af07112b22827acdd133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / uppercut_sound_effect_synth-0.1.0-py3-none-any.whl

Download URL uppercut_sound_effect_synth-0.1.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcba5f2311c5a6daa113b8950d3826c4687731c0a375ed5234033844e19b9410
BLAKE2b-256 checksum
How to use checksums
e66987b9b0fdbd5ef9a42fb8f9e665f7ef5da2317d8e867742038c81271ca2aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for uppercut-sound-effect-synth 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page