diff examples/08-PureData/karplusStrong/gate-xfer.pd @ 531:ddb86944e138 prerelease

cleaned up all pd examples (and removed some). added polysynth and vangelisiser to instruments examples
author chnrx <chris.heinrichs@gmail.com>
date Thu, 23 Jun 2016 20:40:05 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/08-PureData/karplusStrong/gate-xfer.pd	Thu Jun 23 20:40:05 2016 +0100
@@ -0,0 +1,212 @@
+#N canvas 0 22 470 353 10;
+#N canvas 0 22 450 278 (subpatch) 0;
+#X array \$0-xfer 1024 float 3;
+#A 0 0 -0.998047 -0.994148 -0.990257 -0.986374 -0.982498 -0.97863 -0.97477
+-0.970917 -0.967072 -0.963234 -0.959404 -0.955582 -0.951767 -0.94796
+-0.94416 -0.940369 -0.936584 -0.932808 -0.929039 -0.925278 -0.921524
+-0.917778 -0.91404 -0.910309 -0.906586 -0.90287 -0.899162 -0.895462
+-0.891769 -0.888084 -0.884407 -0.880737 -0.877075 -0.873421 -0.869774
+-0.866135 -0.862503 -0.858879 -0.855263 -0.851654 -0.848053 -0.84446
+-0.840874 -0.837296 -0.833725 -0.830162 -0.826607 -0.823059 -0.819519
+-0.815987 -0.812462 -0.808945 -0.805435 -0.801933 -0.798439 -0.794952
+-0.791473 -0.788002 -0.784538 -0.781082 -0.777634 -0.774193 -0.77076
+-0.767334 -0.763916 -0.760506 -0.757103 -0.753708 -0.75032 -0.746941
+-0.743568 -0.740204 -0.736847 -0.733498 -0.730156 -0.726822 -0.723495
+-0.720177 -0.716866 -0.713562 -0.710266 -0.706978 -0.703697 -0.700424
+-0.697159 -0.693901 -0.690651 -0.687408 -0.684174 -0.680946 -0.677727
+-0.674515 -0.67131 -0.668114 -0.664925 -0.661743 -0.658569 -0.655403
+-0.652245 -0.649094 -0.64595 -0.642815 -0.639687 -0.636566 -0.633453
+-0.630348 -0.627251 -0.624161 -0.621078 -0.618004 -0.614937 -0.611877
+-0.608826 -0.605782 -0.602745 -0.599716 -0.596695 -0.593681 -0.590675
+-0.587677 -0.584686 -0.581703 -0.578728 -0.57576 -0.5728 -0.569847
+-0.566902 -0.563965 -0.561035 -0.558113 -0.555199 -0.552292 -0.549393
+-0.546501 -0.543617 -0.540741 -0.537872 -0.535011 -0.532158 -0.529312
+-0.526474 -0.523643 -0.520821 -0.518005 -0.515198 -0.512398 -0.509605
+-0.506821 -0.504044 -0.501274 -0.498512 -0.495758 -0.493011 -0.490273
+-0.487541 -0.484818 -0.482101 -0.479393 -0.476692 -0.473999 -0.471313
+-0.468636 -0.465965 -0.463303 -0.460648 -0.458 -0.45536 -0.452728 -0.450104
+-0.447487 -0.444878 -0.442276 -0.439682 -0.437096 -0.434517 -0.431946
+-0.429382 -0.426826 -0.424278 -0.421738 -0.419205 -0.416679 -0.414162
+-0.411652 -0.409149 -0.406654 -0.404167 -0.401688 -0.399216 -0.396751
+-0.394295 -0.391846 -0.389404 -0.386971 -0.384544 -0.382126 -0.379715
+-0.377312 -0.374916 -0.372528 -0.370148 -0.367775 -0.36541 -0.363052
+-0.360703 -0.35836 -0.356026 -0.353699 -0.351379 -0.349068 -0.346764
+-0.344467 -0.342178 -0.339897 -0.337624 -0.335358 -0.333099 -0.330849
+-0.328606 -0.32637 -0.324142 -0.321922 -0.31971 -0.317505 -0.315308
+-0.313118 -0.310936 -0.308762 -0.306595 -0.304436 -0.302284 -0.30014
+-0.298004 -0.295876 -0.293755 -0.291641 -0.289536 -0.287437 -0.285347
+-0.283264 -0.281189 -0.279121 -0.277061 -0.275009 -0.272964 -0.270927
+-0.268898 -0.266876 -0.264862 -0.262856 -0.260857 -0.258865 -0.256882
+-0.254906 -0.252937 -0.250977 -0.249023 -0.247078 -0.24514 -0.24321
+-0.241287 -0.239372 -0.237465 -0.235565 -0.233673 -0.231789 -0.229912
+-0.228043 -0.226181 -0.224327 -0.222481 -0.220642 -0.218811 -0.216988
+-0.215172 -0.213364 -0.211563 -0.20977 -0.207985 -0.206207 -0.204437
+-0.202675 -0.20092 -0.199173 -0.197433 -0.195702 -0.193977 -0.192261
+-0.190552 -0.18885 -0.187157 -0.185471 -0.183792 -0.182121 -0.180458
+-0.178802 -0.177155 -0.175514 -0.173882 -0.172256 -0.170639 -0.169029
+-0.167427 -0.165833 -0.164246 -0.162666 -0.161095 -0.159531 -0.157974
+-0.156425 -0.154884 -0.153351 -0.151825 -0.150307 -0.148796 -0.147293
+-0.145798 -0.14431 -0.14283 -0.141357 -0.139893 -0.138435 -0.136986
+-0.135544 -0.134109 -0.132683 -0.131264 -0.129852 -0.128448 -0.127052
+-0.125664 -0.124283 -0.12291 -0.121544 -0.120186 -0.118835 -0.117493
+-0.116158 -0.11483 -0.11351 -0.112198 -0.110893 -0.109596 -0.108307
+-0.107025 -0.105751 -0.104485 -0.103226 -0.101974 -0.100731 -0.0994949
+-0.0982666 -0.0970459 -0.0958328 -0.0946274 -0.0934296 -0.0922394 -0.0910568
+-0.0898819 -0.0887146 -0.0875549 -0.0864029 -0.0852585 -0.0841217 -0.0829926
+-0.081871 -0.0807571 -0.0796509 -0.0785522 -0.0774612 -0.0763779 -0.0753021
+-0.074234 -0.0731735 -0.0721207 -0.0710754 -0.0700378 -0.0690079 -0.0679855
+-0.0669708 -0.0659637 -0.0649643 -0.0639725 -0.0629883 -0.0620117 -0.0610428
+-0.0600815 -0.0591278 -0.0581818 -0.0572433 -0.0563126 -0.0553894 -0.0544739
+-0.053566 -0.0526657 -0.0517731 -0.0508881 -0.0500107 -0.0491409 -0.0482788
+-0.0474243 -0.0465775 -0.0457382 -0.0449066 -0.0440826 -0.0432663 -0.0424576
+-0.0416565 -0.040863 -0.0400772 -0.039299 -0.0385284 -0.0377655 -0.0370102
+-0.0362625 -0.0355225 -0.03479 -0.0340652 -0.0333481 -0.0326385 -0.0319366
+-0.0312424 -0.0305557 -0.0298767 -0.0292053 -0.0285416 -0.0278854 -0.0272369
+-0.0265961 -0.0259628 -0.0253372 -0.0247192 -0.0241089 -0.0235062 -0.0229111
+-0.0223236 -0.0217438 -0.0211716 -0.020607 -0.02005 -0.0195007 -0.018959
+-0.018425 -0.0178986 -0.0173798 -0.0168686 -0.0163651 -0.0158691 -0.0153809
+-0.0149002 -0.0144272 -0.0139618 -0.013504 -0.0130539 -0.0126114 -0.0121765
+-0.0117493 -0.0113297 -0.0109177 -0.0105133 -0.0101166 -0.00972748
+-0.00934601 -0.00897217 -0.00860596 -0.00824738 -0.00789642 -0.0075531
+-0.00721741 -0.00688934 -0.00656891 -0.0062561 -0.00595093 -0.00565338
+-0.00536346 -0.00508118 -0.00480652 -0.00453949 -0.00428009 -0.00402832
+-0.00378418 -0.00354767 -0.00331879 -0.00309753 -0.00288391 -0.00267792
+-0.00247955 -0.00228882 -0.00210571 -0.00193024 -0.00176239 -0.00160217
+-0.00144958 -0.00130463 -0.0011673 -0.0010376 -0.000915527 -0.000801086
+-0.000694275 -0.000595093 -0.00050354 -0.000419617 -0.000343323 -0.000274658
+-0.000213623 -0.000160217 -0.000114441 -7.62939e-05 -4.57764e-05 -2.28882e-05
+-7.62939e-06 0 0 7.62939e-06 2.28882e-05 4.57764e-05 7.62939e-05 0.000114441
+0.000160217 0.000213623 0.000274658 0.000343323 0.000419617 0.00050354
+0.000595093 0.000694275 0.000801086 0.000915527 0.0010376 0.0011673
+0.00130463 0.00144958 0.00160217 0.00176239 0.00193024 0.00210571 0.00228882
+0.00247955 0.00267792 0.00288391 0.00309753 0.00331879 0.00354767 0.00378418
+0.00402832 0.00428009 0.00453949 0.00480652 0.00508118 0.00536346 0.00565338
+0.00595093 0.0062561 0.00656891 0.00688934 0.00721741 0.0075531 0.00789642
+0.00824738 0.00860596 0.00897217 0.00934601 0.00972748 0.0101166 0.0105133
+0.0109177 0.0113297 0.0117493 0.0121765 0.0126114 0.0130539 0.013504
+0.0139618 0.0144272 0.0149002 0.0153809 0.0158691 0.0163651 0.0168686
+0.0173798 0.0178986 0.018425 0.018959 0.0195007 0.02005 0.020607 0.0211716
+0.0217438 0.0223236 0.0229111 0.0235062 0.0241089 0.0247192 0.0253372
+0.0259628 0.0265961 0.0272369 0.0278854 0.0285416 0.0292053 0.0298767
+0.0305557 0.0312424 0.0319366 0.0326385 0.0333481 0.0340652 0.03479
+0.0355225 0.0362625 0.0370102 0.0377655 0.0385284 0.039299 0.0400772
+0.040863 0.0416565 0.0424576 0.0432663 0.0440826 0.0449066 0.0457382
+0.0465775 0.0474243 0.0482788 0.0491409 0.0500107 0.0508881 0.0517731
+0.0526657 0.053566 0.0544739 0.0553894 0.0563126 0.0572433 0.0581818
+0.0591278 0.0600815 0.0610428 0.0620117 0.0629883 0.0639725 0.0649643
+0.0659637 0.0669708 0.0679855 0.0690079 0.0700378 0.0710754 0.0721207
+0.0731735 0.074234 0.0753021 0.0763779 0.0774612 0.0785522 0.0796509
+0.0807571 0.081871 0.0829926 0.0841217 0.0852585 0.0864029 0.0875549
+0.0887146 0.0898819 0.0910568 0.0922394 0.0934296 0.0946274 0.0958328
+0.0970459 0.0982666 0.0994949 0.100731 0.101974 0.103226 0.104485 0.105751
+0.107025 0.108307 0.109596 0.110893 0.112198 0.11351 0.11483 0.116158
+0.117493 0.118835 0.120186 0.121544 0.12291 0.124283 0.125664 0.127052
+0.128448 0.129852 0.131264 0.132683 0.134109 0.135544 0.136986 0.138435
+0.139893 0.141357 0.14283 0.14431 0.145798 0.147293 0.148796 0.150307
+0.151825 0.153351 0.154884 0.156425 0.157974 0.159531 0.161095 0.162666
+0.164246 0.165833 0.167427 0.169029 0.170639 0.172256 0.173882 0.175514
+0.177155 0.178802 0.180458 0.182121 0.183792 0.185471 0.187157 0.18885
+0.190552 0.192261 0.193977 0.195702 0.197433 0.199173 0.20092 0.202675
+0.204437 0.206207 0.207985 0.20977 0.211563 0.213364 0.215172 0.216988
+0.218811 0.220642 0.222481 0.224327 0.226181 0.228043 0.229912 0.231789
+0.233673 0.235565 0.237465 0.239372 0.241287 0.24321 0.24514 0.247078
+0.249023 0.250977 0.252937 0.254906 0.256882 0.258865 0.260857 0.262856
+0.264862 0.266876 0.268898 0.270927 0.272964 0.275009 0.277061 0.279121
+0.281189 0.283264 0.285347 0.287437 0.289536 0.291641 0.293755 0.295876
+0.298004 0.30014 0.302284 0.304436 0.306595 0.308762 0.310936 0.313118
+0.315308 0.317505 0.31971 0.321922 0.324142 0.32637 0.328606 0.330849
+0.333099 0.335358 0.337624 0.339897 0.342178 0.344467 0.346764 0.349068
+0.351379 0.353699 0.356026 0.35836 0.360703 0.363052 0.36541 0.367775
+0.370148 0.372528 0.374916 0.377312 0.379715 0.382126 0.384544 0.386971
+0.389404 0.391846 0.394295 0.396751 0.399216 0.401688 0.404167 0.406654
+0.409149 0.411652 0.414162 0.416679 0.419205 0.421738 0.424278 0.426826
+0.429382 0.431946 0.434517 0.437096 0.439682 0.442276 0.444878 0.447487
+0.450104 0.452728 0.45536 0.458 0.460648 0.463303 0.465965 0.468636
+0.471313 0.473999 0.476692 0.479393 0.482101 0.484818 0.487541 0.490273
+0.493011 0.495758 0.498512 0.501274 0.504044 0.506821 0.509605 0.512398
+0.515198 0.518005 0.520821 0.523643 0.526474 0.529312 0.532158 0.535011
+0.537872 0.540741 0.543617 0.546501 0.549393 0.552292 0.555199 0.558113
+0.561035 0.563965 0.566902 0.569847 0.5728 0.57576 0.578728 0.581703
+0.584686 0.587677 0.590675 0.593681 0.596695 0.599716 0.602745 0.605782
+0.608826 0.611877 0.614937 0.618004 0.621078 0.624161 0.627251 0.630348
+0.633453 0.636566 0.639687 0.642815 0.64595 0.649094 0.652245 0.655403
+0.658569 0.661743 0.664925 0.668114 0.67131 0.674515 0.677727 0.680946
+0.684174 0.687408 0.690651 0.693901 0.697159 0.700424 0.703697 0.706978
+0.710266 0.713562 0.716866 0.720177 0.723495 0.726822 0.730156 0.733498
+0.736847 0.740204 0.743568 0.746941 0.75032 0.753708 0.757103 0.760506
+0.763916 0.767334 0.77076 0.774193 0.777634 0.781082 0.784538 0.788002
+0.791473 0.794952 0.798439 0.801933 0.805435 0.808945 0.812462 0.815987
+0.819519 0.823059 0.826607 0.830162 0.833725 0.837296 0.840874 0.84446
+0.848053 0.851654 0.855263 0.858879 0.862503 0.866135 0.869774 0.873421
+0.877075 0.880737 0.884407 0.888084 0.891769 0.895462 0.899162 0.90287
+;
+#A 1000 0.906586 0.910309 0.91404 0.917778 0.921524 0.925278 0.929039
+0.932808 0.936584 0.940369 0.94416 0.94796 0.951767 0.955582 0.959404
+0.963234 0.967072 0.970917 0.97477 0.97863 0.982498 0.986374 0.990257
+0.994148;
+#X coords 0 1 1023 -1 200 200 1 0 0;
+#X restore 230 114 graph;
+#X obj 25 107 inlet~;
+#X obj 25 129 clip~ -1 1;
+#X obj 25 151 *~ 512;
+#X obj 25 173 +~ 512;
+#X obj 25 195 tabread4~ \$0-xfer;
+#X obj 25 217 outlet~;
+#N canvas 0 22 334 332 generate-xfer 0;
+#X obj 8 290 tabwrite \$0-xfer;
+#X obj 8 109 / 1024;
+#X obj 8 129 * 2;
+#X obj 8 149 - 1;
+#X obj 8 169 moses 0;
+#X obj 8 191 + 0.1;
+#X obj 8 213 clip -1 0;
+#X obj 68 191 - 0.1;
+#X obj 68 213 clip 0 1;
+#X obj 101 16 inlet threshold;
+#X obj 101 78 count 1024;
+#X obj 128 58 s \$0-thresh;
+#X obj 95 169 r \$0-thresh;
+#X obj 101 38 t b f;
+#X obj 68 236 *;
+#X obj 8 236 *;
+#X obj 8 258 * -1;
+#X text 140 203 <<< deadzone;
+#X text 140 253 <<< smooth by taking exponent;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 4 0 5 0;
+#X connect 4 1 7 0;
+#X connect 5 0 6 0;
+#X connect 6 0 15 0;
+#X connect 6 0 15 1;
+#X connect 7 0 8 0;
+#X connect 8 0 14 0;
+#X connect 8 0 14 1;
+#X connect 9 0 13 0;
+#X connect 10 0 0 1;
+#X connect 10 0 1 0;
+#X connect 12 0 5 1;
+#X connect 12 0 7 1;
+#X connect 13 0 10 0;
+#X connect 13 1 11 0;
+#X connect 14 0 0 0;
+#X connect 15 0 16 0;
+#X connect 16 0 0 0;
+#X restore 26 297 pd generate-xfer;
+#X text 78 276 <<< threshold;
+#X obj 26 253 loadbang;
+#X obj 26 275 f \$1;
+#X text 26 20 This abstraction feeds the input signal through a transfer
+;
+#X obj 103 254 inlet;
+#X text 26 47 set threshold;
+#X text 26 33 function attenuating the signal at values below the;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 4 0 5 0;
+#X connect 5 0 6 0;
+#X connect 9 0 10 0;
+#X connect 10 0 7 0;
+#X connect 12 0 10 1;