mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-07-21 18:19:30 +00:00
42ac7292cb
Score.to_lilypond() gains chord_names/fretboards/tab flags (plus chord_part and fretboard) that render a chord part as a lead sheet from a single \chordmode block. Fret diagrams use PyTheory's own Fretboard voicings via \storePredefinedDiagram, so they match what it would actually play rather than LilyPond's computed defaults. New helper _chord_to_chordmode(chord) derives the chordmode modifier from Chord.quality (faithful even when the symbol re-spells, e.g. C6 -> Am7). Default output is unchanged. Verified by compiling the output with LilyPond 2.26 (lead sheet + a 17-quality battery, incl. m7+ and aug7). Adds 7 tests (string assertions + a lilypond-compile test marked slow). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>