Hi list, I am having this rather silly problem trying to graph a sin function on an array? I have attached the patch, it uses counter from the GEM library. It won't seem to plot the points of the sin wave. Actually I didn't have much time to go over it and I want to use it later in a demo but haven't time to spend figuring out the problem, I know it's cheeky but can anyone help? Rory.
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
#N canvas 63 32 663 602 16; #N canvas 0 0 450 300 graph1 0; #X array array1 100 float 0; #X coords 0 5 99 -5 300 140 1; #X restore 153 410 graph; #X obj 149 324 tabwrite array1; #X floatatom 149 238 5 0 0 0 - - -; #X floatatom 149 294 5 0 0 0 - - -; #X obj 149 178 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #N canvas 421 54 464 314 count 0; #X msg 139 97 bang; #X obj 139 68 metro 300; #X floatatom 222 39 5 0 0 0 - - -; #X obj 140 127 counter 0 1000; #X obj 139 39 inlet; #X obj 223 9 inlet; #X obj 140 197 outlet; #X obj 140 157 * 0.1; #X connect 0 0 3 0; #X connect 1 0 0 0; #X connect 2 0 1 1; #X connect 3 0 7 0; #X connect 4 0 1 0; #X connect 5 0 2 0; #X connect 7 0 6 0; #X restore 149 202 pd count; #X floatatom 223 177 5 0 0 0 - - -; #X text 220 154 Count Speed; #X text 257 232 f(x) = sin(2PIt); #X obj 149 269 expr sin($f1*6.2831); #X connect 2 0 1 1; #X connect 2 0 9 0; #X connect 3 0 1 0; #X connect 4 0 5 0; #X connect 5 0 2 0; #X connect 6 0 5 1; #X connect 9 0 3 0;