max v2; view and edit the contents of a buffer; #N vpatcher 130 133 846 575; #P origin 11 -2; #P setbglock 1; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 522 391 50 196617 see also:; #P message 621 390 50 196617 groove~; #P message 569 390 50 196617 buffer~; #P hidden newex 593 411 64 196617 prepend help; #P hidden newex 593 431 45 196617 pcontrol; #N picture; #K replace 151; #K set 0 37879808 16 1048593 50269184 -131072 4718592 4718592 0 1048592 0 10551794 1456194 1229783040 0 1048592 1198688624 1756324458 65546 0 1048592 10092544 16744512 0 1048592 4 0 4718592 4718592 1048608 196616 0 0 0 0 1048592 0 1048592 4197888 -851713 -851713 -851968 -15138816 -154401792 -859045888 -154401792 -859045888 -154402048 -859045863 63180 67161292 63180 67161292 63180 50384076 1638400 -154401792 -859045888 -154401792 -859045888 -154402048 -859045850 65228 64460 -16711732 -16711988 64460 -16711732 -16711988 64460 -16711732 9728 16698368 16502015 16764159 16698368 16502015 16764159 16698368 16502015 16763904 2490368 -20119808 -20120320 -3342592 -20119808 -20120320 -3342592 -20119808 -20120320 -3407872 47251458 -788519424 16698623 16698621 16764159 16698623 16698621 16764159 16698623 16698621 16763904 2490368 -20185088 -70451456 -3342592 -20185088 -70451456 -3342592 -20185088 -70451456 -3407872 637534462 -872414981 -855703297 -855703298 -872414981 -855703297 -855703298 -872414981 -855703297 -872415207 63180 67161292 63180 67161292 63180 50384076 1638400; #K set 128 -154401792 -859045888 -154401792 -859045888 -154402048 -859045863 63180 67161292 63180 67161292 63180 50384076 917759 -218038273 -218038273 -218103553 16711680 0 163840 2424836 0 1134657536 0; #P vpicture 17 14 35 32; #N picture; #K replace 214; #K set 0 45875200 13 917521 50269184 -131072 4718592 4718592 0 851982 0 10551794 1456194 1229783040 0 851982 1198688624 1756324458 65546 0 851982 10092544 16744504 0 851982 4 0 4718592 4718592 1048608 196616 0 0 0 0 851982 0 851982 4203009 -67436808 -50919944 -67305989 -83953412 -150603525 -50463750 -17236745 66649084 -47502854 -117970953 -419963673 -117835013 -33883913 -403183881 -588777223 -84148742 -117970953 -419963673 -117835013 -47502856 -134751753 -487080983 -285607174 -17238025 -638065929 -1142296839 -84214024 -134751753 -487080983 -285607174 -30736649 182908892 -135399491 -117769221 -17364250 -136513555 -138544902 -67371273 182908892 -135399491 -117769221 721352458 -570967074 -302520072 -100992258 -150282761 -1143017993 -386336262 -83953910 -570967074 -302520072 -100992470 -17364287 -138680601 -134749738 -50659593 180484027 -421005321 -506004230 -17364287 -138680601 -134749738 -50713601 -148376645 -136775749 -138677267 -470157321 -205785128 -138676293 -202513415 -134745157 -136775749 -138677267 -470209751 -101189657 -136316950 -136186893 -1124533769 -135792673 -135596063 -202130184 -101189657 -136316950 -136186893 -1124588285 -101189671 -50919178 -471140360 -101189671 -50919178; #K set 128 -471140360 -101189671 -50920202 -471140360 671349751 -136512009 16318199 100203003 -134750979 -150931202 -150603527 -67635236 -34144008 -17366536 -114685701 -135010825 -134678023 -17235975 150730739 -436733960 -101056776 -456453 -135010825 -134678023 -17235975 721812701 -437061640 -17167623 -117900806 -52566542 -134676742 184154360 -100991779 -437061640 -17169159 -117900806 671415545 -134743811 -100008966 -100991748 -101189640 -33945093 -84280580 -50726921 -117573116 -67438086 -67108609 301 237260400 1325400064 11546836 -1164836864 243837920 1010089984 -1130217472 1768515688 237669440 100926211 22604 70150513 302309712 0 -259442487 0 234382208 -13108 0 1131176313 211462064 28673025 4915202 2008905661 229431072 33030924 1494450350 63359 206392624 0 27361280 23868992 0 -2007652888 25591808 25722882 0 276; #P vpicture 392 38 408 53; #P window setfont "Sans Serif" 18.; #P comment 35 9 125 196626 waveform~; #B frgb 26 8 57; #P window setfont "Sans Serif" 9.; #P comment 15 35 292 196617 View and edit the contents of 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 user pictslider 166 141 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.; #P comment 627 90 47 196617 select all; #P message 624 104 51 196617 0 -1 0 -1; #P message 29 309 138 196617 import drumLoop.mp3 0 -1 1; #N vpatcher 40 55 278 404; #P window setfont "Sans Serif" 9.; #P newex 96 202 27 196617 int; #N coll ; #T flags 1 0; #T 0 mode select; #T 1 mode loop; #T 2 mode move; #T 3 mode draw; #P newobj 131 255 53 196617 coll; #P button 75 117 15 0; #N comlet waveform~ mode messages; #P inlet 74 164 15 0; #P newex 113 88 27 196617 << 1; #P newex 96 140 40 196617 change; #P newex 96 164 45 196617 select 0; #P newex 96 117 27 196617 |; #P outlet 131 284 15 0; #P newex 45 62 78 196617 modifiers 100; #P connect 5 0 7 0; #P connect 0 3 2 0; #P connect 7 0 2 0; #P connect 2 0 4 0; #P connect 4 0 3 0; #P connect 3 0 9 0; #P connect 6 0 9 0; #P connect 0 4 5 0; #P connect 5 0 2 1; #P connect 9 0 8 0; #P connect 3 1 8 0; #P connect 8 0 1 0; #P pop; #P hidden newobj 185 83 50 196617 p wfkeys; #P message 29 294 70 196617 import 0 -1 1; #P hidden message 473 249 35 196617 set \$1; #P hidden message 377 249 35 196617 set \$1; #P hidden message 281 238 35 196617 set \$1; #P hidden message 185 238 35 196617 set \$1; #N vpatcher 127 89 780 646; #P origin 0 9; #P window setfont "Sans Serif" 9.; #N vpatcher 40 55 278 404; #P window setfont "Sans Serif" 9.; #P newex 96 202 27 196617 int; #N coll ; #T flags 1 0; #T 0 mode select; #T 1 mode loop; #T 2 mode move; #T 3 mode draw; #P newobj 131 255 53 196617 coll; #P button 75 117 15 0; #N comlet waveform~ mode messages; #P inlet 74 164 15 0; #P newex 113 88 27 196617 << 1; #P newex 96 140 40 196617 change; #P newex 96 164 45 196617 select 0; #P newex 96 117 27 196617 |; #P outlet 131 284 15 0; #P newex 45 62 78 196617 modifiers 100; #P connect 5 0 7 0; #P connect 7 0 2 0; #P connect 0 3 2 0; #P connect 2 0 4 0; #P connect 4 0 3 0; #P connect 6 0 9 0; #P connect 3 0 9 0; #P connect 0 4 5 0; #P connect 5 0 2 1; #P connect 3 1 8 0; #P connect 9 0 8 0; #P connect 8 0 1 0; #P pop; #P hidden newobj 36 91 50 196617 p wfkeys; #P user pictslider 98 59 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.; #P comment 400 290 85 196617 this is the default; #P comment 200 247 100 196617 some typical values:; #P comment 207 275 61 196617 these do the same thing; #P message 269 288 108 196617 unit phase \, grid -8; #P message 486 275 122 196617 unit samples \, grid 44100; #P message 486 261 98 196617 unit samples \, grid 1; #P message 269 274 108 196617 unit phase \, grid 0.125; #P message 486 247 95 196617 unit bpm \, grid 0.25; #P message 486 289 93 196617 unit ms \, grid 1000; #P message 436 414 35 196617 offset; #P comment 199 414 142 196617 same effect. send the message; #P comment 387 414 48 196617 or simply; #P message 343 414 44 196617 offset 0; #P comment 471 414 139 196617 to specify no offset (default).; #P comment 563 18 47 196617 select all; #P message 560 32 51 196617 0 -1 0 -1; #P flonum 153 233 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 182 336 15 0; #P toggle 182 315 15 0; #P newex 46 213 65 196617 prepend snap; #P user umenu 129 196 68 196647 1 64 212 0; #X add none; #X add grid; #X add zero; #P message 61 424 50 196617 offset \$1; #P comment 200 223 410 196617 grid - specifies the spacing of the grid \, in the current time unit. negative values are interpreted as 1/n \, for convenience.; #P comment 200 380 410 196617 vticks <1 or 0> - turns on and off the vertical tick marks.; #P toggle 182 379 15 0; #P toggle 182 357 15 0; #P message 60 397 51 196617 vticks \$1; #P message 56 375 55 196617 vlabels \$1; #P message 70 252 41 196617 grid \$1; #P message 66 353 45 196617 ticks \$1; #P message 62 331 49 196617 labels \$1; #P comment 200 337 410 196617 ticks <1 or 0> turns on and off the tick mark display beneath the time labels.; #P comment 200 358 410 196617 vlabels <1 or 0> - turns on and off the vertical tick mark labels.; #P hidden message 460 39 48 196617 set foo 1; #P comment 200 191 410 196617 snap - causes selection start and end point to snap to grid (as specified by the grid message) \, or zero crossings in the buffer~ data.; #P comment 199 402 410 196617 offset - shifts the position of the ruler. clicking and dragging in the ruler has the; #P comment 200 316 410 196617 labels <1 or 0> - turns on and off the numerical time display.; #P comment 200 477 411 196617 setbpm - sets the tempo for BPM display. this is like the bpm message \, except that waveform~ determines the new tempo. it finds the nearest tempo that "fits" the current selection - meaning that the selection length will be exactly one beat \, one bar \, or multiple (powers of 2) bars. the offset is changed so that the selection start falls on a bar line.; #P comment 200 440 410 196617 bpm - sets the tempo and number of beats per bar \, for BPM display. this message automatically sets the display label to BPM.; #P hidden message 415 39 45 196617 set none; #P hidden message 267 39 43 196617 set bpm; #P hidden message 341 39 31 196617 set 4; #P hidden message 310 39 31 196617 set 1; #P hidden newex 286 12 45 196617 loadbang; #P message 153 493 44 196617 setbpm; #P comment 200 165 410 196617 unit - specifies the unit of time measurement to be used in displayed values.; #P newex 48 180 63 196617 prepend unit; #P user umenu 129 163 68 196647 1 64 179 0; #X add ms; #X add samples; #X add phase; #X add bpm; #P flonum 153 406 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 153 436 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 153 451 44 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 13 474 15 0; #P newex 28 474 86 196617 pack bpm 120. 4.; #P window setfont "Sans Serif" 18.; #P comment 93 13 138 196626 grid and snap; #P window setfont "Sans Serif" 9.; #P user waveform~ 117 59 494 91 3 9; #W mode move; #W snap grid; #W mouseoutput continuous; #W unit ms; #W grid 1000.; #W ticks 8; #W labels 1; #W vlabels 1; #W vticks 1; #W voffset 0.07; #W bpm 268.248169 4.; #W frgb 0 0 0; #W brgb 98 150 145; #W rgb2 77 108 155; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 166 177 221; #W rgb6 170 170 170; #W rgb7 93 93 93; #P hidden message 372 39 43 196617 set 240; #P fasten 5 0 4 0 158 466 18 466; #P fasten 6 0 4 0 158 450 18 450; #P connect 4 0 3 0; #P hidden connect 56 0 57 0; #P connect 35 1 36 0; #P connect 8 1 9 0; #P fasten 30 0 28 0 187 373 61 373; #P fasten 31 0 29 0 187 395 65 395; #P fasten 7 0 34 0 158 422 66 422; #P fasten 37 0 25 0 187 329 67 329; #P fasten 38 0 26 0 187 351 71 351; #P fasten 6 0 3 1 158 450 71 450; #P fasten 39 0 27 0 158 250 75 250; #P fasten 5 0 3 2 158 466 109 466; #P hidden connect 57 0 1 0; #P fasten 36 0 1 0 51 231 122 231; #P fasten 34 0 1 0 66 440 122 440; #P hidden fasten 22 0 1 0 465 55 122 55; #P fasten 11 0 1 0 158 510 122 510; #P fasten 3 0 1 0 33 492 122 492; #P fasten 28 0 1 0 61 391 122 391; #P fasten 27 0 1 0 75 304 122 304; #P fasten 26 0 1 0 71 369 122 369; #P fasten 25 0 1 0 67 347 122 347; #P fasten 9 0 1 0 53 198 122 198; #P fasten 29 0 1 0 65 413 122 413; #P hidden fasten 43 0 1 0 348 436 122 436; #P hidden fasten 46 0 1 0 441 436 122 436; #P hidden fasten 49 0 1 0 274 308 122 308; #P hidden fasten 52 0 1 0 274 308 122 308; #P hidden fasten 47 0 1 0 491 308 122 308; #P hidden fasten 51 0 1 0 491 308 122 308; #P hidden fasten 50 0 1 0 491 308 122 308; #P hidden fasten 48 0 1 0 491 308 122 308; #P hidden fasten 15 0 8 0 272 55 134 55; #P hidden fasten 13 0 39 0 315 55 158 55; #P hidden fasten 0 0 6 0 377 55 158 55; #P hidden fasten 14 0 5 0 346 55 158 55; #P hidden fasten 13 0 37 0 315 55 187 55; #P hidden fasten 13 0 38 0 315 55 187 55; #P hidden fasten 13 0 30 0 315 55 187 55; #P hidden fasten 13 0 31 0 315 55 187 55; #P hidden fasten 12 0 15 0 291 34 272 34; #P hidden fasten 12 0 13 0 291 34 315 34; #P hidden fasten 12 0 14 0 291 34 346 34; #P hidden fasten 12 0 0 0 291 34 377 34; #P hidden fasten 12 0 16 0 291 34 420 34; #P hidden fasten 12 0 22 0 291 34 465 34; #P fasten 40 0 1 4 565 48 606 48; #P pop; #P newobj 596 313 60 196617 p grid+snap; #P comment 302 340 242 196617 clips sample values to window display in draw mode; #P toggle 285 339 15 0; #P message 223 339 62 196617 clipdraw \$1; #P user meter~ 74 144 87 202 100 0 168 0 104 104 104 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3; #P user gain~ 38 144 37 36 158 0 1.071519 7.94321 10.; #P newex 108 169 29 196617 dac~; #P hidden message 139 333 35 196617 loop 1; #P button 285 354 15 0; #P hidden newex 221 354 29 196617 float; #P comment 302 355 174 196617 normalize buffer~ (destructive edit); #P flonum 250 354 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden message 221 387 65 196617 normalize \$1; #P hidden newex 225 251 45 196617 loadbang; #P hidden message 225 286 14 196617 1; #N vpatcher 163 47 915 551; #P setbglock 1; #P window setfont "Sans Serif" 9.; #N vpatcher 40 55 278 404; #P window setfont "Sans Serif" 9.; #P newex 96 202 27 196617 int; #N coll ; #T flags 1 0; #T 0 mode select; #T 1 mode loop; #T 2 mode move; #T 3 mode draw; #P newobj 131 255 53 196617 coll; #P button 75 117 15 0; #N comlet waveform~ mode messages; #P inlet 74 164 15 0; #P newex 113 88 27 196617 << 1; #P newex 96 140 40 196617 change; #P newex 96 164 45 196617 select 0; #P newex 96 117 27 196617 |; #P outlet 131 284 15 0; #P newex 45 62 78 196617 modifiers 100; #P connect 5 0 7 0; #P connect 7 0 2 0; #P connect 0 3 2 0; #P connect 2 0 4 0; #P connect 4 0 3 0; #P connect 6 0 9 0; #P connect 3 0 9 0; #P connect 0 4 5 0; #P connect 5 0 2 1; #P connect 3 1 8 0; #P connect 9 0 8 0; #P connect 8 0 1 0; #P pop; #P hidden newobj 76 165 50 196617 p wfkeys; #P user pictslider 142 148 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.; #P comment 322 79 325 196617 ; #P window setfont "Sans Serif" 18.; #P comment 25 26 245 196626 multi-channel waveform~; #P window setfont "Sans Serif" 9.; #P flonum 521 440 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 401 440 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 281 440 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 161 440 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 641 422 85 196617 unpack 0. 0. 0. 0.; #P comment 322 47 325 196617 whenever a relevant value changes \, waveform~ sends a list from its rightmost outlet \, containing:; #P flonum 521 367 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 401 367 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 281 367 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 161 367 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 18 319 95 196617 name stereowave 2; #P message 18 226 41 196617 replace; #P newex 18 246 128 196617 buffer~ stereowave 500 2; #P user waveform~ 161 267 490 93 3 9; #W mode move; #W mouseoutput continuous; #W unit phase; #W grid 0.125; #W ticks 8; #W labels -16; #W vlabels 0; #W vticks 0; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 4 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P hidden newex 18 277 45 196617 loadbang; #P comment 512 114 68 196617 select end ms; #P comment 390 114 75 196617 select start ms; #P comment 268 114 83 196617 display length ms; #P flonum 521 128 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 401 128 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 281 128 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 161 128 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 521 246 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 401 246 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 281 246 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 161 246 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 18 300 95 196617 name stereowave 1; #P user waveform~ 161 148 490 93 3 9; #W mode move; #W mouseoutput continuous; #W unit phase; #W grid 0.125; #W ticks 8; #W labels -16; #W vlabels 0; #W vticks 0; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 4 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P comment 148 114 83 196617 display start ms; #P comment 322 27 351 196617 use link outlet and inlet to share values among multiple waveform~ objects.; #P comment 17 339 127 196617 set each waveform~ object to a different channel; #P connect 19 0 18 0; #P hidden connect 16 0 4 0; #P hidden connect 16 0 20 0; #P hidden connect 33 1 34 0; #P hidden connect 34 0 3 0; #P connect 9 0 3 0; #P hidden connect 4 0 3 0; #P hidden connect 3 0 5 0; #P hidden connect 20 0 17 0; #P hidden connect 17 0 21 0; #P connect 26 0 27 0; #P connect 10 0 3 1; #P hidden connect 3 1 6 0; #P hidden connect 17 1 22 0; #P connect 26 1 28 0; #P connect 11 0 3 2; #P hidden connect 3 2 7 0; #P hidden connect 17 2 23 0; #P connect 26 2 29 0; #P connect 12 0 3 3; #P hidden connect 3 3 8 0; #P hidden connect 17 3 24 0; #P connect 26 3 30 0; #P fasten 17 5 3 4 646 367 663 367 663 141 646 141; #P connect 3 5 17 4; #P connect 17 5 26 0; #P pop; #P newobj 596 357 75 196617 p multi-channel; #N vpatcher 189 60 796 521; #P origin 0 45; #P setbglock 1; #P window setfont "Sans Serif" 9.; #N vpatcher 40 55 278 404; #P window setfont "Sans Serif" 9.; #P newex 96 202 27 196617 int; #N coll ; #T flags 1 0; #T 0 mode select; #T 1 mode loop; #T 2 mode move; #T 3 mode draw; #P newobj 131 255 53 196617 coll; #P button 75 117 15 0; #N comlet waveform~ mode messages; #P inlet 74 164 15 0; #P newex 113 88 27 196617 << 1; #P newex 96 140 40 196617 change; #P newex 96 164 45 196617 select 0; #P newex 96 117 27 196617 |; #P outlet 131 284 15 0; #P newex 45 62 78 196617 modifiers 100; #P connect 5 0 7 0; #P connect 7 0 2 0; #P connect 0 3 2 0; #P connect 2 0 4 0; #P connect 4 0 3 0; #P connect 6 0 9 0; #P connect 3 0 9 0; #P connect 0 4 5 0; #P connect 5 0 2 1; #P connect 3 1 8 0; #P connect 9 0 8 0; #P connect 8 0 1 0; #P pop; #P newobj 142 24 50 196617 p wfkeys; #P user pictslider 46 152 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146 0 0 196608 1. 1.; #P comment 195 26 300 196617 example subpatch to handle key-triggered mouse mode switching; #P hidden message 7 56 72 196617 set continuous; #P hidden newex 7 32 45 196617 loadbang; #P user umenu 145 72 100 196647 1 64 88 0; #X add none; #X add down; #X add up; #X add downup; #X add continuous; #P hidden newex 7 94 45 196617 loadbang; #P hidden message 120 286 14 196617 1; #P flonum 120 320 34 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 65 320 55 196617 voffset \$1; #P flonum 120 305 34 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 65 305 55 196617 vzoom \$1; #P comment 369 344 37 196617 button; #P comment 336 344 14 196617 y; #P comment 63 342 106 196617 see how vzoom and voffset affect y value; #P comment 271 411 237 196617 button is 1 on click \, 2 on drag \, and 0 on mouse-up; #P comment 271 392 178 196617 y is amplitude value at mouse position; #P comment 271 380 222 196617 x is 0. at left of wave window \, 1. at right; #P comment 271 362 222 196617 mouse outlet sends (x \, y \, button); #P newex 271 305 71 196617 unpack 0. 0. 0; #P number 369 327 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 320 327 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 271 327 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 235 95 74 196617 prepend output; #P comment 162 57 64 196617 output modes; #P hidden newex 120 265 45 196617 loadbang; #P comment 416 118 68 196617 select end ms; #P comment 293 118 75 196617 select start ms; #P comment 168 118 83 196617 display length ms; #P flonum 425 132 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 305 132 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 185 132 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 65 132 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 425 250 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 305 249 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 185 249 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 65 250 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden message 7 117 39 196617 set foo; #P user waveform~ 65 152 490 93 3 9; #W mode move; #W mouseoutput continuous; #W unit samples; #W grid 11025.; #W ticks 4; #W labels 1; #W vlabels 0; #W vticks 0; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 4 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P comment 49 118 83 196617 display start ms; #P comment 247 67 222 196617 output mode message determines when mouse activity triggers display and select output; #P comment 286 344 15 196617 x; #P hidden connect 37 0 38 0; #P hidden connect 35 0 4 0; #P hidden connect 41 0 3 0; #P hidden connect 4 0 3 0; #P connect 9 0 3 0; #P hidden connect 30 0 3 0; #P hidden connect 32 0 3 0; #P hidden fasten 18 0 3 0 240 114 70 114; #P hidden connect 3 0 5 0; #P hidden connect 31 0 30 0; #P hidden connect 33 0 32 0; #P hidden connect 16 0 34 0; #P hidden connect 34 0 31 0; #P hidden connect 40 1 41 0; #P hidden connect 38 0 36 0; #P connect 10 0 3 1; #P hidden connect 3 1 6 0; #P hidden connect 36 1 18 0; #P hidden fasten 3 4 22 0 454 294 276 294; #P hidden connect 22 0 19 0; #P connect 11 0 3 2; #P hidden connect 3 2 7 0; #P hidden connect 22 1 20 0; #P hidden connect 22 2 21 0; #P connect 12 0 3 3; #P hidden connect 3 3 8 0; #P pop; #P newobj 596 335 71 196617 p mouse+keys; #P comment 302 325 237 196617 set vertical offset (amplitude at middle of display); #P flonum 265 324 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 210 324 55 196617 voffset \$1; #P comment 302 310 273 196617 set vertical zoom (amplitude from middle to top of display); #P comment 302 295 92 196617 undo last selection; #P comment 302 370 247 196617 crop buffer~ to current selection (destructive edit); #P message 272 294 28 196617 undo; #P flonum 265 309 35 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 210 309 55 196617 vzoom \$1; #P message 272 369 28 196617 crop; #P newex 61 359 29 196617 adc~; #P window linecount 3; #P comment 94 361 87 196617 record into buffer~ to see dynamic updating; #P toggle 29 359 15 0; #P window linecount 1; #P newex 29 382 61 196617 record~ foo; #P comment 536 107 68 196617 select end ms; #P comment 414 107 75 196617 select start ms; #P comment 292 107 83 196617 display length ms; #P flonum 545 121 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 425 121 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 305 121 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 185 121 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 38 63 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 80 63 45 196617 loadbang; #P message 80 104 35 196617 loop 1; #P message 80 83 49 196617 startloop; #P newex 38 84 35 196617 sig~ 1; #P newex 38 122 62 196617 groove~ foo; #P message 29 279 41 196617 replace; #P newex 29 330 85 196617 buffer~ foo 1000; #P message 252 279 48 196617 set foo 1; #P user waveform~ 185 141 490 93 3 9; #W mode move; #W mouseoutput continuous; #W clipdraw 1; #W unit ms; #W grid 500.; #W ticks 8; #W labels 1; #W vlabels 1; #W vticks 1; #W bpm 120. 4.; #W frgb 16 0 0; #W brgb 94 166 169; #W rgb2 63 112 185; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 169 165 207; #W rgb6 108 108 108; #W rgb7 78 74 220; #P comment 172 107 83 196617 display start ms; #P comment 29 263 148 196617 ¥ read a sound file into buffer~; #P comment 302 280 178 196617 link waveform~ to [ buffer \, channel]; #P comment 594 289 83 196617 more examples:; #P message 101 229 27 196617 stop; #P message 34 229 65 196617 startwindow; #P comment 34 215 70 196617 ¥ start audio.; #P user panel 20 211 123 43; #X brgb 255 255 255; #X frgb 100 202 30; #X border 2; #X rounded 0; #X shadow 0; #X done; #P hidden connect 62 0 10 0; #P hidden connect 60 0 10 0; #P hidden connect 11 0 10 0; #P hidden fasten 48 0 25 0 144 357 34 357; #P hidden fasten 28 0 25 0 66 378 34 378; #P connect 26 0 25 0; #P connect 17 0 13 0; #P connect 13 0 12 0; #P hidden connect 15 0 12 0; #P hidden connect 14 0 12 0; #P connect 12 0 50 0; #P fasten 8 2 12 1 382 238 158 238 158 101 69 101; #P hidden connect 50 0 51 0; #P hidden connect 16 0 14 0; #P hidden connect 16 0 15 0; #P fasten 8 3 12 2 478 242 153 242 153 120 95 120; #P hidden fasten 2 0 49 0 39 259 113 259; #P hidden fasten 3 0 49 0 106 259 113 259; #P hidden fasten 50 0 49 0 43 207 113 207; #P hidden fasten 50 0 49 1 43 207 132 207; #P hidden connect 42 0 48 0; #P hidden connect 65 1 61 0; #P hidden connect 56 0 18 0; #P hidden connect 61 0 8 0; #P hidden connect 36 0 8 0; #P hidden connect 30 0 8 0; #P hidden connect 9 0 8 0; #P connect 18 0 8 0; #P hidden connect 32 0 8 0; #P hidden fasten 29 0 8 0 277 393 190 393; #P hidden fasten 43 0 8 0 226 412 190 412; #P hidden fasten 52 0 8 0 228 362 190 362; #P hidden connect 8 0 56 0; #P hidden connect 31 0 30 0; #P hidden connect 37 0 36 0; #P hidden connect 47 0 46 0; #P hidden connect 46 0 43 0; #P hidden connect 53 0 52 0; #P hidden connect 42 0 41 0; #P hidden connect 44 0 46 1; #P hidden connect 41 0 44 0; #P hidden connect 10 1 9 0; #P hidden fasten 42 0 9 0 230 275 257 275; #P hidden connect 41 0 31 0; #P hidden connect 8 1 57 0; #P hidden connect 57 0 19 0; #P connect 19 0 8 1; #P hidden connect 8 2 58 0; #P hidden connect 58 0 20 0; #P connect 20 0 8 2; #P hidden connect 8 3 59 0; #P hidden connect 59 0 21 0; #P connect 21 0 8 3; #P hidden connect 73 0 72 0; #P hidden connect 74 0 72 0; #P hidden connect 72 0 71 0; #P fasten 63 0 8 4 629 121 670 121; #P pop;