[PD] speed

oliver oliver at klingt.org
Fri Jan 11 17:34:02 CET 2019


michael strohmann wrote:
> ok, then there might be the problem.
> i was thinking that [line] runs thru ALL the numbers in different speeds.

[line] is definitely the wrong tool for your task. it works basically 
the same like MAX's [line 0. 20], meaning it outputs float numbers and 
has a grain size of 20 by default. so there's always some interpolation 
at work, which will result in missing numbers.

to reliably get numbers from 0 - 30 i attached 3 easy examples (one of 
them uses IEMLIB's [for++] which is exactly what you're looking for), 
the others are vanilla.

mind that the [bang~] driven counter is driven by PDs blocksize (default 
64), which you could also change in a subpatch to make it faster or slower.

best

oliver

-------------- next part --------------
#N canvas 247 273 645 308 10;
#X obj 81 149 until;
#X msg 119 124 0;
#X obj 81 172 f;
#X obj 109 173 + 1;
#X obj 81 100 t b b;
#X obj 81 255 print UNTIL;
#X msg 81 125 31;
#X msg 465 143 0;
#X obj 405 171 f;
#X obj 433 172 + 1;
#X obj 396 118 bang~;
#X obj 438 93 t b b;
#X msg 438 118 1;
#X obj 405 143 spigot;
#X obj 438 236 print BANG~;
#X obj 514 65 loadbang;
#X msg 514 88 \; pd dsp 1;
#X obj 81 46 bng 40 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 438 45 bng 40 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 405 194 sel 31;
#X msg 405 237 0;
#X obj 342 237 realtime;
#X floatatom 342 261 5 0 0 0 - - -, f 5;
#X obj 19 233 realtime;
#X floatatom 19 257 5 0 0 0 - - -, f 5;
#X obj 64 208 sel 30;
#X obj 213 45 bng 40 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 213 96 t b b;
#X obj 240 168 realtime;
#X floatatom 240 192 5 0 0 0 - - -, f 5;
#X obj 213 218 print FOR++;
#X msg 272 53 1;
#X msg 280 76 0.5;
#X obj 213 139 for++ 0 30 1;
#X text 275 31 "speed";
#X msg 290 100 0.25;
#X connect 0 0 2 0;
#X connect 1 0 2 1;
#X connect 2 0 3 0;
#X connect 2 0 5 0;
#X connect 2 0 25 0;
#X connect 3 0 2 1;
#X connect 4 0 6 0;
#X connect 4 1 1 0;
#X connect 4 1 23 0;
#X connect 6 0 0 0;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 8 0 19 0;
#X connect 9 0 8 1;
#X connect 10 0 13 0;
#X connect 11 0 12 0;
#X connect 11 1 7 0;
#X connect 11 1 21 0;
#X connect 12 0 13 1;
#X connect 13 0 8 0;
#X connect 15 0 16 0;
#X connect 17 0 4 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 0 21 1;
#X connect 19 1 14 0;
#X connect 20 0 13 1;
#X connect 21 0 22 0;
#X connect 23 0 24 0;
#X connect 25 0 23 1;
#X connect 26 0 27 0;
#X connect 27 0 33 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 31 0 33 2;
#X connect 32 0 33 2;
#X connect 33 0 30 0;
#X connect 33 1 28 1;
#X connect 35 0 33 2;


More information about the Pd-list mailing list