mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
autopushed
This commit is contained in:
@@ -46,7 +46,9 @@ def hz(freq):
|
|||||||
note_index = n % 12
|
note_index = n % 12
|
||||||
note = notes[note_index]
|
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__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user