utils/music_theory/music_theory
Krzysztof kuhy Rudnicki 26c55675dd music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets
Code-generated sound effects for spellcode (no AI audio, no sfxr port):
seeded white/pink noise and grain gates (noise), a phase-accumulating
oscillator over glide/vibrato/arpeggio/jump/retrigger pitch curves plus
ring mod (sweep), exponential and punch envelopes (envelopes), resonant
RBJ low/high/band-pass with a moving cutoff (biquad), and an sfxr-style
layered parameter set rendered at 44.1 kHz by default (sfx).

Presets: cast/hit/impact for arcane, fire, water, lightning, earth and
wind, plus dodge, parry_normal, parry_perfect and fizzle, following R1's
per-element recipes (arcane's is new). `python -m music_theory sfx --out
DIR` writes 16-bit mono WAVs and a SHA-256 manifest; manifest.entry now
takes any Recordable (Recipe or Sfx). analysis gains band_energy and
spectral_slope, which the tests use as the oracle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016o4CqWFZwpfiDj8csAPgLa
2026-10-19 11:27:49 +02:00
..
tests music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
__init__.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
__main__.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
analysis.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
biquad.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
chords.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
cli.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
compose.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
degrade.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
demo_support.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
demos_a.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
demos_b.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
demos.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
envelopes.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
manifest.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
noise.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
pitch.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
progressions.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
scales.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
sequencer.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
sfx_layers.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sfx_presets_a.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sfx_presets_b.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sfx_presets.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sfx_render.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sfx.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
sweep.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
synth.py music_theory: sfx module -- noise, sweeps, biquads and 22 spellcode presets 2026-10-19 11:27:49 +02:00
tuning.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00
wav.py music_theory: music theory from first principles, as code you can hear 2026-09-11 18:29:13 +02:00