Logo von Procedural Audio

Procedural Audio

Community
sxhzju
procedural-audio

Compose and render original music and sound effects offline in Python. Use for audio generation, synthesis, stingers, loops, risers, whooshes, impacts, UI blips and ambiences. Includes a renderer and setup instructions for downloading Surge XT, sfizz and SFZ libraries. Use sfx-sources when the user wants to download existing clips.

Übersicht

Herausgebersxhzju
Repositorysound
Skill-Nameprocedural-audio
Sterne
38
Forks
0
Mitgelieferte Dateien
5
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 5

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von sxhzju auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Procedural Audio in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/sxhzju/sound/tree/main/procedural-audio
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sxhzju/sound.git /tmp/sound
mkdir -p .claude/skills
cp -r /tmp/sound/procedural-audio .claude/skills/procedural-audio
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Procedural Audio in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Procedural Audio automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Procedural Audio nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Procedural music & SFX

Rendering runs offline after the user installs the required tools. Do not assume any plugins, Python packages, presets or sample libraries are already installed.

Setup before first use

Read references/setup.md when setting up a new machine or resolving missing dependencies. It links to official downloads for Surge XT, sfizz, VSCO 2 CE and VCSL, explains Python installation, and documents the SOUND_* path settings. Install only the resources needed for the task.

The renderer is bundled as scripts/audio_backend.py; no external local_music module is needed. Pure Python synthesis and analysis work without instrument plugins or sample libraries. Surge presets require Surge XT VST3; SFZ instruments require sfizz VST3 and downloaded samples. requirements.txt lists the Python dependencies.

Examples assume installation at .claude/skills/procedural-audio/ relative to the user's project root. Activate the virtual environment from the setup guide, then use its python for all commands and render scripts.

Run doctor to inspect configured paths, then find and probe to verify the resources needed for this task. Use actual results from the user's installation; preset names and sample mappings below are examples, not a guaranteed installed inventory.

Kit

scripts/audio_kit.py wraps the repetitive parts. Use the CLI to pick sounds:

K=.claude/skills/procedural-audio/scripts/audio_kit.py
python "$K" doctor                            # show configured paths and missing optional resources
python "$K" find "kick" [--kind surge|sfz]   # prints load() specs: "Drums/T8 Kick 1", "VSCO-2-CE-1.1.0/Harp.sfz"
python "$K" probe "Pads/Film" 57 69          # attack, decay, spectral peaks (MIDI) early vs late
python "$K" sfzmap "Mark Trees.sfz"          # which key/velocity plays which sample
python "$K" check out.wav --bpm 140 --png /tmp/x.png   # peak, LUFS, loudness per beat, spectrogram

Then import it in your render script:

python
import sys; sys.path.insert(0, ".claude/skills/procedural-audio/scripts")
import audio_kit as ak

HIT = 1.5
mix = ak.timeline(HIT + 2.0)
cym = ak.load("Suspended Cymbal 1.sfz")                       # key 68 = hit (sfzmap)
rev = ak.reverse(ak.render(cym, [(68, 0, 1.0, 110)]))[:, -int(1.2 * ak.SR):]
ak.place(mix, ak.fade(rev, fade_in=0.4), HIT - rev.shape[1] / ak.SR, -8)
ak.place(mix, ak.noise_sweep(HIT, 300, 8000), 0, -10)          # riser
ak.place(mix, ak.render(ak.load("Drums/T8 Kick 1"), [(45, 0, 0.2, 127)]), HIT, -3)
ak.place(mix, ak.render(cym, [(68, 0, 1.0, 127)]), HIT, -4)
ak.place(mix, ak.sub_drop(), HIT, -3)
ak.write("impact.wav", ak.master(ak.fade(mix, fade_out=0.6)))
  • render() returns a peak-normalised (2, n) array, so levels are set only by the place(..., gain_db) call.
  • noise_sweep(dur, f0, f1) rises when f1 > f0 and falls (a whoosh) when f1 < f0.
  • sub_drop() makes a falling sine boom.
  • master() drives the limiter by a fixed 2 dB, then peaks at −1 dBFS.

