waveform~ distorting incoming selection start/end points?!

Oct 22, 2011 at 9:29pm

waveform~ distorting incoming selection start/end points?!

Hi

When setting selection start and selection end of a waveform using its corresponding inlets, the output of selection start and selection end differs by a very small amount. I attached an example patch…

Is this normal, and if so why? I’m computing starting and ending points of the waveform using the length of the waveform. If I want to write these points into a groove~, should I directly route the start/end points into the groove~ or should I take the start/end outputs of the waveform~ object?

– Pasted Max Patch, click to expand. –
#59494
Oct 23, 2011 at 11:33am

That’s normal.
waveform~ internally converts the incoming milliseconds value to samples. This may result in floating point sample values, which get quantized to integer sample values.
For the outlets this integer sample value gets converted back to milliseconds.

So the difference between input and output will never be bigger than 1 sample.

#214102

You must be logged in to reply to this topic.