[PD] average Signal block by block

Andreas B-Andreas at web.de
Thu Dec 7 16:09:06 CET 2006


Hi list,
a bit hard to explain in a few words what i want to do, so i try to 
describe it a bit

I got an array which gets its information via tabsend~ from a signal 
(size of array and blocksize of signal are equal but changeable, like a 
64-array and a 64-signal or a 1024-array and a 1024-signal)

every block of the Signal looks the same (same shape), with only a 
difference caused by noise
What i want to do is average the Signal by using like 100 Blocks of it 
and build a mean Block out of them
All average objects like average~ or mavarage~ don't work for me cause 
they calculate only one single value which represents the mean  of one 
signal block, but not the mean block over several blocks

to explain it with an example imagine a sine Signal of appropriate 
frequency (like 44100/1024 Hz to fit into a 1024-array) with some added 
white noise
with maverage~ the result would be 0
with the average function i need the result would be a clear sine 
without noise (if you average over enough blocks)

i tried to realize it with the FIR~ object and an array with all values 
set to 1 ... and it seemed to work
greater array leads to a average of more blocks, but the FIR~ object 
does some weird things, like shifting my signal which makes it not 
usable for me

it would be great if someone of you got an idea for me how to solve this 
problem

thx in advance
Andreas





More information about the Pd-list mailing list