<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" face="'Courier New'">hi list,</font><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">i have a hard time getting a max patch ported to pd.</font></div><div><font class="Apple-style-span" face="'Courier New'">the one &nbsp;object in max that bugs me is a signal accumulator. [+=~] the object adds all the values it receives and can be reset with a signal (in my case a pulse)</font></div><div><font class="Apple-style-span" face="'Courier New'">is there an equivalent in pd? i can't seem to find one.</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">i try to create some kind of ramped up signal that gets reset everytime a pulse arrives. this gives me a sawtooth-like wave, the amplitude is determined by the frequency of the pulse.&nbsp;</font></div><div><font class="Apple-style-span" face="'Courier New'">lower frequency of the pulse gives higher amplitude and vice versa. the important part is, that everything has to be done at signal rate, no messages :-)</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">here is how it looks and works in max/msp:</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">[sig~ 1] &nbsp; &nbsp; pulsesignal</font></div><div><font class="Apple-style-span" face="'Courier New'">&nbsp; &nbsp; &nbsp; &nbsp;\ &nbsp; &nbsp;/</font></div><div><font class="Apple-style-span" face="'Courier New'">&nbsp; &nbsp; &nbsp; &nbsp;[+=~]</font></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span>|</font></div><div><font class="Apple-style-span" face="'Courier New'">&nbsp; &nbsp; &nbsp; &nbsp; [/~ 44100] (divided by current samplerate)</font></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span>|</font></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span></font><span class="Apple-style-span" style="font-family: 'Courier New'; ">sawtooth with amplitude depending on frequency of the pulse</span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Courier New'; "><br></span></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">is there a way to achieve this without the signal accumulator object? i feel like there should be an easy solution but i can't seem to find it. any hints?</font></div><div><font class="Apple-style-span" face="'Courier New'"><br></font></div><div><font class="Apple-style-span" face="'Courier New'">thanks, simon</font></div></body></html>