From 1929be4c880ca872dd79f0d8dfa77145721d1b52 Mon Sep 17 00:00:00 2001 From: Ancor Cruz Date: Tue, 15 May 2018 19:24:55 +0100 Subject: [PATCH] python/demos/demo_pitch_sinusoid.py: use // to yield an integer --- python/demos/demo_pitch_sinusoid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/demos/demo_pitch_sinusoid.py b/python/demos/demo_pitch_sinusoid.py index 629f3273..b7ef7b42 100755 --- 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) -- 2.11.0