From da4bd8ef2f29ec4242e65a102e1c7d6e73d607e7 Mon Sep 17 00:00:00 2001 From: Chikashi Miyama Date: Tue, 29 Oct 2019 21:20:45 +0100 Subject: [PATCH] add signmund --- .../StreamingAssets/pd/patch/analyzer.pd | 4 + .../Assets/StreamingAssets/pd/patch/core.pd | 158 ++++++++++-------- 2 files changed, 96 insertions(+), 66 deletions(-) diff --git a/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd b/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd index 1ea2470..e6913da 100644 --- a/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd +++ b/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd @@ -400,8 +400,12 @@ samples/kick.wav kick \, read -resize samples/closed.wav closed; #X obj 213 182 table noise 16; #X obj 213 154 shmem noise 16; #X obj 213 128 r shmemupdate; +#X obj 320 127 r shmemupdate; +#X obj 320 152 shmem pitch 16; +#X obj 320 180 table pitch 16; #X connect 2 0 1 0; #X connect 5 0 4 0; +#X connect 6 0 7 0; #X restore 405 71 pd shmem; #X connect 0 0 2 0; #X connect 0 1 2 1; diff --git a/UnityProject/Assets/StreamingAssets/pd/patch/core.pd b/UnityProject/Assets/StreamingAssets/pd/patch/core.pd index 26d8a00..97d2712 100644 --- a/UnityProject/Assets/StreamingAssets/pd/patch/core.pd +++ b/UnityProject/Assets/StreamingAssets/pd/patch/core.pd @@ -1,17 +1,14 @@ #N canvas 1177 364 831 596 10; -#X obj 386 10 inlet~; -#X obj 55 139 spectrum \$1; -#X obj 179 312 table fft_\$1 512; -#X obj 150 249 r shmemupdate; -#X obj 178 288 shmem fft_\$1 512; -#X obj 67 313 table wave_\$1 512; -#X obj 69 289 shmem wave_\$1 512; -#X obj 148 170 tabwrite~ wave_\$1; -#X obj 491 178 tabwrite level; -#X obj 576 125 loadbang; -#X obj 576 150 f \$1, f 6; -#X obj 491 146 env~ 1024 512; -#X obj 364 302 timbreID; +#X obj 317 89 inlet~; +#X obj 37 170 spectrum \$1; +#X obj 40 249 table fft_\$1 512; +#X obj 39 192 r shmemupdate; +#X obj 39 225 shmem fft_\$1 512; +#X obj 150 249 table wave_\$1 512; +#X obj 152 225 shmem wave_\$1 512; +#X obj 152 172 tabwrite~ wave_\$1; +#N canvas 0 50 450 528 timberID 0; +#X obj 149 212 timbreID; #N canvas 507 196 745 433 onsets 0; #X obj 56 53 inlet~; #X obj 146 327 outlet; @@ -47,60 +44,89 @@ files used in this help file., f 22; #X connect 7 0 4 0; #X connect 7 0 1 0; #X connect 8 0 9 0; -#X restore 385 165 pd onsets; -#X obj 386 214 bfcc~ 1024 0.5; -#X obj 386 236 list split 25; -#X obj 257 206 loadbang; -#X msg 257 234 read trained.timid; -#X obj 270 342 loadbang; -#X obj 270 371 f \$1, f 6; -#X obj 270 396 + 160; -#X obj 379 355 * 64; -#X obj 379 378 clip 0 127; -#X obj 321 386 t b f; -#X obj 322 545 s netsend; -#X obj 379 417 i; -#X obj 322 458 pack 0 0 0; -#X obj 303 432 f; -#X obj 322 485 list prepend send; -#X obj 322 516 list trim; -#X obj 633 202 tabwrite noise; -#X obj 714 152 loadbang; -#X obj 714 177 f \$1, f 6; -#X obj 633 121 zeroCrossing~ 512; -#X obj 633 85 r shmemupdate; -#X connect 0 0 1 0; -#X connect 0 0 7 0; +#X restore 170 75 pd onsets; +#X obj 171 124 bfcc~ 1024 0.5; +#X obj 171 146 list split 25; +#X obj 42 116 loadbang; +#X msg 42 144 read trained.timid; +#X obj 55 252 loadbang; +#X obj 55 281 f \$1, f 6; +#X obj 55 306 + 160; +#X obj 164 265 * 64; +#X obj 164 288 clip 0 127; +#X obj 106 296 t b f; +#X obj 107 455 s netsend; +#X obj 164 327 i; +#X obj 107 368 pack 0 0 0; +#X obj 88 342 f; +#X obj 107 395 list prepend send; +#X obj 107 426 list trim; +#X obj 171 41 inlet~; #X connect 0 0 11 0; -#X connect 0 0 13 0; -#X connect 0 0 33 0; -#X connect 3 0 4 0; -#X connect 3 0 6 0; -#X connect 3 0 7 0; +#X connect 0 1 9 0; +#X connect 1 0 2 0; +#X connect 1 1 2 0; +#X connect 2 0 3 0; +#X connect 3 0 0 1; +#X connect 4 0 5 0; +#X connect 5 0 0 0; +#X connect 6 0 7 0; +#X connect 7 0 8 0; +#X connect 8 0 15 1; #X connect 9 0 10 0; -#X connect 10 0 8 1; -#X connect 11 0 8 0; -#X connect 12 0 23 0; -#X connect 12 1 21 0; -#X connect 13 0 14 0; -#X connect 13 1 14 0; -#X connect 14 0 15 0; -#X connect 15 0 12 1; +#X connect 10 0 13 0; +#X connect 11 0 15 0; +#X connect 11 1 14 1; +#X connect 13 0 14 2; +#X connect 14 0 16 0; +#X connect 15 0 14 0; #X connect 16 0 17 0; #X connect 17 0 12 0; -#X connect 18 0 19 0; -#X connect 19 0 20 0; -#X connect 20 0 27 1; -#X connect 21 0 22 0; -#X connect 22 0 25 0; -#X connect 23 0 27 0; -#X connect 23 1 26 1; -#X connect 25 0 26 2; -#X connect 26 0 28 0; -#X connect 27 0 26 0; -#X connect 28 0 29 0; -#X connect 29 0 24 0; -#X connect 31 0 32 0; -#X connect 32 0 30 1; -#X connect 33 0 30 0; -#X connect 34 0 33 0; +#X connect 18 0 1 0; +#X restore 276 169 pd timberID; +#X obj 152 195 r shmemupdate; +#N canvas 224 927 450 300 level 0; +#X obj 113 172 tabwrite level; +#X obj 194 120 loadbang; +#X obj 194 145 f \$1, f 6; +#X obj 113 94 env~ 1024 512; +#X obj 114 44 inlet~; +#X connect 1 0 2 0; +#X connect 2 0 0 1; +#X connect 3 0 0 0; +#X connect 4 0 3 0; +#X restore 359 170 pd level; +#N canvas 0 50 450 300 pitch 0; +#X obj 95 44 inlet~; +#X obj 95 94 sigmund~ pitch; +#X floatatom 95 133 5 0 0 0 - - -; +#X obj 95 169 tabwrite level; +#X obj 198 73 loadbang; +#X obj 198 98 f \$1, f 6; +#X connect 0 0 1 0; +#X connect 1 0 2 0; +#X connect 2 0 3 0; +#X connect 4 0 5 0; +#X connect 5 0 3 1; +#X restore 432 170 pd pitch; +#N canvas 0 50 450 300 noise 0; +#X obj 107 208 tabwrite noise; +#X obj 188 158 loadbang; +#X obj 188 183 f \$1, f 6; +#X obj 107 127 zeroCrossing~ 512; +#X obj 107 91 r shmemupdate; +#X obj 58 88 inlet~; +#X connect 1 0 2 0; +#X connect 2 0 0 1; +#X connect 3 0 0 0; +#X connect 4 0 3 0; +#X connect 5 0 3 0; +#X restore 494 169 pd noise; +#X connect 0 0 1 0; +#X connect 0 0 7 0; +#X connect 0 0 8 0; +#X connect 0 0 10 0; +#X connect 0 0 11 0; +#X connect 0 0 12 0; +#X connect 3 0 4 0; +#X connect 9 0 6 0;