audio-loop
Audio Loop
Produce a web-ready seamless audio loop from any source clip: auto-correct stereo balance, normalize loudness, encode lossless FLAC so AudioBufferSourceNode{loop:true} plays it sample-accurate and gapless, emit a drop-in Web Audio snippet that unlocks playback on the first user gesture.
All ffmpeg work happens in scripts/audio-loop.sh — this skill validates the source, orchestrates the pipeline, and turns the script's summary into a report plus a ready-to-paste JS snippet.
Parameters
| Flag | Default | Description |
|---|---|---|
-t <LUFS> |
-28 |
Integrated loudness target (ambient web default) |
-v <0..1> |
0.6 |
Target volume baked into the emitted JS snippet |
-o <dir> |
input dir | Output directory |
-s |
off | Save to ~/.agents/output/{project}/audio-loop/{slug}/ |
-S |
off | Force no-save |
-B |
off | Disable stereo balance auto-correction |
Where each flag is handled. -t, -o, and -B pass through to scripts/audio-loop.sh. -v is skill-only — the agent reads it from $ARGUMENTS and interpolates it into the TARGET constant of the emitted JS snippet; the script never sees it. -s / -S follow the repo save-mode convention — the agent translates -s into an -o <save_path> passed to the script, where <save_path> is ~/.agents/output/{project}/audio-loop/{slug}/ ({project} = kebab-cased basename of the git toplevel, else cwd; create it $HOME-expanded, report the fully-expanded absolute path — no tilde, no magic).