From 3b11efcd702ad6e2e5c92d4bb8f1a07f3f58132e Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 13 Oct 2024 14:02:36 +0200 Subject: [PATCH] [py] fix output in demo_notes.py (closes gh-411, thanks to @ensonic) note_str was not used. --- python/demos/demo_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/demos/demo_notes.py b/python/demos/demo_notes.py index 301013a6..978d8955 100755 --- a/python/demos/demo_notes.py +++ b/python/demos/demo_notes.py @@ -32,6 +32,6 @@ while True: new_note = notes_o(samples) if (new_note[0] != 0): note_str = ' '.join(["%.2f" % i for i in new_note]) - print("%.6f" % (total_frames/float(samplerate)), new_note) + print("%.6f %s" % ((total_frames/float(samplerate)), note_str)) total_frames += read if read < hop_s: break -- 2.11.0