History

python/lib/aubio/slicing.py: also add end if adding start at 0

Paul Brossier committed 12 years ago

Commit 35a44e91 parent 6fbee461 file · +2 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/aubio/slicing.py+2−0
@@ -13,6 +13,8 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, · 12 unmodified lines
1313
1414 if timestamps[0] != 0:
1515 timestamps = [0] + timestamps
16+ if timestamps_end != None:
17+ timestamps_end = [timestamps[1] - 1] + timestamps_end
1618
1719 if timestamps_end != None:
1820 if len(timestamps_end) != len(timestamps):

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