max v2; #N vpatcher 74 33 885 683; #P origin 396 -10; #P window setfont "Sans Serif" 9.; #P hidden newex 197 72 30 9109513 r port; #P hidden newex 396 148 32 9109513 s port; #P hidden newex 319 71 144 9109513 route 0 1 2 3 4 5 6 7 8 9; #P hidden message 549 111 32 9109513 port k; #P hidden message 517 111 29 9109513 port i; #P hidden message 483 111 32 9109513 port h; #P hidden message 450 111 32 9109513 port g; #P user umenu 319 47 100 9109543 1 64 63 1; #X add COM 1; #X add COM 2; #X add COM 3; #X add COM 4; #X add COM 5; #X add COM 6; #X add COM 7; #X add COM 8; #X add COM 9; #X add COM 10; #P hidden message 412 111 36 9109513 port f; #P hidden message 374 111 37 9109513 port e; #P hidden message 340 111 32 9109513 port d; #P hidden message 307 111 32 9109513 port c; #P hidden message 274 111 32 9109513 port b; #P hidden message 240 111 32 9109513 port a; #P hidden message 159 73 35 9109513 print; #P hidden message 428 187 18 9109513 70; #P hidden message 183 159 21 9109513 0.1; #P hidden newex 120 158 45 9109513 loadbang; #P hidden message 120 188 23 9109513 511; #P window setfont "Sans Serif" 12.; #P hidden message 88 19 15 9109516 0; #P toggle 67 69 15 0; #P button 21 69 15 0; #N vpatcher 66 102 952 678; #P origin -34 0; #P inlet 629 147 15 0; #P button 511 172 15 0; #P button 526 101 15 0; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 478 194 44 9109513 r to-wmd; #P newex 532 221 58 9109513 s from-wmd; #P newex 270 433 46 9109513 s to-wmd; #P newex 272 360 56 9109513 r from-wmd; #P message 526 125 14 9109513 1; #P newex 526 75 45 9109513 loadbang; #P message 581 147 41 9109513 dtr 1; #P newex 525 146 54 9109513 metro 1; #P newex 532 195 109 9109513 serial f 115200 8 1 0; #B color 5; #P outlet 190 509 15 0; #P window setfont "Sans Serif" 12.; #P newex 186 70 62 9109516 select 1 0; #P message 170 180 33 9109516 2 off; #P message 135 124 33 9109516 1 off; #P newex 119 71 62 9109516 select 1 0; #P newex 189 240 47 9109516 delay 5; #P window setfont "Sans Serif" 9.; #P window linecount 5; #P comment 358 154 100 9109513 connect input 2 to icube outlet 2 \, set the resolution to 10-bit \, scale to 0-1023 \, turn sampling on for input 2; #P button 189 215 15 0; #P inlet 186 46 15 0; #P inlet 119 47 15 0; #P window setfont "Sans Serif" 12.; #P window linecount 1; #P newex 660 523 48 9109516 s icube; #P newex 150 357 43 9109516 r icube; #P window setfont "Sans Serif" 9.; #P comment 314 329 126 9109513 set sample interval to 20 ms; #P comment 315 300 126 9109513 set sample interval to 4 ms; #P window setfont "Sans Serif" 12.; #P message 189 298 67 9109516 0 interval 4; #P message 149 155 206 9109516 2 connect 2 2 res 1 2 max 1023 2 on; #P message 119 99 209 9109516 1 connect 1 1 res 1 1 max 1023 1 on; #P user uslider 117 391 18 128 1023 1 0 0; #P button 35 75 15 0; #P inlet 35 47 15 0; #P outlet 150 508 15 0; #P number 190 436 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P number 150 436 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 723 458 72 9109516 2 max 1023; #P message 670 320 72 9109516 1 max 1023; #P message 708 433 46 9109516 2 res 1; #P message 658 295 46 9109516 1 res 1; #P message 738 482 32 9109516 2 on; #P message 684 343 32 9109516 1 on; #P message 694 409 71 9109516 2 connect 2; #P message 643 272 71 9109516 1 connect 1; #P message 189 270 117 9109516 240 125 0 3 0 2 247; #P message 190 325 74 9109516 0 interval 20; #P message 63 131 46 9109516 0 reset; #P message 35 100 74 9109516 0 hostmode; #P newex 150 393 132 9109516 iCube 2; #P window setfont "Sans Serif" 9.; #P comment 314 273 126 9109513 set sample interval to 2 ms; #P window linecount 4; #P comment 334 97 122 9109513 connect input 1 to icube outlet 1 \, set the resolution to 10-bit \, scale to 0-1023 \, turn sampling on for input 1; #P connect 18 0 19 0; #P connect 19 0 3 0; #P connect 2 0 20 0; #P connect 28 0 33 0; #P connect 33 0 21 0; #P connect 33 1 34 0; #P connect 36 0 22 0; #P connect 22 0 2 0; #P connect 35 0 2 0; #P connect 34 0 2 0; #P connect 26 0 2 0; #P connect 23 0 2 0; #P connect 4 0 2 0; #P connect 5 0 2 0; #P connect 3 0 2 0; #P connect 21 0 2 0; #P connect 2 0 15 0; #P connect 2 0 17 0; #P connect 36 1 35 0; #P connect 29 0 36 0; #P connect 22 0 30 0; #P connect 21 0 30 0; #P connect 30 0 32 0; #P connect 32 0 6 0; #P connect 2 1 16 0; #P connect 2 1 37 0; #P connect 6 0 44 0; #P connect 2 3 44 0; #P connect 43 0 2 1; #P connect 39 0 48 0; #P connect 42 0 39 0; #P connect 41 0 47 0; #P connect 47 0 42 0; #P connect 49 0 38 0; #P connect 46 0 38 0; #P connect 40 0 38 0; #P connect 39 0 38 0; #P connect 38 0 45 0; #P connect 47 0 40 0; #P connect 13 0 27 0; #P connect 11 0 27 0; #P connect 9 0 27 0; #P connect 7 0 27 0; #P connect 14 0 27 0; #P connect 12 0 27 0; #P connect 10 0 27 0; #P connect 8 0 27 0; #P pop; #P hidden newobj 21 100 148 9109516 p icubex; #P flonum 183 187 35 12 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 21 186 91 9109516 f0.smooth 0.08; #P hidden newex 21 158 34 9109516 abs; #P hidden newex 21 129 35 9109516 - 512; #P comment 427 392 69 9109516 Start audio; #P comment 122 394 30 9109516 Max; #P comment 76 394 29 9109516 Min; #P comment 11 44 41 9109516 Reset; #P user multiSlider 27 428 726 181 110. 880. 1 3433 15 0 0 2 0 0 0; #M frgb 0 62 248; #M brgb 255 255 255; #M rgb2 127 127 127; #M rgb3 0 0 0; #M rgb4 37 52 91; #M rgb5 74 105 182; #M rgb6 112 158 18; #M rgb7 149 211 110; #M rgb8 187 9 201; #M rgb9 224 62 37; #M rgb10 7 114 128; #P user gain~ 428 213 24 100 158 0 1.071519 7.94321 10.; #P hidden newex 182 371 68 9109516 cycle~ 440; #P user ezdac~ 428 351 472 384 0; #P number 120 368 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P number 76 368 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 27 401 121 9109516 zmap 0 511 110 880; #P user uslider 182 215 214 127 880 1 110 12; #P user uslider 120 216 18 128 512 1 0 0; #P user uslider 76 217 18 128 512 1 0 0; #P user uslider 21 217 18 128 512 1 0 0; #P comment 231 187 153 9109516 Set smoothing value [0 ..1]; #P comment 57 44 45 9109516 On/Off; #P window setfont "Sans Serif" 9.; #P window linecount 6; #P comment 602 82 155 9109513 To run this patch you must install the iCube and f0.smooth objects in your externals folder. Download the iCube object from www.icubex.com and the f0 objects from www.fredrikolofsson.com.; #P window setfont "Sans Serif" 12.; #P window linecount 1; #P comment 160 394 257 9109516 set Min and Max to zoom in on range of signal; #P comment 457 215 70 9109516 Set volume; #P window setfont "Sans Serif" 14.; #P comment 598 52 160 9109518 BioWave test patch v1.1; #P window setfont "Sans Serif" 12.; #P comment 279 613 130 9109516 EEG/EOG/EMG data; #P window linecount 2; #P comment 303 71 146 9109516 Select the COM port that's used for the Wi-microDig; #P window linecount 1; #P comment 17 369 44 9109516 Signal; #P hidden connect 29 0 28 0; #P hidden connect 28 0 24 0; #P hidden connect 24 0 25 0; #P hidden connect 25 0 26 0; #P hidden connect 26 0 9 0; #P hidden connect 9 0 13 0; #P hidden connect 13 0 19 0; #P hidden connect 14 0 13 1; #P hidden connect 31 0 30 0; #P hidden connect 30 0 28 1; #P hidden connect 10 0 14 0; #P hidden connect 15 0 13 2; #P hidden connect 29 0 31 0; #P hidden connect 27 0 26 1; #P hidden connect 33 0 32 0; #P hidden connect 32 0 11 0; #P hidden connect 11 0 15 0; #P hidden connect 33 0 36 0; #P hidden connect 50 0 28 3; #P hidden connect 36 0 28 3; #P hidden connect 13 0 12 0; #P hidden connect 12 0 17 0; #P hidden connect 33 0 34 0; #P hidden connect 34 0 27 0; #P hidden connect 48 0 37 0; #P hidden connect 48 1 38 0; #P hidden connect 48 2 39 0; #P hidden connect 43 0 48 0; #P hidden connect 48 3 40 0; #P hidden connect 48 4 41 0; #P hidden connect 37 0 49 0; #P hidden connect 42 0 49 0; #P hidden connect 47 0 49 0; #P hidden connect 46 0 49 0; #P hidden connect 45 0 49 0; #P hidden connect 44 0 49 0; #P hidden connect 41 0 49 0; #P hidden connect 40 0 49 0; #P hidden connect 39 0 49 0; #P hidden connect 38 0 49 0; #P hidden connect 48 5 42 0; #P hidden connect 33 0 35 0; #P hidden connect 17 0 18 0; #P hidden connect 35 0 18 0; #P hidden connect 18 0 16 0; #P hidden connect 48 6 44 0; #P hidden connect 48 7 45 0; #P hidden connect 48 8 46 0; #P hidden connect 48 9 47 0; #P pop;