Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -27,7 +27,7 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end=None, · 26 unmodified lines | ||
| 27 | 27 | The default `samplerate` is 0, meaning the original sampling rate |
| 28 | 28 | of `source_file` will be used. When using a sampling rate |
| 29 | 29 | 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 | 32 | The `hopsize` parameter simply tells :class:`source` to use this |
| 33 | 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 | 61 | Create one slice, from 1 second to 2 seconds: |
| 62 | 62 | |
| 63 | 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 | 72 | if timestamps is None or len(timestamps) == 0: |