[PD] How does vline~ work under the hood?
white.joe4 at gmail.com
Fri Oct 2 18:02:00 CEST 2015
Hey i go bananas,
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
On 2 October 2015 at 16:36, i go bananas <hard.off at gmail.com> wrote:
> Hi, me again.
> Thanks for the discussion. It has really opened my eyes.
> So, i got my naive c++ implementation of line~ basically working.
> 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
> 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.
> My questions then are 2:
> Is pd's method the way i should do it? Or is there a better alternative?
> 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?
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list