Changeset f9400d0 for python


Ignore:
Timestamp:
Oct 29, 2018, 7:22:15 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

[py] improve slice_source_at_stamps examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/aubio/slicing.py

    r97a8bef rf9400d0  
    5555    Examples
    5656    --------
    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:
    5861
    5962    >>> aubio.slice_source_at_stamps('loop.wav', [0, 44100])
     
    6164    Create one slice, from 1 second to 2 seconds:
    6265
    63     >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100*2])
     66    >>> aubio.slice_source_at_stamps('loop.wav', [44100], [44100 * 2 - 1])
    6467
    6568    Notes
Note: See TracChangeset for help on using the changeset viewer.