-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbearsalmon-help.pd
169 lines (169 loc) · 14.4 KB
/
bearsalmon-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#N canvas 308 84 803 561 10;
#N canvas 121 159 450 278 (subpatch) 0;
#X array array1 512 float 3;
#A 0 -0.989988 -0.980341 -0.967511 -0.95154 -0.932478 -0.91039 -0.885344 -0.857424 -0.82672 -0.793332 -0.757368 -0.718944 -0.678187 -0.635226 -0.590204 -0.543265 -0.494562 -0.444254 -0.392502 -0.339476 -0.285348 -0.230294 -0.174491 -0.118122 -0.06137 -0.00441826 0.0525478 0.109343 0.165784 0.221686 0.276868 0.331152 0.384359 0.436319 0.486863 0.535825 0.583048 0.628377 0.671667 0.712774 0.751568 0.787921 0.821716 0.852844 0.881201 0.906698 0.92925 0.948785 0.965239 0.978559 0.988703 0.995634 0.999334 0.999789 0.996997 0.990968 0.981721 0.969288 0.953706 0.935028 0.913313 0.888633 0.861069 0.830707 0.797649 0.762 0.723878 0.683404 0.640712 0.59594 0.549232 0.500741 0.450624 0.399044 0.346168 0.292168 0.23722 0.181501 0.125193 0.0684787 0.0115418 -0.0454326 -0.102259 -0.158754 -0.214734 -0.270016 -0.324421 -0.377773 -0.429899 -0.480628 -0.529797 -0.577245 -0.62282 -0.666371 -0.70776 -0.74685 -0.783515 -0.817636 -0.849102 -0.877811 -0.90367 -0.926594 -0.946511 -0.963352 -0.977068 -0.987609 -0.994944 -0.999049 -0.999909 -0.997524 -0.991898 -0.983053 -0.971015 -0.955824 -0.93753 -0.916191 -0.891879 -0.864668 -0.834652 -0.801925 -0.766594 -0.728774 -0.688587 -0.646166 -0.601645 -0.555171 -0.506895 -0.456972 -0.405566 -0.352843 -0.298974 -0.244134 -0.188502 -0.132258 -0.0755839 -0.0186647 0.0383151 0.0951706 0.151717 0.207771 0.26315 0.317674 0.371168 0.423456 0.474369 0.523741 0.571414 0.617231 0.661043 0.70271 0.742093 0.779069 0.813514 0.845317 0.874377 0.900596 0.923893 0.944187 0.961418 0.975525 0.986466 0.994204 0.998713 0.99998 0.997999 0.992778 0.984333 0.972693 0.957894 0.939984 0.919023 0.895077 0.868225 0.838554 0.80616 0.771149 0.733633 0.693736 0.651586 0.60732 0.561082 0.513022 0.463297 0.412067 0.359499 0.305764 0.251036 0.195493 0.139315 0.0826854 0.0257866 -0.0311957 -0.0880768 -0.144672 -0.200797 -0.25627 -0.310912 -0.364543 -0.416992 -0.468086 -0.51766 -0.565553 -0.61161 -0.655681 -0.697623 -0.7373 -0.774583 -0.80935 -0.841491 -0.870897 -0.897477 -0.921142 -0.941817 -0.959434 -0.973934 -0.985274 -0.993412 -0.998327 -0.999999 -0.998424 -0.993608 -0.985564 -0.974322 -0.959915 -0.942391 -0.921808 -0.898231 -0.871738 -0.842414 -0.810355 -0.775664 -0.738456 -0.698849 -0.656973 -0.612964 -0.566964 -0.519124 -0.469598 -0.418547 -0.366138 -0.312539 -0.257926 -0.202474 -0.146366 -0.0897825 -0.0329073 0.0240747 0.0809786 0.13762 0.193814 0.249378 0.304133 0.357901 0.410506 0.461778 0.511552 0.559664 0.605959 0.650286 0.692501 0.732469 0.770057 0.805146 0.83762 0.867374 0.894312 0.918346 0.939399 0.9574 0.972294 0.98403 0.992571 0.997889 0.999967 0.998799 0.994386 0.986746 0.975901 0.961887 0.94475 0.924545 0.90134 0.875206 0.846231 0.814508 0.780141 0.743241 0.703926 0.662327 0.618577 0.572818 0.5252 0.475875 0.425007 0.372757 0.319298 0.264802 0.209446 0.153409 0.0968751 0.0400263 -0.0169525 -0.0738763 -0.13056 -0.18682 -0.242473 -0.297339 -0.35124 -0.404 -0.455448 -0.505418 -0.553746 -0.600276 -0.644857 -0.687345 -0.7276 -0.765493 -0.800901 -0.833707 -0.863808 -0.891102 -0.915504 -0.936932 -0.955319 -0.970604 -0.982737 -0.99168 -0.997401 -0.999886 -0.999122 -0.995115 -0.987877 -0.97743 -0.963811 -0.947061 -0.927237 -0.904402 -0.87863 -0.850005 -0.81862 -0.784578 -0.747987 -0.708969 -0.667647 -0.624158 -0.578643 -0.531248 -0.482129 -0.431444 -0.379358 -0.326041 -0.271664 -0.216406 -0.160445 -0.103963 -0.0471432 0.0098294 0.0667701 0.123494 0.179817 0.235556 0.29053 0.344561 0.397473 0.449095 0.499258 0.5478 0.594563 0.639397 0.682153 0.722695 0.76089 0.796614 0.829753 0.860196 0.887847 0.912615 0.934419 0.95319 0.968865 0.981395 0.990737 0.996863 0.999752 0.999395 0.995793 0.988957 0.978911 0.965685 0.949324 0.929881 0.907418 0.88201 0.853736 0.822692 0.788975 0.752697 0.713974 0.672934 0.629709 0.584438 0.53727 0.488358 0.43786 0.38594 0.332767 0.278513 0.223355 0.167472 0.111045 0.0542578 -0.00270581 -0.0596606 -0.116422 -0.172805 -0.228627 -0.283707 -0.337865 -0.390927 -0.442718 -0.493073 -0.541826 -0.588821 -0.633903 -0.676927 -0.717753 -0.756248 -0.792289 -0.825755 -0.856542 -0.884547 -0.909679 -0.931859 -0.951011 -0.967077 -0.980002 -0.989745 -0.996274 -0.999568 -0.999618 -0.99642 -0.989988 -0.980341 -0.967511 -0.95154 -0.932478 -0.910389 -0.885344 -0.857424 -0.82672 -0.793332 -0.757368 -0.718944 -0.678186 -0.635226 -0.590204 -0.543265 -0.494562 -0.444253 -0.392502 -0.339476 -0.285348 -0.230293 -0.174491 -0.118122 -0.0613697 -0.00441791 0.0525482 0.109344 0.165784 0.221686 0.276868 0.331152 0.38436 0.43632 0.486863 0.535825 0.583048 0.628377 0.671667 0.712774 0.751568 0.787922 0.821716 0.852844 0.881201 0.906698 0.92925 0.948785 0.965239 0.978559 0.988703 0.995634 0.999334 0.999789 0.996997 0.990968 0.981721 0.969288 0.953705 0.935028 0.913313 0.888633 0.861068 0.830707 0.797649 0.762 0.723877 0.683404 0.640712 0.59594 0.549231;
#X coords 0 1 512 -1 200 140 1 0 0;
#X restore 332 24 graph;
#X obj 146 502 bearsalmon array1 array2;
#N canvas 0 22 450 278 (subpatch) 0;
#X array array2 512 float 3;
#A 0 0.0450789 0.0632194 0.0813601 0.0995007 0.117641 0.135782 0.153922 0.172063 0.190204 0.208344 0.226485 0.244625 0.262766 0.280907 0.299047 0.317188 0.335328 0.353469 0.371609 0.38975 0.407891 0.426031 0.444172 0.462312 0.480453 0.498594 0.516734 0.534875 0.553015 0.571156 0.589297 0.607437 0.625578 0.643718 0.661859 0.679999 0.69814 0.716281 0.734421 0.752562 0.770702 0.788843 0.806984 0.825124 0.843265 0.861405 0.879546 0.897687 0.915827 0.933968 0.952108 0.970249 0.988389 -0.99347 -0.975329 -0.957189 -0.939048 -0.920907 -0.902767 -0.884626 -0.866486 -0.848345 -0.830205 -0.812064 -0.793923 -0.775783 -0.757642 -0.739502 -0.721361 -0.70322 -0.68508 -0.666939 -0.648799 -0.630658 -0.612517 -0.594377 -0.576236 -0.558096 -0.539955 -0.521815 -0.503674 -0.485533 -0.467393 -0.449252 -0.431112 -0.412971 -0.39483 -0.37669 -0.358549 -0.340409 -0.322268 -0.304127 -0.285987 -0.267846 -0.249706 -0.231565 -0.213425 -0.195284 -0.177143 -0.159003 -0.140862 -0.122722 -0.104581 -0.0864404 -0.0682998 -0.0501592 -0.0320186 -0.013878 0.00426257 0.0224031 0.0405438 0.0586843 0.0768249 0.0949656 0.113106 0.131247 0.149387 0.167528 0.185668 0.203809 0.22195 0.24009 0.258231 0.276371 0.294512 0.312653 0.330793 0.348934 0.367074 0.385215 0.403356 0.421496 0.439637 0.457777 0.475918 0.494058 0.512199 0.53034 0.54848 0.566621 0.584762 0.602902 0.621043 0.639183 0.657324 0.675464 0.693605 0.711746 0.729886 0.748027 0.766167 0.784308 0.802449 0.820589 0.83873 0.85687 0.875011 0.893152 0.911292 0.929433 0.947573 0.965714 0.983854 -0.998005 -0.979864 -0.961724 -0.943583 -0.925443 -0.907302 -0.889161 -0.871021 -0.85288 -0.83474 -0.816599 -0.798459 -0.780318 -0.762177 -0.744037 -0.725896 -0.707756 -0.689615 -0.671474 -0.653334 -0.635193 -0.617053 -0.598912 -0.580771 -0.562631 -0.54449 -0.52635 -0.508209 -0.490068 -0.471928 -0.453787 -0.435647 -0.417506 -0.399366 -0.381225 -0.363084 -0.344944 -0.326803 -0.308663 -0.290522 -0.272381 -0.254241 -0.2361 -0.21796 -0.199819 -0.181678 -0.163538 -0.145397 -0.127257 -0.109116 -0.0909755 -0.0728349 -0.0546943 -0.0365537 -0.0184131 -0.000272572 0.017868 0.0360086 0.0541493 0.0722898 0.0904304 0.108571 0.126712 0.144852 0.162993 0.181133 0.199274 0.217414 0.235555 0.253696 0.271836 0.289977 0.308118 0.326258 0.344399 0.362539 0.38068 0.39882 0.416961 0.435102 0.453242 0.471383 0.489523 0.507664 0.525805 0.543945 0.562086 0.580226 0.598367 0.616508 0.634648 0.652789 0.670929 0.68907 0.70721 0.725351 0.743492 0.761632 0.779773 0.797913 0.816054 0.834195 0.852335 0.870476 0.888616 0.906757 0.924898 0.943038 0.961179 0.979319 0.99746 -0.984399 -0.966259 -0.948118 -0.929978 -0.911837 -0.893697 -0.875556 -0.857415 -0.839275 -0.821134 -0.802994 -0.784853 -0.766712 -0.748572 -0.730431 -0.712291 -0.69415 -0.676009 -0.657869 -0.639728 -0.621588 -0.603447 -0.585307 -0.567166 -0.549025 -0.530885 -0.512744 -0.494604 -0.476463 -0.458322 -0.440182 -0.422041 -0.403901 -0.38576 -0.367619 -0.349479 -0.331338 -0.313198 -0.295057 -0.276917 -0.258776 -0.240635 -0.222495 -0.204354 -0.186214 -0.168073 -0.149932 -0.131792 -0.113651 -0.0955106 -0.07737 -0.0592294 -0.0410888 -0.0229483 -0.00480765 0.013333 0.0314735 0.0496141 0.0677547 0.0858953 0.104036 0.122176 0.140317 0.158458 0.176598 0.194739 0.212879 0.23102 0.249161 0.267301 0.285442 0.303582 0.321723 0.339864 0.358004 0.376145 0.394285 0.412426 0.430567 0.448707 0.466848 0.484988 0.503129 0.521269 0.53941 0.557551 0.575691 0.593832 0.611972 0.630113 0.648254 0.666394 0.684535 0.702675 0.720816 0.738957 0.757097 0.775238 0.793378 0.811519 0.829659 0.8478 0.865941 0.884081 0.902222 0.920362 0.938503 0.956644 0.974784 0.992925 -0.988935 -0.970794 -0.952653 -0.934513 -0.916372 -0.898232 -0.880091 -0.861951 -0.84381 -0.825669 -0.807529 -0.789388 -0.771248 -0.753107 -0.734966 -0.716826 -0.698685 -0.680545 -0.662404 -0.644263 -0.626123 -0.607982 -0.589842 -0.571701 -0.55356 -0.53542 -0.517279 -0.499139 -0.480998 -0.462858 -0.444717 -0.426576 -0.408436 -0.390295 -0.372155 -0.354014 -0.335873 -0.317733 -0.299592 -0.281452 -0.263311 -0.24517 -0.22703 -0.208889 -0.190749 -0.172608 -0.154468 -0.136327 -0.118186 -0.100046 -0.0819051 -0.0637646 -0.045624 -0.0274834 -0.00934279 0.00879776 0.0269384 0.045079 0.0632195 0.0813602 0.0995008 0.117641 0.135782 0.153923 0.172063 0.190204 0.208344 0.226485 0.244625 0.262766 0.280907 0.299047 0.317188 0.335328 0.353469 0.37161 0.38975 0.407891 0.426031 0.444172 0.462313 0.480453 0.498594 0.516734 0.534875 0.553015 0.571156 0.589297 0.607437 0.625578 0.643718 0.661859 0.68 0.69814 0.716281 0.734421 0.752562 0.770703 0.788843 0.806984 0.825124 0.843265 0.861405 0.879546 0.897687 0.915827 0.933968 0.952109 0.970249 0.98839 -0.99347 -0.975329 -0.957189 -0.939048 -0.920907 -0.902767 -0.884626 -0.866486 -0.848345 -0.830204 -0.812064 -0.793923 -0.775783 -0.757642 -0.739501 -0.721361 -0.70322 -0.68508;
#X coords 0 1 512 -1 200 140 1 0 0;
#X restore 582 25 graph;
#X obj 27 487 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X msg 54 255 cut 0 250 500;
#X msg 358 417 cut 1 100 200;
#X msg 355 396 cut 1 0 100;
#X msg 366 439 cut 1 200 300;
#X msg 376 458 cut 1 300 400;
#X msg 387 476 cut 1 250 500;
#X msg 88 330 swap 100 200;
#X msg 105 368 swap 250 500;
#X msg 114 387 swap 0 512;
#X msg 359 304 shuffle 15;
#X text 29 141 Cut Left;
#X text 103 288 Swap!;
#X text 22 513 Bang for some info!, f 11;
#X text 363 374 Cut Right;
#X text 366 282 Shuffle!;
#X msg 99 350 swap 200 300;
#X msg 81 310 swap 0 100;
#X obj 26 396 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X msg 20 171 cut 0 0 50;
#X msg 37 210 cut 0 250 300;
#X msg 45 231 cut 0 450 500;
#X msg 28 191 cut 0 150 200;
#X text 25 421 Press for Bearclaw, f 10;
#X text 247 33 Re-init waveforms, f 14;
#X text 150 208 - start and end - the range of "frames" to cut, f 49;
#N canvas 0 38 1039 699 init 0;
#X obj 67 298 osc~;
#X floatatom 65 279 5 0 0 0 - - - 0;
#X obj 69 329 tabwrite~ array1;
#X obj 138 313 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X floatatom 179 241 5 0 0 0 - - - 0;
#X obj 180 263 phasor~;
#X obj 174 360 tabwrite~ array2;
#X obj 179 282 *~ 2;
#X obj 179 303 -~ 1;
#X obj 52 362 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X obj 152 216 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X msg 62 265 400;
#X obj 68 239 loadbang;
#X text 184 171 This subpatch just initializes the waveforms;
#X obj 220 69 cnv 15 100 60 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 100 100 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 5 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 6 0;
#X connect 9 0 2 0;
#X connect 10 0 9 0;
#X connect 10 0 3 0;
#X connect 11 0 1 0;
#X connect 11 0 4 0;
#X connect 12 0 11 0;
#X connect 15 0 10 0;
#X coords 0 -1 1 1 15 15 2 100 100;
#X restore 261 68 pd init tables;
#N canvas 0 23 664 615 voice 0;
#X floatatom 44 112 5 0 0 0 - - - 0;
#X obj 45 92 mtof;
#X floatatom 43 65 5 0 0 0 - - - 0;
#X obj 46 166 +~ 1;
#X obj 33 278 tabread4~ array1;
#X obj 261 214 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X obj 42 130 phasor~;
#X obj 121 348 line~;
#X obj 187 296 delay 100;
#X msg 185 320 0 250;
#X obj 33 320 *~;
#X msg 143 310 1 50;
#X msg 59 222 set array1;
#X msg 66 241 set array2;
#X text 135 221 Read: Left array Right array, f 20;
#X obj 45 148 *~ 500;
#X msg 60 34 50;
#X obj 114 23 loadbang;
#X text 288 198 Click to play note, f 8;
#X obj 30 383 outlet~;
#X obj 240 104 inlet;
#X text 217 33 This subpatch is the wavetable synth that reads the arrays in teh parent;
#X obj 105 377 *~;
#X connect 0 0 6 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 4 0 10 0;
#X connect 5 0 11 0;
#X connect 5 0 8 0;
#X connect 6 0 15 0;
#X connect 7 0 22 0;
#X connect 7 0 22 1;
#X connect 8 0 9 0;
#X connect 9 0 7 0;
#X connect 10 0 19 0;
#X connect 11 0 7 0;
#X connect 12 0 4 0;
#X connect 13 0 4 0;
#X connect 15 0 3 0;
#X connect 16 0 2 0;
#X connect 17 0 16 0;
#X connect 20 0 5 0;
#X connect 22 0 10 1;
#X restore 661 300 pd voice;
#X obj 661 242 bng 15 250 50 0 empty empty empty 17 7 0 10 #00ff04 #000000 #000000;
#X text 656 187 Press this to play notes, f 12;
#X obj 660 426 dac~;
#X floatatom 743 262 5 0 100 0 - - - 0;
#X obj 736 301 pack 0 30;
#X obj 736 327 line~;
#X obj 736 353 /~ 100;
#X obj 736 379 *~;
#X obj 660 388 *~;
#X obj 661 326 hip~ 10;
#X text 739 239 Volume;
#X text 150 190 - array_select can = 0 or 1 \, selects the first or second array, f 67;
#X text 166 312 - swap start end;
#X text 125 171 - cut array_select start end;
#X text 433 298 - shuffle width - the length of shuffled segment, f 32;
#X text 20 24 Bearsalmon;
#X text 32 44 by Aren Akian;
#X text 187 385 < Swap entire table, f 13;
#X text 30 79 Bearsalmon accepts several message operations through its inlet:, f 27;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 1 0;
#X connect 7 0 1 0;
#X connect 8 0 1 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X connect 13 0 1 0;
#X connect 19 0 1 0;
#X connect 20 0 1 0;
#X connect 21 0 22 0;
#X connect 21 0 23 0;
#X connect 21 0 24 0;
#X connect 21 0 25 0;
#X connect 22 0 1 0;
#X connect 23 0 1 0;
#X connect 24 0 1 0;
#X connect 25 0 1 0;
#X connect 30 0 40 0;
#X connect 31 0 30 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 36 0 37 0;
#X connect 37 0 38 0;
#X connect 37 0 38 1;
#X connect 38 0 39 1;
#X connect 39 0 33 0;
#X connect 39 0 33 1;
#X connect 40 0 39 0;