[PD] array wierdness

august august at develop.ment.org
Wed May 3 00:33:46 CEST 2006


I'm experiencing some strange things with arrays.  This seems like it
would be noticed by now, so perhaps I am missunderstanding something.

I just checked out a fresh CVS of pd.

And, It seems to me that arrays are storing mysterious 0's for values
that should be otherwise.

for example, if you look at the help patch for [tabread] and step
through the index of array99 I get values of "0" for indexes 1, 3, 
5, 7, & 9  where the plot is showing that the values for those indexes
are positive non-zero integers.

attatched is also a test patch I made when trying to figure this out.

any ideas?

-august.

-- 
	-------------------
	http://aug.ment.org

-------------- next part --------------
#N canvas 345 360 646 425 10;
#N canvas 0 0 450 300 graph3 0;
#X array signal 259 float 3;
#A 0 0.994808 0 1 0 0.994808 0 0.979325 0 0.953833 0 0.918792 0 0.874832
0 0.822735 0 0.763421 0 0.697926 0 0.627374 0 0.552955 0 0.4759 0 0.39745
0 0.318828 0 0.241221 0 0.165744 0 0.0934289 0 0.0251969 0 -0.0381534
0 -0.0959599 0 -0.147706 0 -0.193024 0 -0.231698 0 -0.263659 0 -0.288978
0 -0.307857 0 -0.320611 0 -0.327659 0 -0.329499 0 -0.32669 0 -0.319834
0 -0.309552 0 -0.296464 0 -0.281171 0 -0.264236 0 -0.246167 0 -0.227406
0 -0.20832 0 -0.189187 0 -0.170201 0 -0.151468 0 -0.133007 0 -0.114758
0 -0.0965939 0 -0.0783282 0 -0.0597313 0 -0.0405457 0 -0.0205027 0
0.000659951 0 0.0231811 0 0.0472594 0 0.0730378 0 0.10059 0 0.129911
0 0.160903 0 0.193377 0 0.227046 0 0.261526 0 0.296343 0 0.330939 0
0.364681 0 0.396882 0 0.42681 0 0.453709 0 0.47682 0 0.495403 0 0.508755
0 0.516234 0 0.517279 0 0.511428 0 0.498334 0 0.477782 0 0.449696 0
0.414149 0 0.371368 0 0.321732 0 0.265769 0 0.204146 0 0.137662 0 0.0672293
0 -0.00614207 0 -0.0813674 0 -0.157309 0 -0.232799 0 -0.306667 0 -0.377766
0 -0.444993 0 -0.507317 0 -0.563803 0 -0.613625 0 -0.656089 0 -0.690646
0 -0.7169 0 -0.734618 0 -0.743728 0 -0.744323 0 -0.73665 0 -0.721105
0 -0.698219 0 -0.668642 0 -0.633124 0 -0.592497 0 -0.547653 0 -0.499519
0 -0.449034 0 -0.397131 0 -0.344711 0 -0.292625 0 -0.241656 0 -0.192502
0 -0.14577 0 -0.101957 0 -0.0614553 0 -0.0245412 0 0.00861827 0 0.0379626
0 0.0635299 0 0.0854465 0 0.103914 0 0.119195 0 0.131595 0 0.14145
0 0.149106 0 0.1549 0 0.159152 0 0.162142 0 0.164102 0 0.165207 0 0.165563
;
#X coords 0 1 259 -1 200 140 1;
#X restore 322 80 graph;
#X obj 112 184 snapshot~;
#X floatatom 113 215 23 0 0 0 - - -;
#X obj 188 168 metro;
#X obj 189 149 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 111 113 tabread4~ signal;
#X obj 110 83 sig~;
#X floatatom 45 28 5 0 257 0 - - -;
#X obj 214 133 loadbang;
#X msg 220 315 \; signal cosinesum 256 1 33 5 6 79 2 3 22 \; signal
normalize \; signal yticks 0 0.1 5 \; signal ylabel 276 -1 -0.5 0 0.5
1 \;;
#X text 105 27 <- move this with integer values (without holding shift
key);
#X obj 32 301 tabread signal;
#X floatatom 32 332 5 0 0 0 - - -;
#X floatatom 32 278 5 0 257 0 - - -;
#X connect 1 0 2 0;
#X connect 3 0 1 0;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X connect 8 0 4 0;
#X connect 11 0 12 0;
#X connect 13 0 11 0;


More information about the Pd-list mailing list