mirror of
https://github.com/kennethreitz/interpretations.git
synced 2026-06-05 23:00:19 +00:00
Compact metadata display — two lines, non-default tuning only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user