[CM] normalize-sound is an unbound variable

Kjetil S. Matheussen k.s.matheussen@notam02.no
Thu, 5 Jul 2007 16:56:51 +0200 (CEST)


On Fri, 6 Jul 2007, e deleflie wrote:

>>  If you need to specify position and duration, you can use
>>  "scale-selection-to". If not, "scale-to" should be enough.
>
> there is a slight complication which is that I am dealing with a 4
> channel file ... and all channels have to be scaled by an equal amount
> ...
>
> to use scale-to I would have to first establish which channel has the
> highest amplitude, then go through the other channels and find their
> highest amplitude... divide them to find out what the equivalent
> scale-to should be for each independent channel and then apply the
> scale-to 4 times with 4 different values each time.
>
> normalize-sound, which advertises that it functions on a sound rather
> than a channel, would do all that for me (theoretically)...
>
> ... unless there is a scale-to version that can work on a sound
> instead of a channel?

I'm pretty sure scale-to works the way you describe. Just don't specify
channel, and it should scale the whole sound.