shithub: aubio

Download patch

ref: 8489d7b351ae6a93c633fdfc10a2ad6abd23592b
parent: 8d41c1d20e7ca182428a9b247dea47b165901b0b
author: Paul Brossier <piem@piem.org>
date: Wed Nov 16 05:54:14 EST 2016

python/demos/demo_timestretch*: use // to yield an integer (closes #71)

--- a/python/demos/demo_timestretch.py
+++ b/python/demos/demo_timestretch.py
@@ -12,7 +12,7 @@
 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
 
--- a/python/demos/demo_timestretch_online.py
+++ b/python/demos/demo_timestretch_online.py
@@ -12,7 +12,7 @@
 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