RustAudio / dasp

The fundamentals for Digital Audio Signal Processing. Formerly `sample`.
Other
883 stars 64 forks source link

Extend `SignalRms` to also return mean squares #149

Closed linclelinkpart5 closed 3 years ago

linclelinkpart5 commented 3 years ago

I'm working on an ITU BS.1770 loudness scanner, which requires calculating the mean square (not root mean square) of a signal. I could of course just re-square the output from using SignalRms, but I feel it'd be nicer to allow SignalRms to return it, since it'd be an intermediate product of calculating the RMS.

linclelinkpart5 commented 3 years ago

Just saw that this is indeed a feature of the Rms struct in dasp_signal! I Missed it since I was only looking at the SignalRms trait, but it's specific to the struct itself.