<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Or are you talking about a object that outputs the sum as a message? In that case just use [cmavg~] or [maverage~] with [snapshot~]. If you just want the sum of a signal vector, there are some objects in zexy that will do the job, like [avg~] or [pack~]+[sum]
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 08. Dezember 2015 um 12:41 Uhr<br/>
<b>Von:</b> "Christof Ressi" <christof.ressi@gmx.at><br/>
<b>An:</b> "Alexandre Torres Porres" <porres@gmail.com><br/>
<b>Cc:</b> "pd-list@lists.iem.at" <pd-list@lists.iem.at><br/>
<b>Betreff:</b> Re: [PD] Moving Sum object?</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Well, a linear moving average filter is just something that  <span>sums a series of samples. If you don't want the average but rather the true sum, either multiply the output by the number of samples or take my abstraction and get rid of the [/~] object.</span>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Dienstag, 08. Dezember 2015 um 12:21 Uhr<br/>
<b>Von:</b> "Alexandre Torres Porres" <porres@gmail.com><br/>
<b>An:</b> "Christof Ressi" <christof.ressi@gmx.at><br/>
<b>Cc:</b> "Matt Barber" <brbrofsvl@gmail.com>, "pd-list@lists.iem.at" <pd-list@lists.iem.at><br/>
<b>Betreff:</b> Re: Re: [PD] Moving Sum object?</div>

<div>
<div>cool guys, but i was asking for an average "sum" object :)</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-12-08 9:19 GMT-02:00 Christof Ressi <span><<a>christof.ressi@gmx.at</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">Hey Matt,<br/>
<br/>
there's no need for the feedback path (and therefore no [block~ 1] ;-))<br/>
<br/>
Just use the following formula:<br/>
<br/>
y[n] = (y[n-1] - x[n-k])/k<br/>
<br/>
where k is the number of samples to be averaged (must be at least 1). see the patch I sent to Alex in my last mail.<br/>
it uses [rpole~ 1] for the y[n-1] part and [z~ k] for the x[n-k] part (you can replace the latter one with a [delwrite~] [delread~] pair to make it purely vanilla).<br/>
<br/>
The funny thing about linear moving average filters is, that although it can be implemented as a recursive filter (like in both our patches), it is still a FIR filter (and therefore it defeats the notion that recursive filters are always IIR filters). The impulse response is just a rectangular pulse and therefore finite.<br/>
 <br/>
 <br/>
<br/>
Gesendet: Dienstag, 08. Dezember 2015 um 07:13 Uhr<br/>
Von: "Matt Barber" <<a>brbrofsvl@gmail.com</a>><br/>
An: "Alexandre Torres Porres" <<a>porres@gmail.com</a>><br/>
Cc: "<a>pd-list@lists.iem.at</a>" <<a>pd-list@lists.iem.at</a>><br/>
Betreff: Re: [PD] Moving Sum object?<br/>
<br/>
<span>Something like this? Almost completely untestsed. :D<br/>
 <br/>
On Tue, Dec 8, 2015 at 12:20 AM, Alexandre Torres Porres <<a>porres@gmail.com</a>> wrote:<br/>
<br/>
Talking about averages I wonder if we have an object that sums (in a moving average fashion) a series of samples<br/>
 <br/>
cheers<br/>
_______________________________________________</span><br/>
<a>Pd-list@lists.iem.at</a>[<a>Pd-list@lists.iem.at</a>] mailing list<br/>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list[http://lists.puredata.info/listinfo/pd-list]" target="_blank">http://lists.puredata.info/listinfo/pd-list[http://lists.puredata.info/listinfo/pd-list]</a><br/>
 _______________________________________________ <a>Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list[http://lists.puredata.info/listinfo/pd-list]" target="_blank">http://lists.puredata.info/listinfo/pd-list[http://lists.puredata.info/listinfo/pd-list]</a></blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></body></html>