Skip to content

Commit

Permalink
final pass of green readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tremblap committed Jul 17, 2022
1 parent 5cd6db2 commit 872382a
Show file tree
Hide file tree
Showing 17 changed files with 568 additions and 382 deletions.
37 changes: 21 additions & 16 deletions help/fluid.mfcc~-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Cepstral Coefficients (MFCCs).;
#X obj 353 282 fluid.out~ mfcchelp;
#X obj 475 692 cnv 15 192 68 empty empty More\\\ information 4 10 0
13 #e0e0e0 #404040 0;
#N canvas 229 91 691 855 first_MFCC_coefficient 0;
#N canvas 200 54 691 855 first_MFCC_coefficient 0;
#X obj 17 13 cnv 15 660 42 empty empty fluid.mfcc~ 1 22 0 36 #4ba3fb
#ffffff 0;
#X text 19 108 Understanding the role of the first MFCC coefficient
#X text 18 82 Understanding the role of the first MFCC coefficient
;
#X obj 64 384 fluid.out~ nmffilterhelp;
#N canvas 1770 -861 716 580 srcselect3 0;
Expand Down Expand Up @@ -112,11 +112,6 @@ Cepstral Coefficients (MFCCs).;
#X connect 3 0 2 0;
#X restore 41 268 pd sawtooth;
#X floatatom 234 276 5 0 1 0 - - - 0;
#X text 318 192 The first coefficient (the first index) is essentally
a value that represents the loudness., f 46;
#X text 318 262 Try modulating the volume here on any of the sources
\, and watch that it doesn't really effect the "shape" of the coefficients.
, f 46;
#X text 318 332 Removing the first coefficient is a common practice
if you only care about the timbre of the measured sound., f 46;
#X text 282 276 <---;
Expand All @@ -136,24 +131,31 @@ if you only care about the timbre of the measured sound., f 46;
#X text 20 151 2) select a source;
#X msg 39 438 startcoeff 1;
#X msg 48 476 startcoeff 0;
#X text 142 433 ask the object for 13 MFCCs starting from the second
#X obj 317 263 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 318 262 3) Try modulating the volume here on any of the sources
\, and watch that it doesn't really effect the "shape" of the coefficients.
, f 46;
#X text 142 433 ask the object for 13 MFCCs starting from the 'first'
(it counts starting at 0);
#X text 146 473 or just have the default behaviour of counting from
the first;
the zeroth., f 63;
#X text 17 109 The zeroth coefficient (the first index) is essentally
a value that represents the energy., f 92;
#X connect 3 0 9 0;
#X connect 4 0 3 3;
#X connect 5 0 3 0;
#X connect 9 0 2 1;
#X connect 9 0 2 0;
#X connect 9 0 17 0;
#X connect 9 0 15 0;
#X connect 10 0 3 2;
#X connect 11 0 3 1;
#X connect 12 0 9 1;
#X connect 17 0 19 0;
#X connect 24 0 17 0;
#X connect 25 0 17 0;
#X connect 15 0 17 0;
#X connect 22 0 15 0;
#X connect 23 0 15 0;
#X restore 484 712 pd first_MFCC_coefficient;
#N canvas 474 107 693 767 timbral_matching 0;
#N canvas 144 83 693 767 timbral_matching 0;
#X obj 17 13 cnv 15 660 42 empty empty fluid.mfcc~ 1 22 0 36 #4ba3fb
#ffffff 0;
#X text 19 108 A real-time timbral matching example;
Expand Down Expand Up @@ -578,7 +580,7 @@ the first;
#X text 271 557 Inside this subpatch a Euclidian distance is calculated
on the current MFCC analysis to the one stored against either the first
or second template. The lower the number \, the more similar it is.
, f 39;
, f 56;
#X obj 120 520 bng 20 250 50 0 empty empty empty 17 7 0 10 #00ff04
#000000 #000000;
#X obj 224 520 bng 20 250 50 0 empty empty empty 17 7 0 10 #00faff
Expand All @@ -603,13 +605,16 @@ define a 2nd template., f 27;
#A 0 104.169 -21.8773 -29.2162 -41.9118 3.29888 -17.1992 -9.68277 -10.0256
-12.7667 -13.0661 -10.964 -9.6955 -12.0402;
#X coords 0 150 13 -150 240 63 1 0 0;
#X restore 273 669 graph;
#X restore 428 675 graph;
#X obj 47 429 array set help.mfcc.timbral.display;
#X obj 89 657 hradio 25 1 0 2 empty empty empty 0 -8 0 10 #fcfcfc #000000
#000000 0;
#X obj 17 602 >, f 30;
#X msg 79 275 stop;
#X msg 275 274 stop;
#X obj 85 700 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 85 698 3) see which is the nearest;
#X connect 2 0 6 0;
#X connect 3 0 7 0;
#X connect 4 0 6 1;
Expand Down
24 changes: 14 additions & 10 deletions help/fluid.mlpregressor-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ Perception neural network.;
#X obj 405 648 fluid.dataset help.mlpreg.predict;
#X obj 326 855 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X text 346 852 store dataset into a text object;
#X text 514 917 <- double-click 'text' to see data, f 17;
#X obj 326 880 fluid.ds2text help.mlpreg.predict help.mlpreg.predict.text
, f 33;
#X msg 470 422 predict help.mlpreg.query help.mlpreg.predict, f 29
Expand Down Expand Up @@ -250,6 +248,12 @@ f 31;
#X obj 481 976 cnv 15 192 50 empty empty More\\\ information 4 10 0
13 #e0e0e0 #404040 0;
#X obj 483 1003 note_on_automatic_datasets;
#X obj 347 853 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 523 925 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 346 852 4) store dataset into a text object;
#X text 503 923 <- 5) double-click 'text' to see data, f 19;
#X connect 4 0 5 0;
#X connect 4 0 6 0;
#X connect 4 0 7 0;
Expand All @@ -259,11 +263,11 @@ f 31;
#X connect 8 0 12 0;
#X connect 9 0 13 0;
#X connect 10 0 16 0;
#X connect 19 0 43 0;
#X connect 20 0 43 0;
#X connect 22 0 25 0;
#X connect 26 0 43 0;
#X connect 34 0 21 0;
#X connect 37 0 38 0;
#X connect 37 1 34 0;
#X connect 43 0 37 0;
#X connect 19 0 41 0;
#X connect 20 0 41 0;
#X connect 22 0 23 0;
#X connect 24 0 41 0;
#X connect 32 0 21 0;
#X connect 35 0 36 0;
#X connect 35 1 32 0;
#X connect 41 0 35 0;
74 changes: 42 additions & 32 deletions help/fluid.multiarray-help.pd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#N canvas 0 43 700 790 12;
#N canvas 82 79 700 790 12;
#X obj 17 13 cnv 15 660 42 empty empty fluid.multiarray 1 22 0 36 #4ba3fb
#ffffff 0;
#X obj 509 60 fluid.referencelauncher fluid.multiarray.html reference/multiarray/
Expand All @@ -20,8 +20,7 @@
#X obj 245 508 array set;
#X msg 245 443 1 1.1 1.2 1.3 1.4;
#X obj 245 402 t b b, f 9;
#X text 25 426 list of values to store;
#X text 252 426 list of values to store;
#X text 25 424 list of values to store;
#X msg 17 442 0 0.1 0.2 0.3 0.4;
#X text 17 164 This abstraction allows the creation of multichannel
arrays. Note that it requires invoking with the clone object to work.
Expand All @@ -33,44 +32,55 @@ arrays. Note that it requires invoking with the clone object to work.
#000000 #000000;
#X obj 473 508 array set;
#X obj 473 402 t b b, f 9;
#X text 482 426 list of values to store;
#X msg 473 443 2 2.1 2.2 2.3 2.4;
#X obj 23 233 clone fluid.multiarray 3 myArray 5;
#X msg 68 483 symbol myArray-0;
#X msg 296 484 symbol myArray-1;
#X msg 524 484 symbol myArray-2;
#X msg 81 481 symbol myArray-0;
#X msg 309 483 symbol myArray-1;
#X msg 540 476 symbol myArray-2;
#X obj 473 605 array get myArray-2;
#X obj 245 605 array get myArray-1;
#X obj 17 605 array get myArray-0;
#X text 36 375 put values in channel 0;
#X text 264 376 put values in channel 1;
#X text 494 376 put values in channel 2;
#X text 36 574 see stored values channel 0;
#X text 272 234 create 3-channel array of 5 elements 'myArray';
#X text 263 573 see stored values in ch 1;
#X text 491 573 see stored values in ch 2;
#X obj 453 692 cnv 15 220 70 empty empty More\ information 4 10 0 13
#e0e0e0 #404040 0;
#X obj 453 692 cnv 15 220 70 empty empty More\\\ information 4 10 0
13 #e0e0e0 #404040 0;
#X obj 461 713 note_on_multiarrays;
#X obj 461 737 note_on_automatic_multiarrays;
#X obj 34 375 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 263 376 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 490 376 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 35 575 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 263 575 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 491 575 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 34 374 1) put values in channel 0;
#X text 263 375 2) put values in channel 1;
#X text 490 374 3) put values in channel 2;
#X text 36 574 4) see values in channel 0;
#X text 263 573 5) see values in ch 1;
#X text 491 573 6) see values in ch 2;
#X connect 3 0 9 0;
#X connect 6 0 31 0;
#X connect 8 0 30 0;
#X connect 9 0 16 0;
#X connect 9 1 26 0;
#X connect 6 0 29 0;
#X connect 8 0 28 0;
#X connect 9 0 15 0;
#X connect 9 1 24 0;
#X connect 10 0 13 0;
#X connect 12 0 11 0;
#X connect 13 0 12 0;
#X connect 13 1 27 0;
#X connect 16 0 4 0;
#X connect 19 0 29 0;
#X connect 20 0 22 0;
#X connect 22 0 24 0;
#X connect 22 1 28 0;
#X connect 24 0 21 0;
#X connect 26 0 4 2;
#X connect 27 0 11 2;
#X connect 28 0 21 2;
#X connect 29 0 18 0;
#X connect 30 0 7 0;
#X connect 31 0 5 0;
#X connect 13 1 25 0;
#X connect 15 0 4 0;
#X connect 18 0 27 0;
#X connect 19 0 21 0;
#X connect 21 0 22 0;
#X connect 21 1 26 0;
#X connect 22 0 20 0;
#X connect 24 0 4 2;
#X connect 25 0 11 2;
#X connect 26 0 20 2;
#X connect 27 0 17 0;
#X connect 28 0 7 0;
#X connect 29 0 5 0;
39 changes: 21 additions & 18 deletions help/fluid.nmfmatch~-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ component, f 33;
#X obj 19 705 fluid.out~ nmfmatchhelp;
#X obj 470 805 cnv 15 207 88 empty empty More\\\ information 4 10 0
13 #e0e0e0 #404040 0;
#N canvas 187 74 695 855 detecting_knowns 0;
#N canvas 187 74 695 841 detecting_knowns 0;
#X obj 17 13 cnv 15 660 42 empty empty fluid.nmfmatch~ 1 22 0 36 #4ba3fb
#ffffff 0;
#X text 18 88 Helping fluid.nmfmatch~ discover known "features" by
Expand Down Expand Up @@ -151,7 +151,7 @@ state \, the contents of the decomposition will be vaguely similar
#X connect 26 0 27 0;
#X connect 26 1 28 0;
#X restore 473 825 pd detecting_knowns;
#N canvas 283 88 703 816 controlling_a_comb_filter 0;
#N canvas 283 88 703 810 controlling_a_comb_filter 0;
#X obj 17 13 cnv 15 660 42 empty empty fluid.nmfmatch~ 1 22 0 36 #4ba3fb
#ffffff 0;
#X text 18 88 control a compressor based on learned components, f
Expand Down Expand Up @@ -331,7 +331,7 @@ is being used to drive the delay time of the comb filter, f 41;
#X connect 26 0 27 1;
#X connect 28 0 25 0;
#X restore 473 847 pd controlling_a_comb_filter;
#N canvas 876 23 785 861 resonant_filters 0;
#N canvas 157 84 693 798 resonant_filters 0;
#X obj 17 13 cnv 15 660 42 empty empty fluid.nmfmatch~ 1 22 0 36 #4ba3fb
#ffffff 0;
#X text 18 88 Make a filter bank from learned components, f 69;
Expand All @@ -350,7 +350,6 @@ is being used to drive the delay time of the comb filter, f 41;
#X obj 17 743 fluid.out~ nmfmatchhelp;
#X obj 36 433 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 36 432 2) play the source;
#X msg 16 197 read -resize media/Tremblay-CEL-GlitchyMusicBoxMelo.wav
help.nmfmatch.src.4, f 37;
#X obj 17 453 tabplay~ help.nmfmatch.src.4;
Expand All @@ -375,8 +374,8 @@ help.nmfmatch.src.4, f 37;
#X obj 96 384 s help.nmfmatch.componentcentroids;
#X obj 446 514 s help.nmfmatch.componentcentroids;
#X obj 107 497 fluid.nmfmatch~ 8 -bases help.nmfmatch.bases.4;
#X obj 383 118 clone fluid.multiarray 2 help.nmfmatch.resynth.4;
#X obj 383 140 clone fluid.multiarray 2 help.nmfmatch.bases.4;
#X obj 331 726 clone fluid.multiarray 2 help.nmfmatch.resynth.4;
#X obj 331 748 clone fluid.multiarray 2 help.nmfmatch.bases.4;
#X obj 101 587 clone fluid.nmfmatch.polyfilter 8;
#N canvas 63 101 338 195 sum 0;
#X obj 54 39 inlet~;
Expand All @@ -389,19 +388,20 @@ help.nmfmatch.src.4, f 37;
#X restore 17 687 pd sum;
#X f 12;
#X obj 107 521 fluid.stats 8 -history 5;
#X connect 6 0 11 0;
#X connect 7 0 12 0;
#X connect 11 0 3 0;
#X connect 12 0 20 0;
#X connect 12 0 23 0;
#X connect 12 0 24 0;
#X connect 14 0 16 0;
#X text 36 432 3) play the source;
#X connect 6 0 10 0;
#X connect 7 0 11 0;
#X connect 10 0 3 0;
#X connect 11 0 19 0;
#X connect 11 0 22 0;
#X connect 11 0 23 0;
#X connect 13 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 20 0 25 0;
#X connect 23 0 24 1;
#X connect 24 0 8 0;
#X connect 24 0 8 1;
#X connect 19 0 24 0;
#X connect 22 0 23 1;
#X connect 23 0 8 0;
#X connect 23 0 8 1;
#X restore 473 869 pd resonant_filters;
#N canvas 0 22 450 278 (subpatch) 0;
#X array help.nmfmatch.src.1 88200 float 0;
Expand Down Expand Up @@ -492,6 +492,9 @@ with bufnmf~, f 74;
#X obj 19 367 fluid.bufnmf -source help.nmfmatch.src.1 -bases nmfmatch_bases
-components 2, f 72;
#X obj 144 624 fluid.nmfmatch~ 2 -bases nmfmatch_bases;
#X obj 128 543 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 129 542 3) pick the audio source to identify, f 24;
#X connect 3 0 35 0;
#X connect 4 0 6 0;
#X connect 5 0 8 0;
Expand Down
26 changes: 18 additions & 8 deletions help/fluid.nmfmorph~-help.pd
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ help.morph.src.2, f 37;
#X obj 37 177 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000;
#X text 57 176 1) load sounds;
#X obj 126 612 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc
#X obj 70 570 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 #fcfcfc
#000000 #000000 0 1;
#X obj 123 586 cnv 15 75 17 empty empty Interpolate 3 12 1 14 #dfdfdf
#X obj 67 544 cnv 15 75 17 empty empty Interpolate 3 12 1 14 #dfdfdf
#0400ff 0;
#X floatatom 370 313 5 0 0 0 - - - 0;
#X floatatom 370 392 5 0 0 0 - - - 0;
Expand All @@ -59,16 +59,26 @@ sounds decompose their material into a selectable number of components
-activations help.morph.act.2 -components 5 -blocking 0, f 48;
#X obj 37 681 fluid.nmfmorph~ -source help.morph.bases.1 -target help.morph.bases.2
-activations help.morph.act.1;
#X msg 123 634 interpolation \$1;
#X msg 67 592 interpolation \$1;
#X text 404 680 note: to trigger mapping changes \, change autoassign.
, f 29;
#X msg 51 553 activations help.morph.act.2 \, interpolation 0 \, autoassign
#X msg 126 650 activations help.morph.act.2 \, interpolation 0 \, autoassign
0;
#X text 39 471 set the temporal shape to the drums;
#X text 53 531 set temporal shape to the piano;
#X obj 526 793 cnv 15 149 50 empty empty More\ information 4 10 0 13
#e0e0e0 #404040 0;
#X obj 526 793 cnv 15 149 50 empty empty More\\\ information 4 10 0
13 #e0e0e0 #404040 0;
#X obj 534 817 note_on_multiarrays;
#X obj 59 238 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 38 472 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X obj 147 545 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 59 238 2) decompose each sound in 2 bases via bufnmf;
#X text 148 544 5) play with the interpolation ratio;
#X text 39 471 3) set the temporal shape to the drums;
#X obj 130 629 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 131 628 6) try setting the temporal shape to the piano's;
#X connect 3 0 24 0;
#X connect 4 0 26 0;
#X connect 5 0 7 0;
Expand Down
17 changes: 14 additions & 3 deletions help/fluid.noveltyfeature~-help.pd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#N canvas 126 23 700 777 12;
#N canvas 126 23 693 777 12;
#X obj 17 13 cnv 15 660 42 empty empty fluid.noveltyfeature~ 1 22 0
36 #4ba3fb #ffffff 0;
#X obj 23 149 fluid.demosound~;
Expand Down Expand Up @@ -154,10 +154,21 @@ curve, f 29;
#X text 601 374 <-- more;
#X obj 53 400 fluid.noveltyslice~ 21 5;
#X obj 315 425 fluid.noveltyfeature~ 21 5 -warnings 1;
#X text 23 734 This represents the change in the underlying feature
of fluid.noveltyslice~ in realtime., f 44;
#X text 373 447 arguments (optional) set the maxkernelsize and maxfiltersize
, f 31;
#X obj 27 128 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 28 127 1) pick a source and start playing;
#X obj 96 525 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 97 524 2) Audio on.;
#X obj 563 266 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 564 265 4) explore the parameters, f 14;
#X obj 30 731 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040
0;
#X text 31 730 3) This represents the change in the underlying feature
of fluid.noveltyslice~ in realtime.;
#X connect 1 0 10 0;
#X connect 1 0 14 0;
#X connect 1 0 15 0;
Expand Down
Loading

0 comments on commit 872382a

Please sign in to comment.