Re: [Audacity-devel] Patch for TruncateSilence effect
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: James C. <cr...@in...> - 2009-04-29 21:52:22
|
Philip, Thank you so much for this patch! I was particularly pleased to see: + // Stress-test the logic for cutting samples through block endpoints + //blockLen /= 8; ...glad that you left that in as a comment. The changes are well motivated too. My apologies that it is likely to take longer than it should for this and for the previous compressor patch to work their way into betas and the stable release. --James. Philip Van Baren wrote: > Attached is a patch for the Truncate Silence effect. > > Changes are: > > 1) Can set a minimum and maximum silence duration, and compression > factor for silence between these two values. > > The resulting silence duration is determined as (output) = ((min) + > (input - min)/compression) with the constraint that output < max > > 2) If the section starts out with silence, that silence will be > truncated to the minimum value > > 3) Handles silent sections which span block boundaries > > As an example, you can set the minimum to 100 ms, the maximum to 5000 > ms, and the compression factor to 4:1, and it will have the result of > about a 2x speedup in speech with no pitch change, and keeping about > the same cadence as the original. > > Philip Van Baren |