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__':