diff options
author | Tim Blechmann <timblech@users.sourceforge.net> | 2004-01-28 11:09:13 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:11:54 +0200 |
commit | ce8d118561bd86df80eae140f2e0a64db55998e3 (patch) | |
tree | 7cd2ff26894e312d7000df8abfce9d6e323bdc6e /tbext | |
parent | 4ab9c44294867638df5c092bb2a9de1923a63dd2 (diff) |
*** empty log message ***
svn path=/trunk/externals/tb/; revision=1298
Diffstat (limited to 'tbext')
-rw-r--r-- | tbext/bufline~.pd | 315 | ||||
-rwxr-xr-x | tbext/config-pd-linux.txt | 9 | ||||
-rwxr-xr-x | tbext/make-files.txt | 2 | ||||
-rw-r--r-- | tbext/makefile.pd-linux | 4 | ||||
-rw-r--r-- | tbext/source/fftbuf.cpp | 38 | ||||
-rw-r--r-- | tbext/source/main.cpp | 5 | ||||
-rw-r--r-- | tbext/source/tbfft2.cpp | 2 |
7 files changed, 328 insertions, 47 deletions
diff --git a/tbext/bufline~.pd b/tbext/bufline~.pd index 7fd7d59..66d35c0 100644 --- a/tbext/bufline~.pd +++ b/tbext/bufline~.pd @@ -1,35 +1,294 @@ #N canvas 221 141 714 505 10; #N canvas 0 0 450 300 graph1 0; -#X array from1 64 float 1; +#X array from1 1024 float 1; #A 0 0 0 0 0 0 0 0.0285714 0.0357143 0.0428571 0.0714286 0.0857143 0.114286 0.128571 0.142857 0.142857 0.157143 0.171429 0.185714 0.2 0.214286 0.242857 0.242857 0.242857 0.242857 0.242857 0.214286 0.2 0.15 0.0714286 0.0714286 1.86265e-09 -0.0142857 -0.0285714 0 0 0 0 0 0 0 0 -0.0142857 -0.0285714 -0.0428571 -0.0571429 -0.0571429 -0.0571429 -0.0571429 -0.0571429 -0.0571429 -0.0571429 0.00714286 0.0714286 0.142857 -0.242857 0.314286 0.457143 0 0 0 0 0 0 0; -#X coords 0 1 63 -1 200 140 1; +0.242857 0.314286 0.457143 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.0142857 -0.0190476 +-0.0238095 -0.0285714 -0.0333333 -0.0380952 -0.0428571 -0.0476191 -0.052381 +-0.0571429 -0.0619048 -0.0666667 -0.0714286 -0.0761905 -0.0809524 -0.0857141 +-0.0884919 -0.0912697 -0.0940475 -0.0968252 -0.099603 -0.102381 -0.105159 +-0.107936 -0.110714 -0.113492 -0.11627 -0.119047 -0.121825 -0.124603 +-0.127381 -0.130159 -0.132936 -0.135714 -0.138492 -0.14127 -0.144048 +-0.146825 -0.149603 -0.152381 -0.155159 -0.157936 -0.160714 -0.163492 +-0.16627 -0.169048 -0.171825 -0.174603 -0.177381 -0.180159 -0.182937 +-0.185714 -0.189796 -0.193877 -0.197959 -0.202041 -0.206122 -0.210204 +-0.214286 -0.218367 -0.222449 -0.226531 -0.230612 -0.234694 -0.238775 +-0.242857 -0.246939 -0.25102 -0.255102 -0.259184 -0.263265 -0.267347 +-0.271429 -0.27551 -0.279592 -0.283673 -0.287755 -0.291837 -0.295918 +-0.3 -0.304082 -0.308163 -0.312245 -0.316327 -0.320408 -0.32449 -0.328571 +-0.330494 -0.332417 -0.33434 -0.336263 -0.338186 -0.34011 -0.342033 +-0.343956 -0.345879 -0.347802 -0.349725 -0.351648 -0.353571 -0.355494 +-0.357417 -0.35934 -0.361263 -0.363187 -0.36511 -0.367033 -0.368956 +-0.370879 -0.372802 -0.374725 -0.376648 -0.378571 -0.380494 -0.382417 +-0.38434 -0.386264 -0.388187 -0.39011 -0.392033 -0.393956 -0.395879 +-0.397802 -0.399725 -0.401648 -0.403571 -0.405494 -0.407418 -0.409341 +-0.411264 -0.413187 -0.41511 -0.417033 -0.418956 -0.420879 -0.422802 +-0.424725 -0.426648 -0.428572 -0.432056 -0.435541 -0.439025 -0.442509 +-0.445993 -0.449478 -0.452962 -0.456446 -0.459931 -0.463415 -0.466899 +-0.470384 -0.473868 -0.477352 -0.480837 -0.484321 -0.487805 -0.491289 +-0.494774 -0.498258 -0.501742 -0.505227 -0.508711 -0.512195 -0.51568 +-0.519164 -0.522648 -0.526133 -0.529617 -0.533101 -0.536586 -0.54007 +-0.543554 -0.547038 -0.550523 -0.554007 -0.557491 -0.560976 -0.56446 +-0.567944 -0.571429 -0.573669 -0.57591 -0.578151 -0.580392 -0.582633 +-0.584874 -0.587115 -0.589356 -0.591597 -0.593838 -0.596078 -0.598319 +-0.60056 -0.602801 -0.605042 -0.607283 -0.609524 -0.611765 -0.614006 +-0.616247 -0.618487 -0.620728 -0.622969 -0.62521 -0.627451 -0.629692 +-0.631933 -0.634174 -0.636415 -0.638655 -0.640896 -0.643137 -0.645378 +-0.647619 -0.64986 -0.652101 -0.654342 -0.656583 -0.658824 -0.661064 +-0.663305 -0.665546 -0.667787 -0.670028 -0.672269 -0.67451 -0.676751 +-0.678992 -0.681233 -0.683473 -0.685714 -0.687143 -0.688571 -0.69 -0.691428 +-0.692857 -0.694286 -0.695714 -0.697143 -0.698571 -0.7 -0.702286 -0.704571 +-0.706857 -0.709143 -0.711429 -0.713714 -0.716 -0.718286 -0.720571 +-0.722857 -0.725143 -0.727429 -0.729714 -0.732 -0.734286 -0.736571 +-0.738857 -0.741143 -0.743429 -0.745714 -0.748 -0.750286 -0.752571 +-0.754857 -0.757143 -0.757143 -0.757143 -0.757143 -0.757143 -0.757143 +-0.757143 -0.758571 -0.76 -0.761428 -0.762857 -0.764286 -0.765714 -0.767143 +-0.768571 -0.77 -0.771429 -0.771429 -0.771429 -0.771429 -0.771429 -0.771429 +-0.774286 -0.777143 -0.78 -0.782857 -0.8 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; +#A 1000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; +#X coords 0 1 1023 -1 200 140 1; #X restore 80 20 graph; -#X obj 607 14 block~ 128; #N canvas 0 0 450 300 graph1 0; -#X array from2 64 float 1; +#X array from2 1024 float 1; #A 0 0 0 0 0 0 0 0 0 0 0.0285714 0.0571429 0.0761905 0.0952381 0.114286 0.12381 0.133333 0.142857 0.2 0.207143 0.228571 0.228571 0.257143 0.257143 0.257143 0.242857 -0.0142857 0 0 0 0 0 0 0 0 0 -0.471429 -0.628572 --0.685714 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; -#X coords 0 1 63 -1 200 140 1; +-0.685714 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 1.86265e-10 0.00428571 0.00857143 0.0128571 +0.0171429 0.0214286 0.0257143 0.03 0.0342857 0.0385714 0.0428572 0.0457143 +0.0485715 0.0514286 0.0542857 0.0571429 0.06 0.0628572 0.0657143 0.0685714 +0.0714286 0.0742857 0.0771429 0.08 0.0828571 0.0857144 0.0884794 0.0912443 +0.0940093 0.0967743 0.0995393 0.102304 0.105069 0.107834 0.110599 0.113364 +0.116129 0.118894 0.121659 0.124424 0.127189 0.129954 0.132719 0.135484 +0.138249 0.141014 0.143779 0.146544 0.149309 0.152074 0.154839 0.157604 +0.160369 0.163134 0.165899 0.168664 0.171428 0.174286 0.177143 0.18 +0.182857 0.185714 0.188571 0.191429 0.194286 0.197143 0.2 0.202857 +0.205714 0.208571 0.211429 0.214286 0.216527 0.218768 0.221008 0.223249 +0.22549 0.227731 0.229972 0.232213 0.234454 0.236695 0.238936 0.241176 +0.243417 0.245658 0.247899 0.25014 0.252381 0.254622 0.256863 0.259104 +0.261345 0.263585 0.265826 0.268067 0.270308 0.272549 0.27479 0.277031 +0.279272 0.281513 0.283754 0.285994 0.288235 0.290476 0.292717 0.294958 +0.297199 0.29944 0.301681 0.303922 0.306162 0.308403 0.310644 0.312885 +0.315126 0.317367 0.319608 0.321849 0.32409 0.326331 0.328571 0.330952 +0.333333 0.335714 0.338095 0.340476 0.342857 0.345238 0.347619 0.35 +0.352381 0.354762 0.357143 0.359523 0.361904 0.364285 0.366666 0.369047 +0.371428 0.373809 0.37619 0.378571 0.380952 0.383333 0.385714 0.388095 +0.390476 0.392857 0.395238 0.397619 0.4 0.402381 0.404762 0.407143 +0.409524 0.411905 0.414286 0.416484 0.418681 0.420879 0.423077 0.425275 +0.427473 0.42967 0.431868 0.434066 0.436264 0.438462 0.440659 0.442857 +0.445055 0.447253 0.449451 0.451648 0.453846 0.456044 0.458242 0.46044 +0.462637 0.464835 0.467033 0.469231 0.471429 0.472 0.472571 0.473143 +0.473714 0.474286 0.474857 0.475429 0.476 0.476571 0.477143 0.477714 +0.478286 0.478857 0.479429 0.48 0.480571 0.481143 0.481714 0.482286 +0.482857 0.483429 0.484 0.484571 0.485143 0.485715 0.486412 0.487108 +0.487805 0.488502 0.489199 0.489896 0.490593 0.49129 0.491987 0.492683 +0.49338 0.494077 0.494774 0.495471 0.496168 0.496865 0.497562 0.498258 +0.498955 0.499652 0.500349 0.501046 0.501743 0.502439 0.503136 0.503833 +0.50453 0.505227 0.505924 0.506621 0.507317 0.508014 0.508711 0.509408 +0.510105 0.510802 0.511498 0.512195 0.512892 0.513589 0.514287 0.515385 +0.516484 0.517583 0.518682 0.519781 0.52088 0.521979 0.523077 0.524176 +0.525275 0.526374 0.527473 0.528572 0.529671 0.53077 0.531868 0.532967 +0.534066 0.535165 0.536264 0.537363 0.538462 0.539561 0.540659 0.541758 +0.542857 0.544 0.545143 0.546286 0.547429 0.548571 0.549714 0.550857 +0.552 0.553143 0.554286 0.555429 0.556571 0.557714 0.558857 0.56 0.561143 +0.562286 0.563429 0.564571 0.565714 0.566857 0.568 0.569143 0.570286 +0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 +0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 +0.571428 0.570476 0.569524 0.568571 0.567619 0.566666 0.565714 0.564762 +0.563809 0.562857 0.561905 0.560952 0.56 0.559048 0.558095 0.557143 +0.555714 0.554286 0.552857 0.551429 0.55 0.548571 0.547143 0.545714 +0.544286 0.542857 0.54 0.537143 0.534286 0.531429 0.528571 0.525714 +0.522857 0.52 0.517143 0.514286 0.511429 0.508571 0.505714 0.502857 +0.5 0.498701 0.497403 0.496104 0.494805 0.493506 0.492208 0.490909 +0.48961 0.488312 0.487013 0.485714 0.483429 0.481143 0.478857 0.476572 +0.474286 0.472 0.469714 0.467429 0.465143 0.462857 0.460571 0.458286 +0.456 0.453714 0.451429 0.449143 0.446857 0.444571 0.442286 0.44 0.437714 +0.435429 0.433143 0.430857 0.428571 0.425893 0.423214 0.420536 0.417857 +0.415179 0.4125 0.409821 0.407143 0.404464 0.401786 0.399107 0.396429 +0.39375 0.391071 0.388393 0.385714 0.382143 0.378571 0.375 0.371428 +0.367857 0.364286 0.360714 0.357143 0.353571 0.35 0.346428 0.342857 +0.339286 0.335714 0.332143 0.328571 0.325 0.321429 0.317857 0.314286 +0.31 0.305714 0.301429 0.297143 0.292857 0.288571 0.284286 0.28 0.275714 +0.271429 0.270046 0.268664 0.267281 0.265899 0.264516 0.263134 0.261751 +0.260369 0.258986 0.257604 0.256221 0.254839 0.253456 0.252074 0.250691 +0.249309 0.247926 0.246544 0.245161 0.243779 0.242396 0.241014 0.239631 +0.238249 0.236866 0.235484 0.234101 0.232719 0.231336 0.229954 0.228572 +0.225714 0.222857 0.22 0.217143 0.214286 0.211429 0.208571 0.205714 +0.202857 0.2 0.197143 0.194286 0.191429 0.188571 0.185714 0.177143 +0.168571 0.16 0.151429 0.142857 0.141558 0.14026 0.138961 0.137662 +0.136364 0.135065 0.133766 0.132468 0.131169 0.12987 0.128571 0.128571 +0.128571 0.128571 0.128571 0.128571 0.125714 0.122857 0.12 0.117143 +0.1 0.1 0.1 0.1 0.1 0.1 0.0914286 0.0828571 0.0742857 0.0657143 0.0571428 +0.0542857 0.0514286 0.0485714 0.0457143 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0257143 0.0228571 0.02 0.0171429 0.0142857 +0.0114286 0.00857142 0.00571428 0.00285714 -5.58794e-09 -5.58794e-09 +-5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 +-5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 -5.58794e-09 +-5.58794e-09 -5.58794e-09 0.563636 0.562338 0.561039 0.55974 0.558442 +0.557143 0.555429 0.553714 0.552 0.550286 0.548571 0.546857 0.545143 +0.543429 0.541714 0.54 0.538286 0.536571 0.534857 0.533143 0.531429 +0.529714 0.528 0.526286 0.524571 0.522857 0.521143 0.519429 0.517714 +0.516 0.514285 0.512857 0.511428 0.51 0.508571 0.507143 0.505714 0.504286 +0.502857 0.501429 0.5 0.497222 0.494445 0.491667 0.488889 0.486111 +0.483334 0.480556 0.477778 0.475 0.472222 0.469445 0.466667 0.463889 +0.461111 0.458333 0.455556 0.452778 0.45 0.447222 0.444445 0.441667 +0.438889 0.436111 0.433333 0.430556 0.427778 0.425 0.422222 0.419444 +0.416667 0.413889 0.411111 0.408333 0.405556 0.402778 0.4 0.398352 +0.396704 0.395055 0.393407 0.391759 0.39011 0.388462 0.386813 0.385165 +0.383517 0.381868 0.38022 0.378572 0.376923 0.375275 0.373626 0.371978 +0.37033 0.368681 0.367033 0.365385 0.363736 0.362088 0.36044 0.358791 +0.357143 0.354286 0.351429 0.348571 0.345714 0.342857 0.34 0.337143 +0.334286 0.331429 0.328571 0.325714 0.322857 0.32 0.317143 0.314286 +0.308571 0.302857 0.297143 0.291429 0.285714 0.282857 0.28 0.277143 +0.274286 0.271429 0.268571 0.265714 0.262857 0.26 0.242857 0.240476 +0.238095 0.235714 0.233333 0.230952 0.214286 0.214286 0.214286 0.214286 +0.214286 0.214286 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0; +#A 1000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; +#X coords 0 1 1023 -1 200 140 1; #X restore 335 23 graph; #N canvas 0 0 450 300 graph1 0; -#X array to 64 float 1; -#A 0 0 0 0 0 0 0 0.00682475 0.00853045 0.0102368 0.0388103 0.0639679 -0.0852809 0.10321 0.121109 0.128353 0.139015 0.149682 0.196567 0.205455 -0.225179 0.232002 0.253755 0.253755 0.253755 0.242854 0.0403107 0.047774 -0.0358276 0.0170609 0.0170609 4.44924e-10 -0.00341237 -0.00682475 0 -0 -0.35882 -0.478471 -0.521873 0 0 0 -0.00341233 -0.00682466 -0.0102368 --0.0136493 -0.0136493 -0.0136493 -0.0136493 -0.0136493 -0.0136493 -0.0136493 -0.00170617 0.0170609 0.0341218 0.0580107 0.0750683 0.109195 0 0 0 0 -0 0 0; -#X coords 0 1 63 -1 200 140 1; +#X array to 1024 float 1; +#A 0 0 0 0 0 0 0 1.39698e-08 -1.33878e-09 -1.57743e-08 0.0285713 0.0571426 +0.0761908 0.095238 0.114286 0.12381 0.133332 0.142856 0.2 0.207142 +0.228571 0.228571 0.257142 0.257142 0.257142 0.242857 -0.0142856 -9.49949e-08 +3.05008e-08 -2.67755e-09 -2.67755e-09 -1.8735e-15 -6.98492e-09 -1.39698e-08 +0 0 -0.471429 -0.628572 -0.685714 0 0 0 -6.98492e-09 -1.39698e-08 1.57743e-08 +-4.42378e-08 -4.42378e-08 -4.42378e-08 -4.42378e-08 -4.42378e-08 -4.42378e-08 +-4.42378e-08 4.64206e-09 -2.67755e-09 -5.51809e-08 -2.07219e-07 2.25846e-07 +3.8743e-07 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9.28412e-09 -1.87138e-08 -1.97324e-08 +-2.52039e-08 -1.04774e-08 -3.05008e-08 1.18162e-08 -2.88128e-08 3.52156e-08 +-4.79631e-08 5.58794e-08 -1.38534e-08 0.00428565 0.00857141 0.0128571 +0.0171429 0.0214285 0.0257142 0.03 0.0342858 0.0385715 0.0428572 0.0457143 +0.0485715 0.0514285 0.0542857 0.0571429 0.0600001 0.0628572 0.0657144 +0.0685714 0.0714285 0.0742857 0.0771428 0.08 0.0828572 0.0857145 0.0884794 +0.0912442 0.0940094 0.0967743 0.0995392 0.102304 0.105069 0.107834 +0.110599 0.113364 0.116129 0.118894 0.121659 0.124424 0.127189 0.129954 +0.132719 0.135484 0.138249 0.141014 0.143779 0.146544 0.149309 0.152074 +0.154839 0.157604 0.160369 0.163134 0.165898 0.168663 0.171428 0.174285 +0.177143 0.18 0.182857 0.185714 0.188571 0.191429 0.194286 0.197143 +0.2 0.202857 0.205714 0.208571 0.211429 0.214286 0.216527 0.218767 +0.221008 0.22325 0.22549 0.227731 0.229972 0.232213 0.234454 0.236695 +0.238935 0.241176 0.243417 0.245658 0.247899 0.25014 0.252381 0.254622 +0.256863 0.259104 0.261344 0.263586 0.265826 0.268068 0.270308 0.272549 +0.27479 0.277031 0.279272 0.281512 0.283754 0.285994 0.288236 0.290476 +0.292717 0.294958 0.297199 0.299439 0.301681 0.303921 0.306163 0.308403 +0.310644 0.312885 0.315126 0.317367 0.319608 0.321849 0.32409 0.32633 +0.328571 0.330952 0.333333 0.335714 0.338095 0.340476 0.342856 0.345238 +0.347618 0.35 0.352381 0.354761 0.357143 0.359523 0.361905 0.364286 +0.366666 0.369048 0.371428 0.373809 0.376191 0.378571 0.380952 0.383333 +0.385714 0.388095 0.390476 0.392857 0.395238 0.397619 0.4 0.40238 0.404762 +0.407142 0.409524 0.411905 0.414285 0.416484 0.418681 0.420879 0.423077 +0.425274 0.427472 0.429671 0.431868 0.434066 0.436263 0.438461 0.440659 +0.442857 0.445055 0.447253 0.44945 0.451648 0.453846 0.456044 0.458242 +0.46044 0.462637 0.464835 0.467033 0.469231 0.471429 0.472 0.472572 +0.473143 0.473715 0.474285 0.474858 0.475429 0.476 0.476571 0.477143 +0.477714 0.478286 0.478857 0.479429 0.48 0.480572 0.481143 0.481715 +0.482286 0.482857 0.483428 0.484001 0.484572 0.485143 0.485714 0.486412 +0.487109 0.487806 0.488502 0.489199 0.489896 0.490593 0.49129 0.491986 +0.492683 0.49338 0.494078 0.494774 0.495471 0.496167 0.496864 0.497562 +0.498259 0.498955 0.499652 0.500349 0.501046 0.501742 0.50244 0.503137 +0.503833 0.50453 0.505227 0.505924 0.506621 0.507317 0.508015 0.508712 +0.509407 0.510105 0.510801 0.511498 0.512196 0.512892 0.513588 0.514287 +0.515385 0.516484 0.517584 0.518682 0.519781 0.52088 0.521979 0.523078 +0.524176 0.525276 0.526374 0.527473 0.528571 0.529671 0.530769 0.531869 +0.532967 0.534066 0.535165 0.536263 0.537363 0.538462 0.539561 0.54066 +0.541759 0.542858 0.544 0.545143 0.546286 0.547428 0.548572 0.549715 +0.550857 0.552 0.553143 0.554286 0.555429 0.556571 0.557715 0.558857 +0.56 0.561143 0.562286 0.563429 0.564571 0.565715 0.566857 0.568 0.569144 +0.570285 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 +0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 0.571429 +0.571429 0.571428 0.570476 0.569524 0.568571 0.567619 0.566667 0.565714 +0.564761 0.563809 0.562857 0.561905 0.560952 0.56 0.559047 0.558095 +0.557143 0.555714 0.554286 0.552857 0.551429 0.55 0.548572 0.547143 +0.545715 0.544285 0.542857 0.54 0.537143 0.534286 0.531428 0.528572 +0.525714 0.522857 0.519999 0.517143 0.514286 0.511428 0.508572 0.505714 +0.502858 0.5 0.498701 0.497403 0.496104 0.494805 0.493507 0.492207 +0.490908 0.489611 0.488311 0.487013 0.485715 0.483429 0.481143 0.478857 +0.476571 0.474286 0.472 0.469715 0.467429 0.465142 0.462857 0.460571 +0.458286 0.456001 0.453714 0.451428 0.449143 0.446857 0.444572 0.442286 +0.44 0.437714 0.435428 0.433143 0.430858 0.428572 0.425893 0.423214 +0.420535 0.417857 0.415179 0.4125 0.409822 0.407143 0.404464 0.401785 +0.399107 0.396429 0.39375 0.391071 0.388392 0.385715 0.382142 0.378571 +0.375 0.371428 0.367857 0.364285 0.360714 0.357143 0.353572 0.35 0.346429 +0.342857 0.339286 0.335714 0.332143 0.328571 0.325 0.321428 0.317857 +0.314286 0.31 0.305714 0.301429 0.297143 0.292857 0.288572 0.284286 +0.28 0.275715 0.271428 0.270046 0.268664 0.267281 0.265899 0.264516 +0.263133 0.261751 0.260369 0.258986 0.257604 0.256221 0.254838 0.253456 +0.252074 0.250691 0.249308 0.247926 0.246544 0.245161 0.243779 0.242396 +0.241013 0.239632 0.238249 0.236866 0.235484 0.234101 0.232719 0.231337 +0.229954 0.228571 0.225714 0.222857 0.22 0.217143 0.214286 0.211429 +0.208572 0.205714 0.202857 0.2 0.197143 0.194286 0.191428 0.188571 +0.185714 0.177143 0.168571 0.16 0.151428 0.142857 0.141558 0.14026 +0.138961 0.137662 0.136364 0.135065 0.133766 0.132467 0.131169 0.12987 +0.128571 0.128571 0.128571 0.128571 0.128571 0.128571 0.125714 0.122857 +0.12 0.117143 0.1 0.1 0.1 0.1 0.1 0.1 0.0914285 0.0828572 0.0742856 +0.0657142 0.0571428 0.0542856 0.0514286 0.0485714 0.0457143 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 +0.0285714 0.0285714 0.0285714 0.0285714 0.0285714 0.0257143 0.0228571 +0.02 0.0171428 0.0142857 0.0114286 0.00857142 0.00571428 0.00285713 +-5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 +-5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 +-5.58793e-09 -5.58793e-09 -5.58793e-09 -5.58793e-09 0.563637 0.562338 +0.561039 0.559741 0.558441 0.557143 0.555429 0.553714 0.552 0.550286 +0.548572 0.546857 0.545143 0.543428 0.541715 0.54 0.538286 0.536572 +0.534857 0.533143 0.531428 0.529714 0.528001 0.526286 0.524572 0.522857 +0.521143 0.519428 0.517714 0.516 0.514285 0.512857 0.511428 0.51 0.508572 +0.507142 0.505714 0.504286 0.502858 0.501428 0.5 0.497223 0.494444 +0.491667 0.488889 0.486112 0.483333 0.480556 0.477778 0.475001 0.472222 +0.469445 0.466667 0.463889 0.461111 0.458334 0.455555 0.452778 0.45 +0.447223 0.444444 0.441667 0.438889 0.436112 0.433333 0.430556 0.427778 +0.425001 0.422222 0.419445 0.416667 0.413888 0.411111 0.408333 0.405556 +0.402777 0.4 0.398352 0.396703 0.395056 0.393407 0.391759 0.39011 0.388462 +0.386814 0.385165 0.383517 0.381868 0.38022 0.378572 0.376923 0.375275 +0.373626 0.371978 0.370329 0.368682 0.367033 0.365385 0.363736 0.362088 +0.36044 0.358792 0.357143 0.354286 0.351428 0.348572 0.345714 0.342857 +0.34 0.337143 0.334286 0.331429 0.328571 0.325714 0.322857 0.32 0.317143 +0.314286 0.308571 0.302857 0.297143 0.291429 0.285714 0.282857 0.28 +0.277143 0.274286 0.271428 0.268571 0.265714 0.262857 0.26 0.242857 +0.240476 0.238095 0.235715 0.233333 0.230953 0.214286 0.214286 0.214286 +0.214286 0.214286 0.214286 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 +0 0 0 0 0 0 0 0 0; +#A 1000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; +#X coords 0 1 1023 -1 200 140 1; #X restore 456 301 graph; #X obj 144 412 tabwrite~ to; #X obj 208 373 metro 50; @@ -42,15 +301,23 @@ #X obj 63 385 print~; #X obj 26 332 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; -#X obj 88 321 bufline~ 128; #X msg 119 239 line 400; +#X obj 88 321 bufline~ 1024; +#X obj 607 14 block~ 2048; +#X obj 341 332 delay; +#X obj 341 355 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 338 287 5000; +#X connect 4 0 3 0; #X connect 5 0 4 0; -#X connect 6 0 5 0; +#X connect 6 0 13 0; +#X connect 6 0 17 0; #X connect 7 0 13 0; #X connect 8 0 13 0; #X connect 9 0 13 0; -#X connect 10 0 13 0; -#X connect 12 0 11 0; -#X connect 13 0 11 0; -#X connect 13 0 4 0; -#X connect 14 0 13 0; +#X connect 11 0 10 0; +#X connect 12 0 13 0; +#X connect 13 0 10 0; +#X connect 13 0 3 0; +#X connect 15 0 16 0; +#X connect 17 0 15 0; diff --git a/tbext/config-pd-linux.txt b/tbext/config-pd-linux.txt index 7c9fbde..b1479f8 100755 --- a/tbext/config-pd-linux.txt +++ b/tbext/config-pd-linux.txt @@ -1,7 +1,7 @@ # config file for tbext, adapted from Thomas Grill's xsample makefile # your c++ compiler (if not g++) -# CXX=icc + CXX=icc # where does the PD installation reside? @@ -10,7 +10,8 @@ PD=/usr/lib/pd # where are the PD header files? # leave it blank if it is a system directory (like /usr/local/include), # since gcc 3.2 complains about it -PDINC=/home/tim/pd/pd-0.37-0/src +PDINC=/home/tim/pd/pd/src +#PDINC=/home/tim/pd/devel_0_36/pd/src # where do the flext libraries reside? FLEXTPATH=/usr/lib/flext @@ -28,9 +29,9 @@ HELPDIR=${PD}/doc/5.reference # additional compiler flags # (check whether they fit to your system!) -#UFLAGS=-xW -tpp7 -ip -ipo_obj -g # icc +UFLAGS=-g -xW -tpp7 -ip -ipo_obj # icc # UFLAGS=-mcpu=pentium4 -mmmx -msse2 -msse -mfpmath=sse # gcc 3.2 # define to link against shared flext library (flext version >= 0.5.0) -#FLEXT_SHARED=1 +FLEXT_SHARED=1 diff --git a/tbext/make-files.txt b/tbext/make-files.txt index b3a83b5..559a851 100755 --- a/tbext/make-files.txt +++ b/tbext/make-files.txt @@ -3,7 +3,7 @@ SRCDIR = source SRCS= \ main.cpp tbroute.cpp tbsig~.cpp tbsroute~.cpp \ tbpow~.cpp tbfft1.cpp tbfft2.cpp fftbuf.cpp fftgrsort.cpp \ - fftgrshuf.cpp fftgrrev.cpp # tbg7xx.cpp tbstrg.cpp + fftgrshuf.cpp fftgrrev.cpp #HDRS= \ diff --git a/tbext/makefile.pd-linux b/tbext/makefile.pd-linux index 56fbc17..7948a19 100644 --- a/tbext/makefile.pd-linux +++ b/tbext/makefile.pd-linux @@ -17,11 +17,11 @@ FLEXTLIB=$(FLEXTPATH)/flext.a # compiler stuff INCLUDES=$(PDINC) FLAGS=-DFLEXT_SYS=2 -CFLAGS=${UFLAGS} -O3 -I/home/tim/pd/externals/grill/flext/source -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions -DFLEXT_THREADS +CFLAGS=${UFLAGS} -O3 -I/home/tim/pd/externals/grill/flext/source -funroll-loops -fmove-all-movables -frerun-loop-opt -finline-functions -fno-rtti -fno-exceptions LIBS=m ifdef FLEXT_SHARED -CFLAGS+=-DFLEXT_SHARED +CFLAGS+=-DFLEXT_SHARED -DFLEXT_THREADS LDFLAGS+=-Bdynamic LINKFLEXT=-lflext #-L/usr/lib/flext/libflext.so else diff --git a/tbext/source/fftbuf.cpp b/tbext/source/fftbuf.cpp index eff81e3..13f0b9e 100644 --- a/tbext/source/fftbuf.cpp +++ b/tbext/source/fftbuf.cpp @@ -121,27 +121,36 @@ fftbuf::~fftbuf() void fftbuf::m_signal(int n, t_float *const *in, t_float *const *out) { - outs = out[0]; - - if (counter!=0) + if (check(buf)) { - n=n/2+1; + outs = out[0]; + + if (counter!=0) + { + n=n/2+1; while (--n) data[n] = data[n] - offset[n]; /* for(int i=0;i!=bs;++i) - { + { data[i] = data[i] - offset[i]; - } + } */ - + --counter; + } + + CopySamples(out[0],data,bs); } - - CopySamples(out[0],data,bs); + else + CopySamples(out[0],data,bs); + } +//perform und dsp gleichzeitig?!? + + void fftbuf::perform() { counter=blknumber(); @@ -196,7 +205,7 @@ void fftbuf::set_buf(int argc, t_atom *argv) } template<typename T> -/*inline*/ void fftbuf::clear(T* buf) +inline void fftbuf::clear(T* buf) { if (buf) { @@ -207,6 +216,8 @@ template<typename T> inline bool fftbuf::check(buffer * buf) { + if (buf==NULL) + return false; //code taken from the flext tutorial (buffer 1) by thomas grill if(buf->Update()) @@ -241,7 +252,8 @@ void fftbuf::set_line(int argc, t_atom *argv) inline int fftbuf::blknumber() { - // post("%i %i %i",delay,bs,sr); - // post("computer counter: %i",delay*bs/sr*1000); - return delay*bs/sr*1000; //ms/sample + post("%i %i %i",delay,bs,sr); + post("blknumber: %i",delay*bs/sr); + + return delay*bs/sr; //ms/sample } diff --git a/tbext/source/main.cpp b/tbext/source/main.cpp index dd007df..5a3bb14 100644 --- a/tbext/source/main.cpp +++ b/tbext/source/main.cpp @@ -51,10 +51,10 @@ void ttbext_setup() post("TBEXT: by tim blechmann"); post("version "TBEXT_VERSION); post("compiled on "__DATE__); - post(""); + post("contains: tbroute(~), tbsig~, tbpow~, tbfft1~, tbfft2~, bufline~, fftgrrev~"); + post(" fftgrsort~, fftgrshuf~"); FLEXT_SETUP(tbroute); - //FLEXT_SETUP(tbstrg); FLEXT_DSP_SETUP(tbsroute); // FLEXT_DSP_SETUP(tbssel); FLEXT_DSP_SETUP(tbsig); @@ -66,6 +66,7 @@ void ttbext_setup() FLEXT_DSP_SETUP(fftgrsort); FLEXT_DSP_SETUP(fftgrshuf); FLEXT_DSP_SETUP(fftgrrev); + FLEXT_DSP_SETUP(spigot_tilde); } FLEXT_LIB_SETUP(tbext,ttbext_setup) diff --git a/tbext/source/tbfft2.cpp b/tbext/source/tbfft2.cpp index 6ed71d9..99d16fe 100644 --- a/tbext/source/tbfft2.cpp +++ b/tbext/source/tbfft2.cpp @@ -72,7 +72,7 @@ private: float *ins; float *outs; float *tmps; - t_float tmp[2049]; + t_float tmp[17000]; t_float s; t_float b; |