projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1070378
)
python/demos/demo_yin_compare.py: fix indentation
author
Paul Brossier
<piem@piem.org>
Mon, 24 Jul 2017 13:16:22 +0000
(15:16 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 24 Jul 2017 13:16:22 +0000
(15:16 +0200)
python/demos/demo_yin_compare.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_yin_compare.py
b/python/demos/demo_yin_compare.py
index
92dc015
..
6842368
100755
(executable)
--- a/
python/demos/demo_yin_compare.py
+++ b/
python/demos/demo_yin_compare.py
@@
-25,8
+25,8
@@
def sqd_yin(samples):
W = B//2
yin = np.zeros(W)
for j in range(W):
- for tau in range(1, W):
- yin[tau] += (samples[j] - samples[j+tau])**2
+
for tau in range(1, W):
+
yin[tau] += (samples[j] - samples[j+tau])**2
return yin
def sqd_yinfast(samples):