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
2727 The default `samplerate` is 0, meaning the original sampling rate
2828 of `source_file` will be used. When using a sampling rate
2929 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.
3131
3232 The `hopsize` parameter simply tells :class:`source` to use this
3333 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
6161 Create one slice, from 1 second to 2 seconds:
6262
6363 >>> 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.
6470 """
6571
6672 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