From 418443d8aaa211ab29eb8ebddd52ad2167ef6e8f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 1 Apr 2026 11:35:45 -0400 Subject: [PATCH] =?UTF-8?q?Compact=20metadata=20display=20=E2=80=94=20two?= =?UTF-8?q?=20lines,=20non-default=20tuning=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- play.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/play.py b/play.py index b899cac..516b7df 100644 --- a/play.py +++ b/play.py @@ -599,8 +599,17 @@ def main(): # ── Play ─────────────────────────────────────────────────────── # Build info lines for the player UI info = [] - info.append(f"{score.time_signature} {score.bpm} BPM {len(score.parts)} parts") - info.append(f"{score.system} {score.temperament} A={score.reference_pitch} Hz") + parts = f"{score.time_signature} {score.bpm} BPM {len(score.parts)} parts" + extras = [] + if score.system != "western": + extras.append(score.system) + if score.temperament != "equal": + extras.append(score.temperament) + if score.reference_pitch != 440.0: + extras.append(f"A={score.reference_pitch} Hz") + if extras: + parts += " — " + " ".join(extras) + info.append(parts) play_audio(buf, sr, title=title, info_lines=info)