<div dir="ltr">Hey i go bananas,<div><br></div><div>I can't say I'm totally familiar with Pd's specific implementation but I did this recently and a simple implementation is to store the target value and calculate how many samples it takes to reach it based on the delay time. In your loop decrement the number of samples to target and output the slope value, when numSamplesToTarget is 0 just output the stored target value. </div><div><br></div><div>Cheers,</div><div>Joe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 October 2015 at 16:36, i go bananas <span dir="ltr"><<a href="mailto:hard.off@gmail.com" target="_blank">hard.off@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, me again.  <div><br></div><div>Thanks for the discussion.  It has really opened my eyes.  </div><div><br></div><div>So, i got my naive c++ implementation of line~ basically working.  </div><div><br></div><div>And of course, just running a for loop incrementing by ticks, i run into the exact precision error that this block quantizing seems to avoid.  My line from 0 to 100 over 44100 samples only gets to 99.93   </div><div><br></div><div>So, i also need to add something like pd's block quantization to make sure my line goes all the way to the specified value.  </div><div><br></div><div>My questions then are 2:  </div><div><br></div><div>Is pd's method the way i should do it?  Or is there a better alternative?  </div><div><br></div><div>And, if i do it the pd way, how does that work?  Does the increment get updated every block?   Or is it just the last block that is stretched?  </div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>