python/demos/demo_timestretch*: use // to yield an integer (closes #71)
authorPaul Brossier <piem@piem.org>
Wed, 16 Nov 2016 09:54:14 +0000 (10:54 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 16 Nov 2016 09:54:14 +0000 (10:54 +0100)
python/demos/demo_timestretch.py
python/demos/demo_timestretch_online.py

index 94a1b5f..2271d01 100755 (executable)
@@ -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
 
index 89a0dc6..1ae1773 100755 (executable)
@@ -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