projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
967e404
)
python/demos/demo_pitch_sinusoid.py: use // to yield an integer
author
Ancor Cruz
<hello@ancorcruz.com>
Tue, 15 May 2018 18:24:55 +0000
(19:24 +0100)
committer
Ancor Cruz
<hello@ancorcruz.com>
Tue, 15 May 2018 18:24:55 +0000
(19:24 +0100)
python/demos/demo_pitch_sinusoid.py
patch
|
blob
|
history
diff --git
a/python/demos/demo_pitch_sinusoid.py
b/python/demos/demo_pitch_sinusoid.py
index
629f327
..
b7ef7b4
100755
(executable)
--- a/
python/demos/demo_pitch_sinusoid.py
+++ b/
python/demos/demo_pitch_sinusoid.py
@@
-37,7
+37,7
@@
freqs[ pointer : pointer + partition ] = 1480
pointer += partition
pointer += partition
-freqs[ pointer : pointer + partition ] = 400 + 5 * np.random.random(sin_length/8)
+freqs[ pointer : pointer + partition ] = 400 + 5 * np.random.random(sin_length/
/
8)
a = build_sinusoid(sin_length, freqs, samplerate)