History

[py] add a note about missing last timestamp to slice_source_at_stamps docs

Paul Brossier committed 8 years ago

Commit 97a8bef1 parent 5c6a8581 file · +7 −1Browse files

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

Unified · Split

python/lib/aubio/slicing.py+7−1
@@ -27,7 +27,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, · 26 unmodified lines
27 The default `samplerate` is 0, meaning the original sampling rate27 The default `samplerate` is 0, meaning the original sampling rate
28 of `source_file` will be used. When using a sampling rate28 of `source_file` will be used. When using a sampling rate
29 different to the one of the original files, `timestamps` and29 different to the one of the original files, `timestamps` and
30 `timestamps_end` should be expressed in re-sampled samples.30 `timestamps_end` should be expressed in the re-sampled signal.
31 31
32 The `hopsize` parameter simply tells :class:`source` to use this32 The `hopsize` parameter simply tells :class:`source` to use this
33 hopsize and does not change the output slices.33 hopsize and does not change the output slices.
@@ -61,6 +61,12 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, · 27 unmodified lines
61 Create one slice, from 1 second to 2 seconds:61 Create one slice, from 1 second to 2 seconds:
62 62
63 >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100*2])63 >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100*2])
64
65 Notes
66 -----
67 Slices may be overlapping. If `timestamps_end` is `1` element
68 shorter than `timestamps`, the last slice will end at the end of
69 the file.
64 """70 """
65 71
66 if timestamps is None or len(timestamps) == 0:72 if timestamps is None or len(timestamps) == 0:

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