Forums > MaxMSP

reseting counter with signals

May 13, 2006 | 4:09 pm

Dear friends. I am trying to built a traditional delay which
transposes. I am using the delay tutorial plus gizmo, the only thing I
need now is to reset counter to 0 each time the actual sound comes in,
so that it always starts from the lower transposition and builds up.
FOr that I need to reset it, but I do not seem to find the connection
within the patcher that gives me the bang.
Cheers
Adina
max v2;
#N vpatcher 55 85 1074 732;
#P window setfont "Sans Serif" 18.;
#P window linecount 1;
#P message 777 126 20 196626 0;
#P message 674 31 46 196626 300;
#P number 771 53 88 18 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 568 25 15 0;
#P newex 653 94 105 196626 metro 350;
#N counter 1 7;
#X flags 0 0;
#P newobj 659 160 113 196626 counter 1 7;
#P window setfont "Sans Serif" 9.;
#P comment 701 202 133 196617 transposition in semitones;
#P flonum 661 203 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 661 225 112 196617 expr pow(2.\,$f1/12);
#P flonum 661 250 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 698 251 102 196617 pitch scaling factor;
#P newex 511 294 160 196617 pfft~ gizmo_loadme 4096 4;
#P comment 674 296 83 196617 < - double-click;
#P user panel 502 289 271 27;
#X brgb 255 255 255;
#X frgb 255 232 43;
#X border 2;
#X rounded 0;
#X shadow 0;
#X done;
#P window setfont "Sans Serif" 18.;
#P message 531 94 51 196626 0.23;
#P message 410 21 46 196626 450;
#P message 177 27 46 196626 300;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 93 257 32 1441802 *~ 1;
#P newex 173 257 32 1441802 *~ 1;
#P newex 336 257 36 1441802 *~;
#P newex 256 257 36 1441802 *~;
#P user hslider 3 174 12 76 101 1 0 0;
#P newex 3 189 43 1441802 * 0.01;
#P window setfont Times 10.;
#P comment 3 160 23 1310730 Dry;
#P comment 74 160 22 1310730 Wet;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 3 214 68 1441802 expr 1-$f1;
#P window setfont Times 10.;
#P comment 268 221 67 1310730 L Delay Level;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 282 239 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 362 239 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 348 221 67 1310730 R Delay Level;
#P comment 183 221 67 1310730 R Direct Level;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 195 239 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 115 239 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 101 221 67 1310730 L Direct Level;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 356 184 33 1441802 *~;
#P window setfont Times 10.;
#P window linecount 2;
#P comment 466 163 66 1310730 Right Feedback;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 379 166 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 189 166 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P window linecount 1;
#P comment 177 152 62 1310730 Left Feedback;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 165 184 34 1441802 *~;
#P newex 162 329 85 1441802 normalize~ 0.;
#B color 5;
#P newex 74 329 85 1441802 normalize~ 0.;
#B color 5;
#P window setfont Times 10.;
#P comment 231 293 60 1310730 Output Level;
#P user ezdac~ 128 355 172 388 100400897;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 245 307 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 270 76 60 10 1. 1000. 3 22 0 0 0 221 221 221 222 222 222 0 0
0;
#P window setfont Times 10.;
#P comment 261 62 80 1310730 Right Delay Time;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 190 76 60 10 1. 1000. 3 22 0 0 0 221 221 221 222 222 222 0 0
0;
#P newex 335 128 74 1441802 tapout~ 1.;
#P newex 253 128 74 1441802 tapout~ 1.;
#P newex 335 103 73 1441802 tapin~ 1000;
#P newex 253 103 73 1441802 tapin~ 1000;
#P user ezadc~ 114 23 158 56 0;
#P window setfont Times 10.;
#P comment 185 62 73 1310730 Left Delay Time;
#P window setfont "Sans Serif" 18.;
#P window linecount 5;
#P comment 837 96 100 196626 I need to reset counter by each attack;
#B color 1;
#P connect 33 0 32 0;
#P connect 32 0 29 0;
#P fasten 37 0 13 0 98 278 79 278;
#P fasten 34 0 13 0 261 283 79 283;
#P fasten 2 0 37 0 119 218 98 218;
#P fasten 29 0 22 0 8 235 120 235;
#P connect 22 0 37 1;
#P fasten 13 0 11 0 79 350 133 350;
#P fasten 10 0 13 1 250 325 154 325;
#P connect 43 0 14 0;
#P fasten 36 0 14 0 178 278 167 278;
#P connect 14 0 11 1;
#P fasten 5 0 15 0 258 149 170 149;
#P fasten 2 1 36 0 153 218 178 218;
#P connect 17 0 15 1;
#P connect 38 0 7 0;
#P fasten 29 0 23 0 8 235 200 235;
#P connect 23 0 36 1;
#P fasten 10 0 14 1 250 325 242 325;
#P fasten 15 0 3 0 170 205 160 205 160 98 258 98;
#P fasten 2 0 3 0 119 59 258 59;
#P fasten 7 0 5 0 195 94 249 94 249 124 258 124;
#P connect 3 0 5 0;
#P fasten 5 0 34 0 258 149 261 149;
#P connect 39 0 9 0;
#P fasten 32 0 27 0 8 210 252 210 252 235 287 235;
#P connect 27 0 34 1;
#P fasten 20 0 4 0 361 205 437 205 437 98 340 98;
#P fasten 2 1 4 0 153 59 340 59;
#P fasten 9 0 6 0 275 94 329 94 329 124 340 124;
#P connect 4 0 6 0;
#P fasten 6 0 35 0 340 149 341 149;
#P fasten 6 0 20 0 340 149 361 149;
#P fasten 32 0 26 0 8 210 252 210 252 235 367 235;
#P connect 26 0 35 1;
#P connect 40 0 18 0;
#P connect 18 0 20 1;
#P connect 35 0 43 0;
#P connect 51 0 50 0;
#P connect 50 0 49 0;
#P connect 49 0 47 0;
#P connect 47 0 46 0;
#P connect 46 0 45 0;
#P connect 45 0 43 1;
#P connect 54 0 49 3;
#P connect 52 0 50 1;
#P connect 53 0 52 0;
#P pop;


Viewing 1 post (of 1 total)