Changeset 58a82d4 for python


Ignore:
Timestamp:
Oct 29, 2018, 3:18:59 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:
60c8a73
Parents:
04b31af
Message:

[py] add test with slices shorter than hop_size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_slicing.py

    r04b31af r58a82d4  
    3636        slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir,
    3737                hopsize = 200)
     38
     39    def test_slice_start_every_half_blocksize(self):
     40        hopsize = 200
     41        regions_start = [i*hopsize//2 for i in range(1, n_slices)]
     42        slice_source_at_stamps(self.source_file, regions_start,
     43                output_dir = self.output_dir, hopsize = 200)
    3844
    3945    def tearDown(self):
Note: See TracChangeset for help on using the changeset viewer.