Files
Claude 56fc668188 feat: Score.render() and Score.to_wav() convenience API
Getting audio out of a Score required importing render_score (and
SAMPLE_RATE) from the internal pytheory.play module and hand-writing a WAV
file. Add two ergonomic methods alongside save_midi():

- score.render() -> the finished (N, 2) float32 stereo mix
- score.to_wav(path) -> render and save a 16-bit stereo WAV

Both are headless (no speakers/PortAudio). Docs (playback guide) and the
composing skill updated to lead with them; +2 tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ijpMiuST8kXnBoB5pSu8t
2026-06-17 01:23:11 +00:00
..