max v2; #N vpatcher 49 44 1318 844; #P window setfont "Sans Serif" 18.; #P window linecount 1; #P message 168 442 126 196626 set cherokee; #P message 590 321 74 196626 replace; #P newex 591 374 189 196626 buffer~ drums 4000; #P window setfont "Sans Serif" 9.; #P newex 876 312 45 196617 / 1000.; #P flonum 886 349 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 850 211 15 0; #P newex 850 74 62 196617 metro 200; #P window linecount 2; #P comment 984 229 45 196617 Hor. Delta; #P comment 939 229 42 196617 Ver. Position; #P comment 894 229 45 196617 Hor. Position; #P window linecount 1; #P comment 847 229 35 196617 Button; #P number 985 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 940 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 895 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 1030 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 2; #P comment 1031 229 42 196617 Ver. Delta; #P window linecount 1; #P newex 850 175 193 196617 mousestate; #B color 5; #P toggle 850 53 15 0; #P window setfont "Sans Serif" 18.; #P flonum 549 62 115 18 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P message 604 650 54 196617 record~; #P comment 559 548 110 196617 see also: Tutorial 13; #P message 604 633 54 196617 2d.wave~; #P message 604 616 54 196617 wave~; #P message 604 599 54 196617 groove~; #P message 604 582 54 196617 buffir~; #P message 604 565 54 196617 buffer~; #P hidden newex 581 669 64 196617 prepend help; #P objectname phelp; #P hidden newex 581 689 45 196617 pcontrol; #P window setfont "Sans Serif" 18.; #P comment 15 9 106 196626 play~; #B frgb 26 8 57; #P window setfont "Sans Serif" 9.; #P comment 15 35 292 196617 Sample playback based on position within a buffer~; #P user panel 10 5 400 50; #X brgb 226 250 200; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 0; #X done; #P message 69 201 14 196617 0; #P newex 69 180 45 196617 loadbang; #P newex 69 240 27 196617 + 1; #P window setfont "Sans Serif" 18.; #P user umenu 18 214 87 196683 1 64 242 1; #X add line; #X add loop; #P newex 69 262 128 196626 selector~ 2; #P newex 27 481 68 196626 dac~; #P message 442 329 48 196626 stop; #P message 381 330 54 196626 start; #P message 198 290 99 196626 set drums; #P newex 392 201 51 196626 +~ 0; #P newex 398 160 85 196626 *~ 4000; #P message 503 89 23 196626 2.; #P message 464 88 23 196626 0.; #P newex 444 122 113 196626 phasor~; #P message 584 149 74 196626 replace; #P newex 592 193 216 196626 buffer~ cherokee 4000; #P message 215 171 130 196626 0 \, 1000 500; #P message 168 123 147 196626 0 \, 1000 20000; #P message 24 155 135 196626 4000 \, 0 4000; #P message 5 122 135 196626 0 \, 4000 4000; #P newex 126 223 67 196626 line~; #P newex 19 350 118 196626 play~ drums; #B color 5; #P window setfont "Sans Serif" 9.; #P window linecount 3; #P comment 168 343 185 196617 Arguments: symbol for buffer~ object to play from \, optional number of channels of output (1 \, 2 \, or 4); #P window linecount 2; #P comment 56 314 216 196617 input signal specifies millisecond position within the sample to play; #P window linecount 4; #P comment 40 71 338 196617 play~ is a playback interface for buffer~ that plays back samples based on an offset within the sample. See groove~ for another sample playback interface. play~ is typically used with line \, but can be used with any signal that generates a changing position value.; #P window linecount 1; #P comment 775 583 200 196617 play one second forwards at original speed; #P comment 793 597 205 196617 play one second backwards at original speed; #P comment 855 626 100 196617 play at half speed; #P comment 871 645 100 196617 play at double speed; #P comment 589 126 100 196617 € open a sample file; #P comment 208 277 170 196617 change what buffer~ you're using; #P window linecount 3; #P comment 579 234 126 196617 loop using a slow ramp (turn on by clicking on 2 \, turn off by clicking on 0); #P window linecount 1; #P comment 381 315 100 196617 € start audio; #P window linecount 2; #P comment 29 360 41 196617 sample output; #P user panel 370 311 123 43; #X brgb 255 255 255; #X frgb 100 202 30; #X border 2; #X rounded 0; #X shadow 0; #X done; #P user panel 840 39 250 345; #X brgb 191 191 191; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P connect 35 0 32 0; #P connect 66 0 14 0; #P connect 31 0 14 0; #P fasten 27 0 14 0 203 310 24 310; #P connect 14 0 30 0; #P fasten 29 0 30 0 447 381 32 381; #P fasten 28 0 30 0 386 381 32 381; #P connect 34 0 35 0; #P connect 32 0 33 0; #P connect 33 0 31 0; #P fasten 14 0 30 1 24 404 90 404; #P connect 19 0 15 0; #P connect 18 0 15 0; #P connect 17 0 15 0; #P connect 16 0 15 0; #P connect 15 0 31 1; #P fasten 26 0 31 2 397 257 192 257; #P connect 25 0 26 0; #P connect 22 0 25 0; #P connect 23 0 22 0; #P connect 24 0 22 0; #P connect 48 0 22 0; #P hidden connect 47 0 40 0; #P hidden connect 45 0 40 0; #P hidden connect 44 0 40 0; #P hidden connect 43 0 40 0; #P hidden connect 42 0 40 0; #P hidden connect 41 0 40 0; #P hidden connect 40 0 39 0; #P connect 65 0 64 0; #P connect 21 0 20 0; #P connect 49 0 60 0; #P connect 60 0 50 0; #P connect 50 0 61 0; #P connect 50 1 63 0; #P connect 63 0 62 0; #P connect 50 1 53 0; #P connect 50 2 54 0; #P connect 50 3 55 0; #P connect 50 4 52 0; #P pop;