[PD] tabwrite bug?
fbar at footils.org
Sun May 21 11:25:53 CEST 2006
Nicola Bernardini hat gesagt: // Nicola Bernardini wrote:
> I have noticed something that seems like a bug to me: if you write on an
> array via a tabwrite attached to a cursor that writes both x and y data
> (basically doing a diagonal line), your table will be interspersed with
> zeros depending on the speed to which you move the slider.
If it is a bug, then it would be one of the slider, not of tabwrite.
If you print the numbers sent by a slider on fast movement, you will
see that it not "hits" all numbers, but instead jumps over some values
depending on how fast you move.
Here's a [print HSL] attached to a slider. First I'm moving slowly,
then at about 10 I speed up:
All the "holes" in the list of numbers will show up as zeros in your
tabwrite construct. Numberboxes behave the same, btw.
However: I don't consider this a bug but a feature! At least I quite
often rely on that behaviour for easily getting at the speed of change
in a slider instead of just the values. The idiom I use for this is
[_____|_______] <= slider
[t f f]
This is very useful sometimes. I know, that the Right Thing to get at
the speed of change is using a [timer] and all that, but often a
cross-substracting slider is more than enough for my purposes.
Frank Barknecht _ ______footils.org_ __goto10.org__
More information about the Pd-list