max v2; #N vpatcher 74 33 835 681; #P origin 396 6; #P window setfont "Sans Serif" 12.; #P comment 8 377 43 9109516 Signal; #P hidden newex 90 113 35 9109516 - 512; #P window setfont "Sans Serif" 9.; #P hidden message 428 171 18 9109513 70; #P hidden message 183 143 21 9109513 0.1; #P hidden newex 120 142 45 9109513 loadbang; #P hidden message 120 172 23 9109513 511; #P window setfont "Sans Serif" 12.; #P comment 236 116 181 9109516 Select MIDI port BlueMIDI NT: 2; #P hidden message 91 11 15 9109516 0; #P newex 183 114 49 9109516 midiout; #P newex 183 53 42 9109516 midiin; #P toggle 67 53 15 0; #P button 21 53 15 0; #N vpatcher 66 102 774 670; #P origin -34 0; #P outlet 284 514 15 0; #P outlet 364 467 15 0; #P inlet 366 334 15 0; #P window setfont "Sans Serif" 12.; #P window linecount 1; #P newex 280 75 62 9109516 select 1 0; #P window linecount 0; #P message 264 185 33 9109516 2 off; #P message 229 129 33 9109516 1 off; #P newex 213 76 62 9109516 select 1 0; #P newex 283 245 47 9109516 delay 5; #P window setfont "Sans Serif" 9.; #P window linecount 5; #P comment 452 159 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 283 220 15 0; #P inlet 280 51 15 0; #P inlet 213 52 15 0; #P window setfont "Sans Serif" 12.; #P window linecount 0; #P newex 17 360 48 9109516 s icube; #P newex 244 362 43 9109516 r icube; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 408 334 126 9109513 set sample interval to 20 ms; #P comment 409 305 126 9109513 set sample interval to 4 ms; #P window setfont "Sans Serif" 12.; #P message 283 303 67 9109516 0 interval 4; #P message 243 160 206 9109516 2 connect 2 2 res 1 2 max 1023 2 on; #P window linecount 0; #P message 213 104 209 9109516 1 connect 1 1 res 1 1 max 1023 1 on; #P user uslider 211 396 18 128 1023 1 0 0; #P button 129 80 15 0; #P inlet 129 52 15 0; #P outlet 244 513 15 0; #P number 284 441 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P number 244 441 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P message 80 295 72 9109516 2 max 1023; #P window linecount 0; #P message 27 157 72 9109516 1 max 1023; #P message 65 270 46 9109516 2 res 1; #P message 15 132 46 9109516 1 res 1; #P message 95 319 32 9109516 2 on; #P message 41 180 32 9109516 1 on; #P window linecount 1; #P message 51 246 71 9109516 2 connect 2; #P window linecount 0; #P message 0 109 71 9109516 1 connect 1; #P message 283 275 117 9109516 240 125 0 3 0 2 247; #P message 284 330 74 9109516 0 interval 20; #P message 157 136 46 9109516 0 reset; #P message 129 105 74 9109516 0 hostmode; #P newex 244 398 132 9109516 iCube 2; #P window setfont "Sans Serif" 9.; #P comment 408 278 126 9109513 set sample interval to 2 ms; #P comment 428 102 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 8 0 27 0; #P connect 10 0 27 0; #P connect 12 0 27 0; #P connect 14 0 27 0; #P connect 7 0 27 0; #P connect 9 0 27 0; #P connect 11 0 27 0; #P connect 13 0 27 0; #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 3 0 2 0; #P connect 5 0 2 0; #P connect 4 0 2 0; #P connect 23 0 2 0; #P connect 26 0 2 0; #P connect 34 0 2 0; #P connect 35 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 39 0; #P connect 2 3 38 0; #P connect 6 0 38 0; #P connect 37 0 2 1; #P pop; #P hidden newobj 21 84 148 9109516 p icubex; #P flonum 183 171 35 12 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 21 170 91 9109516 f0.smooth 0.08; #P hidden newex 21 142 34 9109516 abs; #P hidden newex 21 113 35 9109516 - 512; #P comment 427 376 69 9109516 Start audio; #P comment 122 378 30 9109516 Max; #P comment 76 378 29 9109516 Min; #P comment 11 28 41 9109516 Reset; #P user multiSlider 23 412 696 178 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 197 24 100 158 0 1.071519 7.94321 10.; #P hidden newex 182 355 68 9109516 cycle~ 440; #P user ezdac~ 428 335 472 368 0; #P number 120 352 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P number 76 352 35 12 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P hidden newex 27 385 121 9109516 zmap 0 511 110 880; #P user uslider 182 199 214 127 880 1 110 12; #P user uslider 120 200 18 128 512 1 0 0; #P user uslider 76 201 18 128 512 1 0 0; #P user uslider 21 201 18 128 512 1 0 0; #P comment 231 171 153 9109516 Set smoothing value [0 ..1]; #P comment 61 28 43 9109516 On/Off; #P comment 231 55 181 9109516 Select MIDI port BlueMIDI NT: 1; #P window setfont "Sans Serif" 9.; #P window linecount 8; #P comment 602 66 115 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 linecount 2; #P comment 182 81 311 9109513 make sure to have the virtual BlueMIDI ports installed and BlueMIDI.exe running to be able to communicate with the Wi-microDig; #P window setfont "Sans Serif" 12.; #P window linecount 1; #P comment 160 378 257 9109516 set Min and Max to zoom in on range of signal; #P comment 457 199 70 9109516 Set volume; #P window setfont "Sans Serif" 14.; #P comment 588 37 132 9109518 BioWave test patch; #P window setfont "Sans Serif" 12.; #P comment 190 601 119 9109516 EEG/EMG/EOG data; #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 13 0 19 0; #P hidden connect 9 0 13 0; #P hidden connect 14 0 13 1; #P hidden connect 33 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 28 1 39 0; #P hidden connect 29 0 33 0; #P hidden connect 27 0 26 1; #P hidden connect 36 0 35 0; #P hidden connect 35 0 11 0; #P hidden connect 11 0 15 0; #P hidden connect 31 0 28 3; #P hidden connect 13 0 12 0; #P hidden connect 12 0 17 0; #P hidden connect 28 2 32 0; #P hidden connect 36 0 37 0; #P hidden connect 37 0 27 0; #P hidden connect 36 0 38 0; #P hidden connect 38 0 18 0; #P hidden connect 17 0 18 0; #P hidden connect 18 0 16 0; #P pop;