Changeset f9400d0 for python/lib
- Timestamp:
- Oct 29, 2018, 7:22:15 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- ed596f7
- Parents:
- 97a8bef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/slicing.py
r97a8bef rf9400d0 55 55 Examples 56 56 -------- 57 Create two slices, the first second of a file and the rest of it: 57 Create two slices: the first slice starts at the beginning of the 58 input file `loop.wav` and lasts exactly one second, starting at 59 sample `0` and ending at sample `44099`; the second slice starts 60 at sample `44100` and lasts until the end of the input file: 58 61 59 62 >>> aubio.slice_source_at_stamps('loop.wav', [0, 44100]) … … 61 64 Create one slice, from 1 second to 2 seconds: 62 65 63 >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100 *2])66 >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100 * 2 - 1]) 64 67 65 68 Notes
Note: See TracChangeset
for help on using the changeset viewer.