From f74d496e4687c92abf6bf88b433ea36532ce8f10 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 18 Dec 2023 17:59:49 +0100 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 3cea4bacb..2ef18a6dd 100755 --- a/bin/hz.py +++ b/bin/hz.py @@ -46,7 +46,9 @@ def hz(freq): note_index = n % 12 note = notes[note_index] - click.echo(f"hz({freq}) is {note}.") + octave = 4 + (n // 12) + + click.echo(f"hz({freq}) is {note}{str(octave)}.") if __name__ == '__main__':