audio-loop
Audio Loop
Prepare a source that already joins continuously for Web Audio playback: optionally balance stereo, normalize loudness and encode FLAC. The pipeline does not repair source discontinuities; inspect the join before promising a seamless result.
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).