From 8489d7b351ae6a93c633fdfc10a2ad6abd23592b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 16 Nov 2016 10:54:14 +0100 Subject: [PATCH] python/demos/demo_timestretch*: use // to yield an integer (closes #71) --- python/demos/demo_timestretch.py | 2 +- python/demos/demo_timestretch_online.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0