max v2; #N vpatcher 120 83 1203 631; #P window setfont "Sans Serif" 9.; #P newex 627 312 45 196617 / 1000.; #P flonum 637 349 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 601 211 15 0; #P newex 601 74 62 196617 metro 200; #P comment 735 229 45 196617 Hor. Delta; #P comment 690 229 42 196617 Ver. Position; #P comment 645 229 45 196617 Hor. Position; #P comment 598 229 35 196617 Button; #P number 736 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 691 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 646 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 781 212 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 782 229 42 196617 Ver. Delta; #P newex 601 175 193 196617 mousestate; #B color 5; #P toggle 601 53 15 0; #P flonum 417 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 512 379 54 196617 record~; #P comment 467 277 110 196617 see also: Tutorial 13; #P message 512 362 54 196617 2d.wave~; #P message 512 345 54 196617 wave~; #P message 512 328 54 196617 groove~; #P message 512 311 54 196617 buffir~; #P message 512 294 54 196617 buffer~; #P hidden newex 489 398 64 196617 prepend help; #P objectname phelp; #P hidden newex 489 418 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 user umenu 69 220 36 196647 1 64 236 1; #X add line; #X add loop; #P newex 69 262 128 196617 selector~ 2; #P newex 69 389 29 196617 dac~; #P message 452 330 27 196617 stop; #P message 381 330 65 196617 startwindow; #P message 198 290 82 196617 set nutherbuffer; #P newex 383 235 41 196617 +~ 500; #P newex 383 210 42 196617 *~ 500; #P message 409 164 23 196617 2.; #P message 383 164 23 196617 0.; #P newex 383 187 44 196617 phasor~; #P message 462 129 28 196617 read; #P newex 462 157 104 196617 buffer~ playme 1000; #P message 195 184 65 196617 0 \, 1000 500; #P message 172 165 72 196617 0 \, 1000 2000; #P message 149 145 72 196617 1000 \, 0 1000; #P message 128 126 72 196617 0 \, 1000 1000; #P newex 128 210 30 196617 line~; #P newex 69 341 92 196617 play~ playme; #B color 5; #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 comment 81 315 216 196617 input signal specifies millisecond position within the sample to play; #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 comment 204 126 200 196617 play one second forwards at original speed; #P comment 226 146 205 196617 play one second backwards at original speed; #P comment 249 166 100 196617 play at half speed; #P comment 265 185 100 196617 play at double speed; #P comment 470 112 100 196617 € open a sample file; #P comment 208 277 170 196617 change what buffer~ you're using; #P comment 435 191 126 196617 loop using a slow ramp (turn on by clicking on 2 \, turn off by clicking on 0); #P comment 381 315 100 196617 € start audio; #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 591 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 34 0 35 0; #P connect 35 0 32 0; #P connect 32 0 33 0; #P connect 33 0 31 0; #P connect 31 0 14 0; #P fasten 27 0 14 0 203 310 74 310; #P connect 14 0 30 0; #P fasten 28 0 30 0 386 381 74 381; #P fasten 29 0 30 0 457 381 74 381; #P fasten 14 0 30 1 74 366 93 366; #P connect 16 0 15 0; #P connect 17 0 15 0; #P connect 18 0 15 0; #P connect 19 0 15 0; #P connect 15 0 31 1; #P fasten 26 0 31 2 388 257 192 257; #P connect 48 0 22 0; #P connect 24 0 22 0; #P connect 23 0 22 0; #P connect 22 0 25 0; #P connect 25 0 26 0; #P connect 21 0 20 0; #P hidden connect 41 0 40 0; #P hidden connect 42 0 40 0; #P hidden connect 43 0 40 0; #P hidden connect 44 0 40 0; #P hidden connect 45 0 40 0; #P hidden connect 47 0 40 0; #P hidden connect 40 0 39 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;