Splice a sound into a series of equal-length chunks
Waveform I/O: The input file is a sound file which is to be spliced. The output file is a prototype for each splice. For example, if output is "MySoundCut.aif" and "Separate files" is checked, assuming the number of splices to be five, you'll get five files named "MySoundCut1.aif" to "MySoundCut5.aif". These files can in turn be glued together again using the Concat module. If "Separate files" is not checked, there will be only one output file "MySoundCut.aif" which contains all chunks right after another.
Splice settings: the algorithm initially advances in the input file by the length given in "Skip length" (unless zero). It then writes a chunk of length "Splice length" (first splice). It then advances by the length given in "Skip length" (unless zero). It then writes the second splice and so on. Note that "Skip length" may be negative which means that the splices will overlap. Also note that if "Skip length" is negative and its magnitude is greater than the "Splice length" you can walk backwards in the sound file. A value of "Skip length = -Splice Length" is forbidden.
In the normal mode, as many chunks (splices) are written as possible until reaching the ending (or beginning in "backward mode") of the input file. "Automatic rescale" enables an alternative mode which rescales "Splice Length" and "Skip Length" by a factor so as to result in a predefined number of splices, given by "# of Splices". In this alternative mode, you may optionally define a "Final Skip" which is the length between the ending of the last chunk (splice) and the ending of the sound file.
"Normal mode" example: let your input file be one minute long. Assume "Splice Length" to be four and "Skip Length" to be three seconds. Assume "Initial skip" to be two seconds. Output: Splice 1 is taken from input file 00:02 to 00:06 ; splice 2 is taken from input file 00:09 to 00:13 and so on; splice 8 is taken from input file 00:51 to 00:55, splice 9 is taken from input file 00:58 to 01:02 (with the last two seconds being silent). splice 9 is the last splice.
"Automatic rescale" example: let your input file be one minute long. Assume "Splice Length" to be four and "Skip Length" to be three seconds. Assume "Initial skip" to be two and "Final skip" to be three seconds. The net length of the input file is thus 60 seconds minus two minus three seconds = 55 seconds. Now assume "# of Splices" is set to five (you want five splices). "Splice Length" and "Skip Length" are rescaled by a factor of f = 55/(5*4+(5-1)*3) = 1.71875, so each splice has length 6.875 seconds, each skipping amounts to 5.15625 seconds. (the ratio between splice length and skip length remains 4:3).
Known bugs: ---
To be done: ---
last modified: 01-Jul-06