max v2; #N vpatcher 261 66 845 739; #P origin 0 27; #P window setfont "Sans Serif" 14.; #P flonum 140 447 80 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 140 418 40 196622 mtof; #P flonum 140 390 73 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 140 359 52 196622 / 150.; #P user gain~ 47 618 24 100 158 0 1.071519 7.94321 10.; #P user ezdac~ 49 774 93 807 0; #P message 47 360 58 196622 noteon; #P newex 284 459 72 196622 loadbang; #P message 272 518 21 196622 0.; #P message 225 518 21 196622 3.; #P message 161 516 40 196622 0.72; #P message 106 518 40 196622 1.41; #P message 59 518 40 196622 0.81; #P newex 47 579 96 196622 vibraphone~; #P flonum 140 317 102 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 37 283 113 196622 unpack set 1.; #P message 140 107 17 196622 0; #P number 37 183 60 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #N counter 0 1 554; #X flags 0 0; #P newobj 37 144 123 196622 counter 0 1 554; #P toggle 37 34 15 0; #P newex 37 85 82 196622 metro 100; #P message 37 213 55 196622 line \$1; #P newex 37 246 143 196622 text DJIA_close.txt; #P comment 223 1 339 196622 Take the daily closing value of the Dow Jones Industrial Average and play those vibes!; #P comment 160 107 145 196622 reset counter to 0; #P comment 163 136 311 196622 counter always counts up \, loops around once it gets to 554 (end of text file); #P comment 155 583 249 196622 vibraphone~ is part of Percolate; #P comment 305 521 151 196622 set parameters for vibraphone~; #P comment 184 420 234 196622 convert from log to linear scale; #P comment 142 637 326 196622 Next \, we could take other variables (such as trade volume) and connect them to other parameters of the physical model. Or do data for different stock indices at the same time...; #P connect 10 0 9 0; #P connect 9 0 11 0; #P connect 11 0 12 0; #P connect 12 0 8 0; #P connect 8 0 7 0; #P connect 7 0 14 0; #P connect 15 0 23 0; #P connect 17 0 16 0; #P connect 23 0 16 0; #P connect 16 0 25 0; #P connect 25 0 24 0; #P connect 22 0 17 0; #P connect 18 0 16 1; #P connect 19 0 16 2; #P connect 25 0 24 1; #P connect 13 0 11 2; #P connect 20 0 16 3; #P connect 22 0 18 0; #P connect 21 0 16 4; #P connect 29 0 16 5; #P connect 14 1 15 0; #P connect 15 0 26 0; #P connect 26 0 27 0; #P connect 27 0 28 0; #P connect 28 0 29 0; #P connect 22 0 19 0; #P connect 22 0 20 0; #P connect 22 0 21 0; #P pop;