max v2; #N vpatcher 29 79 933 666; #P origin -74 0; #P toggle 579 41 15 0; #P window setfont "Fixedwidth Serif" 18.; #P window linecount 1; #P newex 784 101 87 1441810 togedge; #P window setfont Times 14.; #P window linecount 4; #P comment 598 98 154 1310734 for example \, every minute \, grab a 10-second audio clip \, switching between two different buffers; #P window setfont "Fixedwidth Serif" 18.; #P window linecount 1; #P newex 579 63 131 1441810 metro 60000; #P window setfont Times 18.; #P comment 619 170 93 1310738 MSP on/off; #P comment 596 39 158 1310738 automated recording; #P window setfont Times 14.; #P comment 30 84 264 1310734 double click to see the contents of the buffer~; #P window linecount 2; #P comment 251 505 308 1310734 other objects can access a buffer~ in various ways \, such as index~ \, wave~ \, cycle~ \, lookup~ \, peek~ \, etc.; #P window linecount 5; #P comment 2 364 143 1310734 a single number message causes groove~ to leap to a particular location (in milliseconds) and play from there; #P window setfont "Fixedwidth Serif" 18.; #P window linecount 1; #P newex 529 452 54 1441810 dac~; #P window setfont Times 14.; #P window linecount 3; #P comment 127 275 154 1310734 a signal tells graoove~ a rate at which to read through the buffer; #P comment 585 428 154 1310734 a signal tells play~ what point in the buffer to read (specified in milliseconds); #P window linecount 1; #P comment 716 372 154 1310734 refer to a particular buffer; #P comment 333 374 154 1310734 refer to a particular buffer; #P comment 711 238 154 1310734 refer to a particular buffer; #P comment 13 170 299 1310734 all other objects access these RAM buffers remotely; #P window setfont "Fixedwidth Serif" 18.; #P message 337 322 142 1441810 set mysound; #P message 337 350 142 1441810 set mysoundb; #P message 721 318 142 1441810 set mysound; #P message 721 346 142 1441810 set mysoundb; #P message 550 318 164 1441810 0 \, 10000 10000; #P newex 550 347 65 1441810 line~; #P message 714 184 142 1441810 set mysound; #P message 714 212 142 1441810 set mysoundb; #P newex 41 136 252 1441810 buffer~ mysoundb 10000; #P newex 148 457 54 1441810 dac~; #P message 250 322 76 1441810 loop 1; #P message 145 365 19 1441810 0; #P newex 168 321 76 1441810 sig~ 1; #P newex 168 411 175 1441810 groove~ mysound; #P newex 550 404 153 1441810 play~ mysound; #P message 439 174 19 1441810 0; #P newex 439 139 131 1441810 delay 10000; #P message 579 141 19 1441810 1; #P button 579 108 15 0; #P toggle 579 224 15 0; #P toggle 604 172 15 0; #P newex 604 195 54 1441810 adc~; #P newex 604 265 175 1441810 record~ mysound; #P newex 41 105 241 1441810 buffer~ mysound 10000; #P window setfont Times 18.; #P comment 26 53 277 1310738 create a space in RAM to store audio; #P window setfont Times 14.; #P window linecount 3; #P comment 373 104 118 1310734 record for a specific amount of time \, then stop; #P connect 12 0 16 0; #P connect 13 0 12 0; #P connect 14 0 12 0; #P connect 15 0 12 0; #P connect 25 0 12 0; #P connect 24 0 12 0; #P connect 12 0 16 1; #P connect 7 0 9 0; #P connect 9 0 10 0; #P connect 11 0 32 0; #P connect 21 0 20 0; #P connect 20 0 11 0; #P connect 23 0 11 0; #P connect 22 0 11 0; #P connect 11 0 32 1; #P connect 41 0 38 0; #P connect 38 0 7 0; #P connect 7 0 8 0; #P connect 8 0 6 0; #P connect 10 0 6 0; #P connect 5 0 4 0; #P connect 4 0 3 0; #P connect 6 0 3 0; #P connect 18 0 3 0; #P connect 19 0 3 0; #P connect 40 0 19 0; #P connect 40 1 18 0; #P connect 38 0 40 0; #P pop;