ref: 1929be4c880ca872dd79f0d8dfa77145721d1b52
parent: 967e4041f21d7eec9db319db98a37489aa19460c
author: Ancor Cruz <hello@ancorcruz.com>
date: Tue May 15 15:24:55 EDT 2018
python/demos/demo_pitch_sinusoid.py: use // to yield an integer
--- a/python/demos/demo_pitch_sinusoid.py
+++ b/python/demos/demo_pitch_sinusoid.py
@@ -37,7 +37,7 @@
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)