Average~ Object Output

andytodd.msp's icon

Hello all, hope you are well.

I'm looking for some info on the output of the Average~ object - in particular, the frequency of output values.

I'm trying to implement a 125ms RMS output - the RMS part is easy, and converting the 125ms to samples is also not a problem. However, no matter what averaging time value I use, the frequency of output of values does not change.

For example, if I set the number of samples for the RMS average calculation to 44100, I would expect one average value per second, but the refresh rate of the average value output does not change.

Am I missing something?!

Thanks in advance for any help!

Andy

Jean-Francois Charles's icon

[average~] is a signal object, so it outputs data at signal rate.
According to the Reference, [average~] gives you the running average value of the input signal averaged over the specified number of samples, so at any time, it gives you the average of the "most recent 125ms" for instance. (Maybe a deeper look would reveal that it updates its output value only every signal vector size, but I think that was not your question).