Song Compress
song_compressCompress a song's stems and named WAV renders to bit-exact FLAC, report space savings and skipped files by default, or write verified FLACs and move originals to _reclaim when dry=False.
Instructions
A finished song's stems and named renders as FLAC, bit for bit: about a fifth of the space. One song per call, run by its owner or the user (no sweep over songs). dry=True (the default) only reports: the files, GB now, GB after (estimated from a few files), what is skipped and why, and the song's own scripts that name a .wav (their owners' code: they read WAV only). dry=False writes each FLAC at the WAV's bit depth, reads it back and compares every sample, and only then moves the WAV to the reclaim folder at the root of the drive: /reclaim/flac// (D:_reclaim on Windows; its manifest.json lists every move, README.txt names the folder). It never deletes: the space comes back when the user deletes that folder. Scope: renders/stems/, the reference's stems folder, renders/*.wav except latest.wav (a latest.wav that copies a named render becomes a hard link to it). Never touched: float WAVs (FLAC has no float), anything under live/, sounds/, takes, exam folders, and the folders Voice keeps (boom_trance/takes, vox/exam/clips, vox/work/cache, vox/rec). Every reader in ismail finds .flac when .wav is gone; a new render writes WAV again and wins. dry=False runs in a CPU slot on the shared machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry | No | ||
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |