mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-07-21 18:19:30 +00:00
56fc668188
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