Workflow

  1. On a new machine, follow the setup guide and verify the needed engine with probe before composing.
  2. Plan on a grid: tempo, key, bar-by-bar roles and the sync point (the hit). Write times as beats (B = 60 / BPM), not loose seconds.
  3. Pick sounds with find, then probe every pitched one you plan to use (see below). Read sfzmap for any VCSL percussion.
  4. Render one stem per part and place it on a timeline. Send related parts through a shared pedalboard bus: dry-ish drums, reverb/delay on music.
  5. Shape the dynamics on purpose. For a transition: keep the groove a few dB under, crescendo into the hit, leave a short gap (around an 8th note) right before it, and make the hit the loudest moment, followed by a tail.
  6. Verify, because you cannot listen. Run check and confirm the per-beat loudness follows the plan (build up, dip at the gap, peak at the hit). Then Read the spectrogram PNG.
  7. Deliver a 48 kHz / 24-bit WAV plus the generating script, so it can be re-rendered or tweaked. Tell the user where the sync point is (for example "hit at 3.43 s"). Keep stems and probe files in scratch space.

Probing: read the peaks before trusting a preset

Healthy pitched sounds show the played note plus its harmonics (+12, +19, +24), stable from early to late. Watch for:

  • Drift: peaks move between early and late (Pads/Galaxy Pad). Avoid these for chords.

  • Chord or interval presets: strong unrelated pitches, for example Chords/6 Osc Stab plays a whole chord from one key, and Pads/Film stacks a fifth (+7). Voice your chords with that in mind.

  • Octave offsets:

    • VSCO Glockenspiel sounds +12.
    • Plucks/Techno Stab is around −24.
    • Basses/Rounded, Useful and Warm Square sound −12.
    • Drum presets track pitch: Drums/T8 Kick 1 note 45 sounds A1 (55 Hz).

    Transpose to compensate, and check the SFZ key range (sfzmap) before writing notes outside it.

Gotchas

  • Notes at t=0: Surge renders silence for notes at exactly t=0. ak.render adds a 0.5 s lead-in and crops it. If you call audio_backend.render_notes directly, offset the notes yourself.
  • audio_backend.render_notes side effects: it always writes a WAV and quietly attenuates when the peak goes over 0.95. Don't rely on its levels across stems.
  • Preset names repeat across categories, and find_sounds matches substrings of the full path. Always load by "Category/Name"; find prints them. For example, Basic DCO Polysynth lives under Synths.
  • VCSL unpitched instruments map articulations to keys. For example, Suspended Cymbal 1 has 60–63 bowed, 64–67 crescendo rolls, 68 hits with velocity layers, and 69 bell; Mark Trees has 60 ascending, 61 descending and 62 fast ascending. A "cymbal" note can therefore turn out to be a roll.
  • Reversing: reverse one-shots with ak.reverse so silence is trimmed on both ends. Otherwise the swell peaks early.
  • Measuring loudness: raw RMS is dominated by sub-heavy kicks. Compare sections with K-weighted loudness (check, ak.kweighted_db).
  • Limiting: don't slam a limiter after summing. It flattens exactly the hit you want to stand out.
  • Run-to-run variation: some Surge presets contain randomness, so re-renders can differ by about 1–2 dB.
  • Built-in patterns: Sequences, Rhythms and Arps presets run their own internal patterns. Write the notes yourself when timing must lock to a BPM.
  • Target levels: around −16 to −14 LUFS with peaks at −1 dBFS works well for video beds and stingers.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Procedural Audio?

Compose and render original music and sound effects offline in Python. Use for audio generation, synthesis, stingers, loops, risers, whooshes, impacts, UI blips and ambiences. Includes a renderer and setup instructions for downloading Surge XT, sfizz and SFZ libraries. Use sfx-sources when the user wants to download existing clips.

Warum Procedural Audio in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Procedural Audio besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Procedural Audio in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/sxhzju/sound/tree/main/procedural-audio ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Procedural Audio nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Procedural Audio verwenden?

So viele Sie möchten. In TypingMind können Sie Procedural Audio mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Procedural Audio kostenlos?

Der Skill wird von sxhzju auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