Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -75,12 +75,9 @@ def slice_source_at_stamps(source_file, timestamps, timestamps_end = None, · 74 unmodified lines | |||
| 75 | g(vec[start:remaining], remaining - start) | 75 | g(vec[start:remaining], remaining - start) |
| 76 | #print "closing region", "remaining", remaining | 76 | #print "closing region", "remaining", remaining |
| 77 | # close this file | 77 | # close this file |
| 78 | del g | 78 | g.close() |
| 79 | elif read > start: | 79 | elif read > start: |
| 80 | # write all the samples | 80 | # write all the samples |
| 81 | g(vec[start:read], read - start) | 81 | g(vec[start:read], read - start) |
| 82 | total_frames += read | 82 | total_frames += read |
| 83 | if read < hopsize: break | 83 | if read < hopsize: break |
| 84 | |||
| 85 | # close the last file | ||
| 86 | del g | ||