Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: balance opcode

Date2009-03-17 01:37
Frommichael.gogins@gmail.com
Subject[Csnd] Re: Re: balance opcode
As I recall it is the root mean square.

Regards,
Mike

----- Original Message ----- 
From: "Mark Van Peteghem" 
To: 
Sent: Monday, March 16, 2009 5:10 PM
Subject: [Csnd] Re: balance opcode


> Federico Vanni wrote:
>> i would know the internal operation of the 'balance'
>> opcode.
>>
>> It should be something like that:
>> Take the averages of signals A and B and then divide average B by average 
>> A.
>> Multiply the actual A signal by the product of that division. This will 
>> make A
>> match the average level of B.
>
> Correct, except that it's not a simple average, but probably the square 
> root of the average of the square of the signals, or the average of the 
> absolute value of the signal, because the average can be zero or close to 
> zero, and therefore not representative for the power in the signal.
>
> -- 
>  Mark
>  _________________________________________
>  When you get lemons, you make lemonade.
>  When you get hardware, you make software.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>