From: Ancor Cruz Date: Tue, 15 May 2018 18:24:55 +0000 (+0100) Subject: python/demos/demo_pitch_sinusoid.py: use // to yield an integer X-Git-Tag: 0.4.7~33^2 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=1929be4c880ca872dd79f0d8dfa77145721d1b52;p=aubio.git python/demos/demo_pitch_sinusoid.py: use // to yield an integer --- 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)