Changeset 04b31af


Ignore:
Timestamp:
Oct 29, 2018, 3:06:12 PM (6 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:
58a82d4
Parents:
fb1c5e2
Message:

[py] remove old slices from current list

File:
1 edited

Legend:

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

    rfb1c5e2 r04b31af  
    8383                _sink.do_multi(vec[:, start:read], read - start)
    8484        total_frames += read
     85        # remove old slices
     86        slices = list(filter(lambda s: s['end_stamp'] > total_frames,
     87            slices))
    8588        if read < hopsize:
    8689            break
Note: See TracChangeset for help on using the changeset viewer.