History

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

Paul Brossier committed 10 years ago

Commit 8489d7b1 parent 8d41c1d2 files · +2 −2Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/demos/demo_timestretch.py +1 −1
  2. python/demos/demo_timestretch_online.py +1 −1
python/demos/demo_timestretch.py+1−1
@@ -12,7 +12,7 @@ from aubio import unwrap2pi, float_type · 11 unmodified lines
1212 import numpy as np
1313
1414 win_s = 1024
15−hop_s = win_s / 8 # 87.5 % overlap
15+hop_s = win_s // 8 # 87.5 % overlap
1616
1717 warmup = win_s // hop_s - 1
1818
python/demos/demo_timestretch_online.py+1−1
@@ -12,7 +12,7 @@ from aubio import unwrap2pi, float_type · 11 unmodified lines
1212 import numpy as np
1313
1414 win_s = 1024
15−hop_s = win_s / 8 # 87.5 % overlap
15+hop_s = win_s // 8 # 87.5 % overlap
1616
1717 warmup = win_s // hop_s - 1
1818

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t