max v2; #N vpatcher 39 56 733 512; #P comment 375 283 103 1441802 amplitude 0 to 1; #P comment 400 189 98 1441802 amplitude in dB; #P comment 48 174 108 1441802 open a soundfile \, then play it; #P comment 173 188 152 1441802 speed: 1 = regular speed; #P message 325 55 43 196622 open; #P flonum 493 137 129 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 325 82 294 196622 sfinfo~; #P flonum 198 202 51 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 430 246 89 14 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 98 334 15 0; #P newex 140 391 54 196622 dac~; #P newex 334 277 41 196622 line~; #P newex 334 246 91 196622 pack 0. 100; #P number 334 185 66 14 -120 12 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 334 216 148 131137550 expr pow(10.\\\,$f1/20.); #P newex 184 332 27 196622 *~; #P newex 140 332 27 196622 *~; #P comment 45 312 100 196622 Audio On/Off; #P toggle 51 203 15 0; #P message 113 202 43 196622 open; #N sfplay~ 2 40320 0 ; #P newobj 51 238 157 196622 sfplay~ 2; #P comment 323 142 170 1441802 get duration of a soundfile; #P connect 3 0 1 0; #P fasten 2 0 1 0 118 230 56 230; #P fasten 1 0 5 0 56 274 145 274; #P connect 12 0 11 0; #P connect 5 0 11 0; #P fasten 10 0 5 1 339 305 162 305; #P fasten 1 1 6 0 129 267 189 267; #P connect 6 0 11 1; #P connect 14 0 1 1; #P fasten 10 0 6 1 339 305 206 305; #P connect 17 0 15 0; #P connect 8 0 7 0; #P connect 7 0 9 0; #P connect 9 0 10 0; #P fasten 7 0 13 0 339 241 435 241; #P connect 15 3 16 0; #P pop;