max v2; #N vpatcher 0 0 1280 710; #P origin 0 -84; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 560 176 60 9109513 prepend set; #P user multiSlider 560 103 173 69 0. 1. 64 2937 15 0 0 2 0 0 0; #M frgb 86 45 84; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P window linecount 2; #P comment 627 177 100 9109513 use multislider to draw your impulse; #P window linecount 1; #P hidden message 359 -28 14 9109513 1; #P button 519 84 15 0; #P hidden message 333 -28 23 9109513 127; #P window setfont "Sans Serif" 10.; #P window linecount 5; #P comment 278 245 13 9109514 INPUT; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P hidden message 309 -28 21 9109513 0.5; #P hidden button 131 -48 15 0; #P hidden button 132 -67 15 0; #P hidden button 133 -87 15 0; #P hidden message 150 -88 80 9109513 brgb 120 120 120; #P hidden message 149 -68 70 9109513 brgb 255 50 50; #P hidden message 203 -9 50 9109513 size 50 50; #P user panel 8 22 50 50; #X brgb 120 120 120; #X frgb 0 0 0; #X border 1; #X rounded 255; #X shadow 3; #X done; #P hidden message 254 -9 47 9109513 shadow 3; #P hidden message 246 -28 59 9109513 rounded 255; #P hidden message 203 -28 42 9109513 border 1; #P hidden message 149 -48 70 9109513 brgb 25 255 25; #P newex 400 324 33 9109513 del 25; #P newex 400 301 27 9109513 gate; #P newex 417 274 27 9109513 t b b; #P button 400 347 15 0; #P hidden message 81 -75 14 9109513 2; #P hidden message 66 -75 14 9109513 1; #P button 70 214 15 0; #P toggle 63 156 15 0; #P newex 59 180 27 9109513 gate; #P hidden newex 50 -106 28 9109513 sel 1; #P hidden message 50 -75 14 9109513 0; #P hidden newex 101 -21 57 9109513 prepend set; #P hidden number 11 -75 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden user umenu 11 -44 100 9109543 1 64 -28 1; #X add PRESS SPACE BAR TO START RECORDING; #X add PRESS SPACE AGAIN TO STOP REC AND START LOOP; #X add PRESS SPACE TO STOP LOOP - PRESS RESET TO MAKE NEW LOOP; #P window setfont "Sans Serif" 18.; #P message 64 19 613 9109522 PRESS SPACE TO STOP LOOP - PRESS RESET TO MAKE NEW LOOP; #B color 14; #P window setfont "Sans Serif" 9.; #P message 367 274 43 9109513 1367100; #P newex 320 84 31 9109513 gate~; #P message 406 135 14 9109513 0; #P button 321 158 15 0; #P newex 321 131 33 9109513 edge~; #P newex 321 107 49 9109513 >~ 30000.; #P user ezadc~ 469 84 513 117 0; #P newex 519 105 32 9109513 click~; #P newex 81 265 38 9109513 del 100; #P message 158 61 36 9109513 30000.; #P newex 116 180 94 9109513 scale 0. 1. 0. 31000.; #P newex 81 289 27 9109513 float; #P flonum 81 313 60 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 81 235 40 9109513 t b b b; #P message 390 135 14 9109513 1; #P button 408 218 15 0; #P message 78 132 14 9109513 0; #P button 87 214 15 0; #P button 63 112 15 0; #P window setfont "Sans Serif" 18.; #P message 63 61 50 9109522 reset; #B color 5; #P window setfont "Sans Serif" 9.; #P message 63 132 14 9109513 1; #P toggle 79 156 15 0; #P newex 87 180 27 9109513 gate; #P hidden newex 231 -69 45 9109513 loadbang; #P newex 155 311 62 9109513 mstosamps~; #P button 372 133 15 0; #P newex 372 111 33 9109513 sel 32; #P newex 372 83 40 9109513 key; #P flonum 155 288 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 155 232 27 9109513 t b b; #P newex 155 264 51 9109513 snapshot~; #P user multiSlider 115 157 200 16 1. 31000. 1 2680 47 0 0 2 0 0 0; #M frgb 0 0 0; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P user number~ 298 211 323 226 9 139 3 2 0. 0. 0 0. 25 0. 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 14.; #P flonum 116 208 95 14 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P user gain~ 273 243 21 64 158 0 1.071519 7.94321 10.; #P window setfont "Sans Serif" 9.; #P flonum 481 168 35 9 0 0 0 139 0 0 0 255 227 23 222 222 222 0 0 0; #P newex 438 167 33 9109513 *~ 0.1; #P user ezdac~ 246 339 290 372 0; #P message 115 61 41 9109513 set loop; #P user waveform~ 115 83 200 74 139 9; #W mode select; #W mouseoutput continuous; #W unit ms; #W grid 1000.; #W ticks 0; #W labels 1; #W vlabels 0; #W vticks 1; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P message 340 274 26 9109513 stop; #P toggle 390 171 15 0; #P newex 390 192 28 9109513 sel 0; #P newex 340 296 43 9109513 count~; #P newex 214 180 62 9109513 sampstoms~; #P newex 246 211 51 9109513 play~ loop; #P newex 303 352 53 9109513 poke~ loop; #P window setfont "Sans Serif" 14.; #P message 284 59 47 9109518 clear; #B color 9; #P window setfont "Sans Serif" 9.; #P newex 195 60 87 9109513 buffer~ loop 31000; #P toggle 438 84 15 0; #P newex 438 134 31 9109513 gate~; #P window setfont "Sans Serif" 10.; #P window linecount 6; #P comment 251 242 13 9109514 BUFFER; #P user gain~ 246 243 21 64 158 0 1.071519 7.94321 10.; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 430 58 33 9109513 INPUT on/off; #P window linecount 1; #P comment 472 155 55 9109513 INPUT VOL; #P comment 330 62 100 9109513 <- delete recording; #P comment 535 83 100 9109513 <- TEST SOUND; #P comment 10 72 49 9109513 MONITOR; #P window linecount 13; #P comment 450 208 347 9109513 This patch takes any input into the object next to the yellow 'INPUT VOL' box and records it into a single channel (mono) buffer 30 seconds max. Press space to start recording and the input will be recorded into the buffer. After 30 seconds the recording will automatically stop and play the contents in the buffer. If space bar is pressed before the 30 seconds are up \, the recording will stop and immediately start the loop. The input is still recording into the buffer when to loop is playing (multitrack baby!) Press space bare again while the green light is on (looping) and the player stops. If you want to start over and make a new recording and a new loop length \, just click the yellow RESET button. This will clear the buffer and loop length. Resetting can be done both while playing or while the stopped. If you want to keep the loop length but want to clear the buffer \, press the blue CLEAR button. it's a good idea to turn off the input if no sound is made for a while or noise will accumulate.; #P hidden connect 81 0 78 0; #P hidden connect 80 0 78 0; #P hidden connect 77 0 78 0; #P hidden connect 75 0 78 0; #P hidden connect 74 0 78 0; #P hidden connect 76 0 78 0; #P hidden connect 79 0 78 0; #P hidden connect 68 0 60 0; #P hidden connect 69 0 60 0; #P hidden connect 61 0 60 0; #P hidden connect 63 0 60 0; #P hidden connect 37 0 64 0; #P hidden connect 35 0 63 0; #P hidden connect 64 0 63 0; #P connect 66 0 65 0; #P hidden connect 35 0 39 0; #P connect 39 0 40 0; #P connect 40 0 38 0; #P connect 42 0 66 0; #P connect 38 0 66 0; #P hidden connect 62 0 59 0; #P hidden connect 70 0 68 0; #P hidden connect 65 0 68 0; #P connect 33 0 67 0; #P connect 67 0 65 1; #P connect 41 0 42 0; #P connect 38 0 37 0; #P connect 42 0 37 0; #P hidden connect 50 0 69 0; #P connect 41 0 45 0; #P connect 45 0 50 0; #P connect 50 0 47 0; #P connect 47 0 46 0; #P connect 37 0 36 0; #P connect 36 0 41 0; #P connect 30 0 47 1; #P hidden connect 60 1 62 0; #P connect 34 1 36 1; #P hidden connect 35 0 20 0; #P connect 20 0 19 0; #P connect 48 0 27 0; #P connect 25 0 48 0; #P connect 26 1 25 0; #P hidden connect 43 0 84 0; #P hidden connect 69 0 84 0; #P hidden connect 68 0 83 0; #P hidden connect 16 0 82 0; #P hidden connect 63 0 82 0; #P connect 49 0 48 2; #P connect 46 0 48 2; #P hidden connect 83 0 80 0; #P hidden connect 84 0 74 0; #P hidden connect 82 0 81 0; #P fasten 16 0 29 0 395 234 160 234; #P fasten 14 0 28 0 219 258 160 258; #P connect 29 0 28 0; #P connect 28 0 30 0; #P connect 30 0 34 0; #P connect 40 0 49 0; #P connect 46 0 19 1; #P connect 49 0 19 1; #P connect 11 0 10 0; #P hidden connect 35 0 75 0; #P hidden connect 35 0 79 0; #P fasten 15 0 14 0 345 323 219 323; #P hidden connect 35 0 76 0; #P connect 14 0 13 0; #P connect 13 0 6 0; #P hidden connect 87 0 6 0; #P connect 24 0 21 0; #P connect 6 0 21 0; #P hidden connect 35 0 77 0; #P fasten 22 0 24 0 443 239 278 239; #P hidden connect 87 0 24 0; #P connect 6 0 21 1; #P connect 24 0 21 1; #P connect 40 0 11 0; #P fasten 14 0 26 0 219 204 303 204; #P fasten 13 0 12 0 251 239 308 239; #P fasten 22 0 12 0 443 262 308 262; #P hidden connect 35 0 85 0; #P connect 37 0 57 0; #P connect 57 0 53 0; #P connect 53 0 54 0; #P connect 54 0 55 0; #P fasten 15 0 12 1 345 323 329 323; #P hidden connect 35 0 87 0; #P connect 71 1 18 0; #P fasten 29 1 18 0 177 266 345 266; #P connect 72 0 15 0; #P connect 18 0 15 0; #P fasten 43 0 15 0 413 293 345 293; #P connect 14 0 57 1; #P hidden connect 35 0 89 0; #P connect 40 0 58 0; #P hidden connect 35 0 58 0; #P connect 31 0 32 0; #P connect 55 0 33 0; #P connect 32 0 33 0; #P connect 58 0 15 1; #P fasten 36 0 15 1 92 204 378 204; #P connect 45 2 44 0; #P connect 44 0 17 0; #P connect 33 0 17 0; #P connect 17 0 16 0; #P connect 17 0 72 0; #P connect 72 0 73 0; #P connect 73 0 70 0; #P connect 45 1 43 0; #P connect 16 1 43 0; #P connect 40 0 71 0; #P connect 71 0 72 1; #P hidden connect 89 0 9 0; #P connect 9 0 8 0; #P connect 51 0 22 0; #P connect 8 0 22 0; #P connect 52 1 8 1; #P connect 52 0 8 1; #P connect 23 0 22 1; #P hidden connect 85 0 23 0; #P connect 92 0 51 0; #P connect 88 0 51 0; #P connect 91 0 92 0; #P pop;