Forums > MaxMSP

clicks using line~->tapout~ without pack before line

November 26, 2006 | 1:27 am

just a dumb observation…noticed that when i use line~ as the delay time for tapout~, if i’m sending the float inputs directly into the line~ i get clicks, but if i send them through a pack first, then i get smooth output from tapout~. why is that?

max v2;
#N vpatcher 327 387 1181 831;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 569 94 100 196617 clicks;
#P flonum 650 133 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 591 133 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 531 136 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 591 195 55 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 501 194 82 1441802 tapin~ 10000;
#P newex 501 225 52 1441802 tapout~;
#P newex 501 157 40 1441802 *~ 0.;
#P window setfont "Sans Serif" 9.;
#P flonum 291 127 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 232 127 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 172 130 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 232 189 55 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 142 188 82 1441802 tapin~ 10000;
#P newex 142 219 52 1441802 tapout~;
#P newex 142 151 40 1441802 *~ 0.;
#P window setfont "Sans Serif" 9.;
#P newex 232 167 60 196617 pack 0. 20.;
#P comment 208 85 100 196617 no clicks;
#P fasten 3 0 2 0 147 251 130 251 130 142 147 142;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 6 0 2 1;
#P connect 7 0 1 0;
#P connect 1 0 5 0;
#P connect 8 0 1 1;
#P fasten 10 0 9 0 506 257 489 257 489 148 506 148;
#P connect 9 0 11 0;
#P connect 12 0 10 0;
#P connect 11 0 10 0;
#P connect 13 0 9 1;
#P connect 14 0 12 0;
#P connect 15 0 12 1;
#P pop;


November 26, 2006 | 1:57 am

Quote: Wilford Brimley wrote on Sat, 25 November 2006 17:27
—————————————————-
> just a dumb observation…noticed that when i use line~ as the delay time for tapout~, if i’m sending the float inputs directly into the line~ i get clicks, but if i send them through a pack first, then i get smooth output from tapout~. why is that?
>
>

You problem might be caused by the way you use your patch. line~ needs to receive a target time before *ever* value you send it; it has no memory. The patch with pack takes care of that for you. Also, try this:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 593 134 29 196617 t f b;
#P newex 514 60 52 196617 tri~ 439.;
#P user ezdac~ 471 309 515 342 0;
#P comment 606 76 100 196617 no more clicks?;
#P flonum 650 133 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 583 104 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 531 136 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 591 195 55 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 501 194 82 1441802 tapin~ 10000;
#P newex 501 225 52 1441802 tapout~;
#P newex 501 157 40 1441802 *~ 0.;
#P connect 10 1 6 0;
#P connect 10 0 3 0;
#P connect 5 0 10 0;
#P connect 9 0 2 0;
#P connect 1 0 8 0;
#P fasten 1 0 0 0 506 257 489 257 489 148 506 148;
#P connect 1 0 8 1;
#P connect 6 0 3 1;
#P connect 4 0 0 1;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 0 0 2 0;
#P window clipboard copycount 11;

mz


November 26, 2006 | 2:31 am

>line~ needs to receive a target time before *ever* value you send it; it has no memory

thanks, michael. i didn’t realize that. makes sense…i should have tried that. actually hadn’t used tri~ before, thanks for the introduction.

max v2;
#N vpatcher 11 60 722 630;
#P window setfont "Sans Serif" 9.;
#P flonum 102 70 41 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 78 88 35 196617 * 10.;
#P flonum 78 52 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 206 335 65 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 263 396 15 0;
#P newex 193 356 53 196617 *~ 1000.;
#P newex 193 299 34 196617 /~ 2.;
#P newex 193 278 34 196617 +~ 1.;
#P newex 193 257 60 196617 normalize~;
#P user number~ 208 379 259 394 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 280 396 31 196617 dac~;
#P user gain~ 280 248 24 100 158 0 1.071519 7.94321 10.;
#P newex 283 143 29 196617 t f b;
#P newex 193 76 52 196617 tri~ 439.;
#P comment 287 66 100 196617 no more clicks;
#P flonum 328 162 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 283 125 57 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 223 124 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 283 182 55 196617 line~;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 193 182 82 1441802 tapin~ 10000;
#P newex 193 213 52 1441802 tapout~;
#P newex 193 145 40 1441802 *~ 0.;
#P user meter~ 313 394 391 412 100 0 168 0 104 104 104 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P connect 20 0 21 0;
#P connect 22 0 21 1;
#P fasten 17 0 9 0 198 379 161 379 161 65 198 65;
#P fasten 2 0 1 0 198 245 181 245 181 136 198 136;
#P connect 9 0 3 0;
#P connect 1 0 3 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P connect 2 0 14 0;
#P connect 14 0 15 0;
#P connect 15 0 16 0;
#P connect 16 0 17 0;
#P fasten 20 0 19 0 83 75 66 75 66 322 211 322;
#P connect 17 0 13 0;
#P connect 5 0 1 1;
#P connect 19 0 17 1;
#P connect 2 0 11 0;
#P connect 11 0 12 0;
#P connect 18 0 12 0;
#P fasten 21 0 6 0 83 117 288 117;
#P connect 6 0 10 0;
#P connect 10 0 4 0;
#P connect 11 0 12 1;
#P connect 11 0 0 0;
#P connect 10 1 7 0;
#P connect 7 0 4 1;
#P pop;


Viewing 3 posts - 1 through 3 (of 3 total)