Square root in code
Posted: Thu Sep 02, 2010 10:10 am
Hi,
I'm a Flowstone novice trying to make an RMS voltmeter for the output of an audio processing stream. It would be fairly easy to do in code as the square root of the sum of the squares for an adjustable number of samples of the stream, but I don't see a square root function listed in the code expressions. Is there one? If not, how can I do it just in code?
Is there an alternative method using only the components? So far, I am trying to use mono to float from the output of an amplifier, then stack, square, square root. If that's right, all I need to do is trigger the mono to float block on every sample, but I don't see how to do that.
Thanks in advance for any advice and suggestions.
I'm a Flowstone novice trying to make an RMS voltmeter for the output of an audio processing stream. It would be fairly easy to do in code as the square root of the sum of the squares for an adjustable number of samples of the stream, but I don't see a square root function listed in the code expressions. Is there one? If not, how can I do it just in code?
Is there an alternative method using only the components? So far, I am trying to use mono to float from the output of an amplifier, then stack, square, square root. If that's right, all I need to do is trigger the mono to float block on every sample, but I don't see how to do that.
Thanks in advance for any advice and suggestions.