Re: [Audacity-nyquist] Normalizing long tracks
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Steve t. F. <ste...@gm...> - 2010-01-26 22:03:32
|
Thanks Roger, but that's what I've been trying unsuccessfully to do. I found this in the manual: "; if you don't have space in memory, here's how to do it: (defun myscore () (sim (osc c4) (osc c5))) ; compute the maximum: (setf mymax (peak (myscore) NY:ALL))" Applying this to a track in Audacity, I'm assuming it's something like: (setf mymax (peak s NY:ALL)) but doing that eats all of my RAM and it grinds to a halt. (I have less than 4GB of RAM and so with very large tracks RAM starts swapping to disk) The problem that I can't get round is in computing the peak without the entire selection loading into RAM all in one go. I've tried all sorts of things, such as using a loop with (extract start stop beh) or using (snd-avg ...), but I keep hitting the same problem of "s" loading into RAM. I am able to write a normalized file to disk using (play s) without running out of RAM, but for the purposes of writing a plug-in that is not a practical solution. Steve D Roger Dannenberg wrote: > See the Nyquist documentation. You should be able to compute the peak > value in one pass, save the result, then make another pass to normalize. > > -Roger > > > Steve the Fiddle wrote: >> Is there any way to normalize LONG tracks in Audacity (with Nyquist) >> without consuming several GB of RAM during processing? >> I'm using Audacity 1.3.11 and every method that I've tried loads the >> entire selection into RAM (and grinds to a halt if there is not >> enough RAM available). >> >> Steve D |