listening-to-music
Listening to music
Claude hears nothing, but it can render audio in the real engine and measure it. Set up the loop render → look → measure → change one thing → re-render, and keep a table of the numbers per version. A version is better when a number you chose beforehand moves by more than the take-to-take noise, and the spectrogram shows the same thing.
Requirements: Node with playwright and Chromium (preinstalled in Claude Code on the web),
Python with librosa soundfile scipy matplotlib pillow, and for sheet music
music21 verovio mir_eval cairosvg
(pip install --break-system-packages librosa music21 verovio mir_eval cairosvg). The first render installs @strudel/web into
~/.cache/listening-to-music/. All scripts live in scripts/; run them with --help or read the
docstring for options.