[PD] "sel" doesn't recognize "tabread"-values

Claude Heiland-Allen claudiusmaximus at goto10.org
Sat Oct 31 16:59:39 CET 2009


http://lists.puredata.info/pipermail/pd-list/2005-03/026639.html




Testing for equality is problematic. Two computational sequences that 
are mathematically equal may well produce different floating-point 
values. Programmers often perform comparisons within some tolerance 
(often a decimal constant, itself not accurately represented), but that 
doesn't necessarily make the problem go away.[citation needed]

http://en.wikipedia.org/wiki/Floating_point#Machine_precision



Mirko Maier wrote:
> thank you,
> strange, after restarting it worked. the unexplainable reason is that i loaded the array values with "soundfiler". after that, "sel" doesn't recognize the values (only after restarting pd).
> 
> greets
> mirko
> 
> -------- Original-Nachricht --------
>> Datum: Sat, 31 Oct 2009 15:55:23 +0100
>> Von: Jack <jack at rybn.org>
>> An: Mirko Maier <mirkom at gmx.de>
>> CC: pd-list at iem.at
>> Betreff: Re: [PD] "sel" doesn\'t recognize "tabread"-values
> 
>> It works fine here.
>> pd-ext 0.41.4
>> Ubuntu 9.04
>> ++
>>
>> Jack
>>
>>
>> Le samedi 31 octobre 2009 à 15:40 +0100, Mirko Maier a écrit :
>>> hi list,
>>>
>>> does anybody know why "sel" doesn't recognize a value from an array?
>>>
>>> see attached pd patch, running on pd 0.39
>>>
>>> thanx-
>>> mirko
>>>
>>> #N canvas 107 125 706 381 12;
>>> #N canvas 0 0 450 300 graph3 0;
>>> #X array array1 10 float 3;
>>> #A 0 0.0428575 -0.657144 -0.642859 -0.614287 -0.585716 -0.557144
>> -0.585716
>>> -0.57143 -0.242857 -0.371429;
>>> #X coords 0 1 9 -1 200 140 1;
>>> #X restore 36 33 graph;
>>> #X obj 305 130 tabread array1;
>>> #X obj 305 188 sel -0.57143;
>>> #X obj 305 214 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
>>> -1;
>>> #X msg 305 104 7;
>>> #X floatatom 305 160 12 0 0 0 - - -;
>>> #X text 343 100 why doesn't "sel" recognize the value??;
>>> #X connect 1 0 5 0;
>>> #X connect 2 0 3 0;
>>> #X connect 4 0 1 0;
>>> #X connect 5 0 2 0;
> 





More information about the Pd-list mailing list