From acd94e0446e7448256576cadca1c919c5c09428c Mon Sep 17 00:00:00 2001 From: Chikashi Miyama Date: Tue, 1 Oct 2019 15:09:53 +0200 Subject: [PATCH] update pd patch --- UnityProject/Assembly-CSharp-Editor.csproj | 2 +- UnityProject/Assembly-CSharp.csproj | 5 +- .../StreamingAssets/pd/patch/analyzer.pd | 111 +++++++++++------- 3 files changed, 73 insertions(+), 45 deletions(-) diff --git a/UnityProject/Assembly-CSharp-Editor.csproj b/UnityProject/Assembly-CSharp-Editor.csproj index d07f55b..0a28f42 100644 --- a/UnityProject/Assembly-CSharp-Editor.csproj +++ b/UnityProject/Assembly-CSharp-Editor.csproj @@ -63,7 +63,7 @@ - + diff --git a/UnityProject/Assembly-CSharp.csproj b/UnityProject/Assembly-CSharp.csproj index 254c655..4703cd5 100644 --- a/UnityProject/Assembly-CSharp.csproj +++ b/UnityProject/Assembly-CSharp.csproj @@ -59,13 +59,14 @@ - + + - + diff --git a/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd b/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd index 9ea3a86..0d0651c 100644 --- a/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd +++ b/UnityProject/Assets/StreamingAssets/pd/patch/analyzer.pd @@ -1,16 +1,6 @@ #N canvas 1494 726 827 452 10; -#X obj 351 23 loadbang; -#X obj 80 273 adc~ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; -#N canvas 0 50 450 250 (subpatch) 0; -#X array loop 211681 float 2; -#X coords 0 1 211681 -1 200 140 1 0 0; -#X restore 446 219 graph; -#X obj 274 146 soundfiler; -#X msg 269 109 read -resize drumloop.wav loop; -#X obj 6 318 dac~, f 6; -#X obj 31 228 tabplay~ loop; -#X obj 30 179 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 --1; +#X obj 217 251 adc~ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; +#X obj 48 304 dac~, f 6; #N canvas 215 619 730 390 analyzers_______________________________ 0; #X obj 95 44 inlet~; @@ -61,7 +51,7 @@ #X connect 13 0 29 0; #X connect 14 0 30 0; #X connect 15 0 31 0; -#X restore 80 309 pd analyzers_______________________________; +#X restore 218 298 pd analyzers_______________________________; #X obj 46 26 bang~; #X obj 46 49 count 16; #X obj 46 76 sel 0; @@ -210,36 +200,73 @@ 0.000244498 0.000150442 9.39965e-005 3.75807e-005 1.87755e-005; #X coords 0 1 1023 0 300 100 1 0 0; #X restore 39 32 graph; -#X restore 657 56 pd window; -#N canvas 927 320 450 300 udpmessage 0; -#X text 60 33 0 ... dsp; -#X restore 660 100 pd udpmessage; -#X msg 478 110 \; pd dsp 1; +#X restore 653 57 pd window; +#N canvas 2182 728 450 338 commands_from_unity 1; +#X obj 44 31 inlet; +#X obj 44 84 route 0; +#X obj 44 177 s sample_playback; +#X text 128 43 0 ... sample playback; +#X obj 141 121 print a; +#X obj 72 146 print n; +#X connect 0 0 1 0; #X connect 0 0 4 0; -#X connect 0 0 7 0; -#X connect 0 0 16 0; +#X connect 1 0 2 0; +#X connect 1 0 5 0; +#X restore 426 69 pd commands_from_unity; +#N canvas 667 603 877 437 sample_playback 0; +#X obj 86 166 readsf~; +#X obj 95 6 r sample_playback; +#X obj 87 280 outlet~; +#X obj 269 241 makefilename ../../../../AudioSamples/%s; +#X obj 269 280 route symbol; +#X obj 269 202 symbol; +#X obj 269 163 text get samplefiles; +#X floatatom 269 125 5 0 0 0 - - -; +#X obj 95 38 sel 0; +#X obj 122 72 - 1; +#X msg 33 114 0; +#X msg 269 318 open \$1 \, 1; +#X connect 0 0 2 0; #X connect 1 0 8 0; -#X connect 1 1 8 1; -#X connect 1 2 8 2; -#X connect 1 3 8 3; -#X connect 1 4 8 4; -#X connect 1 5 8 5; -#X connect 1 6 8 6; -#X connect 1 7 8 7; -#X connect 1 8 8 8; -#X connect 1 9 8 9; -#X connect 1 10 8 10; -#X connect 1 11 8 11; -#X connect 1 12 8 12; -#X connect 1 13 8 13; -#X connect 1 14 8 14; -#X connect 1 15 8 15; -#X connect 4 0 3 0; -#X connect 6 0 5 1; +#X connect 3 0 4 0; +#X connect 4 0 11 0; +#X connect 5 0 3 0; #X connect 6 0 5 0; -#X connect 6 0 8 0; -#X connect 6 1 7 0; #X connect 7 0 6 0; -#X connect 9 0 10 0; -#X connect 10 0 11 0; -#X connect 11 0 12 0; +#X connect 8 0 10 0; +#X connect 8 1 9 0; +#X connect 9 0 7 0; +#X connect 10 0 0 0; +#X connect 11 0 0 0; +#X restore 54 219 pd sample_playback; +#X obj 426 14 netreceive -u -b 54345; +#X obj 45 140 text define -k samplefiles; +#A set Back_Back.wav \; Brutal_Synth.wav \; Dialog.wav \; Drums.wav +\; Fox_Melo.wav \; Kick.wav \; Pads+Strings.wav \; Rose_Sax.wav \; +Roses_Front.wav; +#X obj 651 97 loadbang; +#X msg 651 124 \; pd dsp 1; +#X connect 0 0 2 0; +#X connect 0 1 2 1; +#X connect 0 2 2 2; +#X connect 0 3 2 3; +#X connect 0 4 2 4; +#X connect 0 5 2 5; +#X connect 0 6 2 6; +#X connect 0 7 2 7; +#X connect 0 8 2 8; +#X connect 0 9 2 9; +#X connect 0 10 2 10; +#X connect 0 11 2 11; +#X connect 0 12 2 12; +#X connect 0 13 2 13; +#X connect 0 14 2 14; +#X connect 0 15 2 15; +#X connect 3 0 4 0; +#X connect 4 0 5 0; +#X connect 5 0 6 0; +#X connect 10 0 1 0; +#X connect 10 0 1 1; +#X connect 10 0 2 0; +#X connect 11 0 9 0; +#X connect 13 0 14 0;