This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
A single Bash script (flac-alac-converter.sh) that batch-converts FLAC files to ALAC (.m4a) using ffmpeg. No build system, no tests, no dependencies beyond ffmpeg.
chmod +x flac-alac-converter.sh
./flac-alac-converter.sh # convert all albums
./flac-alac-converter.sh --dry-run # preview, no files written
./flac-alac-converter.sh file.flac # convert a single fileNever add a Co-Authored-By: Claude trailer to commit messages.
- In batch mode (no arguments), the script auto-discovers all subdirectories containing
.flacfiles, skipping any already-convertedALAdirs. - Output directories are named
<album> ALA(sibling to the source directory). ffmpegflags:-c:a alac -c:v copy— lossless audio conversion, video stream (cover art) copied unchanged.(( i++ )) || trueand(( total++ )) || trueare intentional:(( expr ))exits 1 when expr is 0, so|| trueprevents zsh from aborting in strict mode.- ffmpeg is the only runtime dependency — assume it is installed via Homebrew on macOS.