max v2; #N vpatcher 74 30 689 467; #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 connect 33 0 34 0; #P connect 34 0 31 0; #P connect 31 0 32 0; #P connect 32 0 30 0; #P fasten 26 0 13 0 203 310 74 310; #P connect 30 0 13 0; #P fasten 28 0 29 0 457 381 74 381; #P fasten 27 0 29 0 386 381 74 381; #P connect 13 0 29 0; #P fasten 13 0 29 1 74 366 93 366; #P connect 18 0 14 0; #P connect 17 0 14 0; #P connect 16 0 14 0; #P connect 15 0 14 0; #P connect 14 0 30 1; #P fasten 25 0 30 2 388 257 192 257; #P connect 22 0 21 0; #P connect 23 0 21 0; #P connect 21 0 24 0; #P connect 24 0 25 0; #P connect 20 0 19 0; #P pop;