From 95514033ddadf4a912cdd9d5ea2fc98c73e6fca6 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 10 Aug 2026 13:12:50 +0200 Subject: [PATCH] autopushed --- bin/hz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/hz.py b/bin/hz.py index d5415c00c..19c20e37c 100755 --- a/bin/hz.py +++ b/bin/hz.py @@ -57,11 +57,13 @@ def hz(freq): note_name = f"{note}{octave}" cents_str = f" ({'+' if cents > 0 else ''}{cents} cents)" if cents != 0 else " (perfect pitch)" + freq_display = int(freq) if freq.is_integer() else freq - click.echo(f"[[hz/{freq}]] is closest to [[{note_name}]] at [[{freq}]] Hz{cents_str}.") + click.echo(f"[[hz/{freq_display}]] is closest to [[{note_name}]] at [[{freq_display}]] Hz{cents_str}.") click.echo(f"Note class: [[{note}]], Octave: [[octave/{octave}]].") if __name__ == '__main__': hz() +