If the number_of_samples is just barely larger than a multiple of the samples_per_time_slice, you can end up with the last time slice containing a very small number of samples. Sometimes the number of samples is too small for whatever the next post-processing step might be, such as calculating the STFT. Therefore, it would be nice to specify a minimum number of samples for the last time slice. This could be an optional argument so as to not impact the current signature of the time_slice_zip() function.
Examples
time_slice_zip(960101, 96000)
time_slice_zip(960101, 96000, 12000)
If the
number_of_samplesis just barely larger than a multiple of thesamples_per_time_slice, you can end up with the last time slice containing a very small number of samples. Sometimes the number of samples is too small for whatever the next post-processing step might be, such as calculating the STFT. Therefore, it would be nice to specify a minimum number of samples for the last time slice. This could be an optional argument so as to not impact the current signature of thetime_slice_zip()function.Examples