This PR makes it so that events are trimmed on read, rather than trimmed after. This is helpful for long source audio files.
This PR makes a change to the regression data. This was necessary because of the ordering of resampling vs trimming. In prior versions of Scaper, the order was:
Read file from disk
Resample it to new sampling rate
Trim the resampled data
Now it's:
Read file from disk, trimming it on read.
Resample it.
So since the ordering changes, the output behavior changes. I updated the regression data to reflect this. Doing it this way will make it much faster when you have long source material (e.g. full length music stems). So the performance benefit is not apparent in the current profiling script but will be apparent when using Scaper with long source audio files.
This PR makes it so that events are trimmed on read, rather than trimmed after. This is helpful for long source audio files.
This PR makes a change to the regression data. This was necessary because of the ordering of resampling vs trimming. In prior versions of Scaper, the order was:
Now it's:
So since the ordering changes, the output behavior changes. I updated the regression data to reflect this. Doing it this way will make it much faster when you have long source material (e.g. full length music stems). So the performance benefit is not apparent in the current profiling script but will be apparent when using Scaper with long source audio files.