Changeset 6f27719 for python/lib/aubio
- Timestamp:
- Jan 12, 2014, 4:28:49 AM (11 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- a4ec189
- Parents:
- aee840b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/slicing.py
raee840b r6f27719 38 38 remaining = next_stamp - total_frames 39 39 # not enough frames remaining, time to split 40 if remaining < =read:40 if remaining < read: 41 41 if remaining != 0: 42 42 # write remaining samples from current region … … 48 48 #print "new slice", total_frames, "+", remaining, "=", next_stamp 49 49 g = sink(new_sink_path, samplerate) 50 if remaining != read: 51 # write the remaining samples in the new file 52 g(vec[remaining:read], read - remaining) 50 # write the remaining samples in the new file 51 g(vec[remaining:read], read - remaining) 53 52 if len(timestamps): 54 53 next_stamp = int(timestamps.pop(0)) … … 60 59 if read < hopsize: break 61 60 61 # close the last file 62 62 del g
Note: See TracChangeset
for help on using the changeset viewer.