max v2; #N vpatcher 20 74 371 334; #P origin 0 -10; #P window setfont Times 10.; #P comment 147 188 146 1310730 Arguments: buffer size in ms \, delay time in ms \, xfade time in ms; #P comment 43 21 232 1310730 xfade between the old delay time and the new delay time; #P comment 51 194 64 1310730 delayed signal; #P comment 234 39 76 1310730 xfade time in ms; #P comment 150 39 76 1310730 delay time in ms; #P comment 17 39 56 1310730 input signal; #N comlet (int/float) xfade time; #P inlet 261 53 15 0; #N comlet (int/float) delay time; #P inlet 176 53 15 0; #P toggle 176 96 15 0; #P window setfont "Fixedwidth Serif" 10.; #P newex 257 147 27 1441802 f; #P newex 225 96 46 1441802 f $3; #P newex 176 75 108 1441802 t b b f; #P user gswitch2 107 104 39 32 0 0; #P newex 176 118 50 1441802 t i b i; #P newex 176 147 59 1441802 line~ 0.; #N comlet (signal) delayed sound; #P outlet 36 193 15 0; #P newex 36 170 150 1441802 mix~; #P newex 36 147 81 1441802 tapout~ $2 0; #P newex 36 104 47 1441802 tapin~ $1; #N comlet (signal) sound to be delayed; #P inlet 36 53 15 0; #P connect 0 0 1 0; #P fasten 7 0 2 0 112 139 41 139; #P connect 1 0 2 0; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 2 1 3 1; #P fasten 6 2 7 0 221 143 149 143 149 100 112 100; #P fasten 7 1 2 1 141 143 112 143; #P fasten 10 0 7 1 262 168 287 168 287 71 141 71; #P connect 12 0 8 0; #P connect 8 0 11 0; #P connect 11 0 6 0; #P connect 6 0 5 0; #P connect 5 0 3 2; #P connect 8 1 9 0; #P connect 9 0 5 1; #P fasten 6 1 10 0 201 139 262 139; #P connect 13 0 9 1; #P connect 8 2 10 1; #P pop;