python/demos/demo_pitch_sinusoid.py: use // to yield an integer
authorAncor Cruz <hello@ancorcruz.com>
Tue, 15 May 2018 18:24:55 +0000 (19:24 +0100)
committerAncor Cruz <hello@ancorcruz.com>
Tue, 15 May 2018 18:24:55 +0000 (19:24 +0100)
python/demos/demo_pitch_sinusoid.py

index 629f327..b7ef7b4 100755 (executable)
@@ -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)