From: Paul Brossier Date: Wed, 16 Nov 2016 09:54:14 +0000 (+0100) Subject: python/demos/demo_timestretch*: use // to yield an integer (closes #71) X-Git-Tag: 0.4.4~158 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=8489d7b351ae6a93c633fdfc10a2ad6abd23592b;p=aubio.git python/demos/demo_timestretch*: use // to yield an integer (closes #71) --- diff --git a/python/demos/demo_timestretch.py b/python/demos/demo_timestretch.py index 94a1b5f5..2271d01a 100755 --- a/python/demos/demo_timestretch.py +++ b/python/demos/demo_timestretch.py @@ -12,7 +12,7 @@ from aubio import unwrap2pi, float_type import numpy as np win_s = 1024 -hop_s = win_s / 8 # 87.5 % overlap +hop_s = win_s // 8 # 87.5 % overlap warmup = win_s // hop_s - 1 diff --git a/python/demos/demo_timestretch_online.py b/python/demos/demo_timestretch_online.py index 89a0dc63..1ae1773b 100755 --- a/python/demos/demo_timestretch_online.py +++ b/python/demos/demo_timestretch_online.py @@ -12,7 +12,7 @@ from aubio import unwrap2pi, float_type import numpy as np win_s = 1024 -hop_s = win_s / 8 # 87.5 % overlap +hop_s = win_s // 8 # 87.5 % overlap warmup = win_s // hop_s - 1