projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46f7846
)
[py] fix output in demo_notes.py (closes gh-411, thanks to @ensonic)
author
Stefan Sauer
<st.kost+github@gmail.com>
Sun, 13 Oct 2024 12:02:36 +0000
(14:02 +0200)
committer
Paul Brossier
<piem@piem.org>
Sat, 15 Nov 2025 11:25:24 +0000
(12:25 +0100)
note_str was not used.
python/demos/demo_notes.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_notes.py
b/python/demos/demo_notes.py
index
301013a
..
978d895
100755
(executable)
--- 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