Skip to content

Commit c5dc760

Browse files
MattS6464tremblap
andauthored
Translated the max tutorials to Pd (#92)
* Regression tutorial translated from max * classification tutorial translated from max * renamed folder * corrected patches --------- Co-authored-by: tremblap <info@pierrealexandretremblay.com>
1 parent c77e5e2 commit c5dc760

File tree

2 files changed

+454
-0
lines changed

2 files changed

+454
-0
lines changed
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
#N canvas 77 57 1111 662 12;
2+
#X obj 18 423 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
3+
#X obj 18 447 f;
4+
#X obj 54 446 + 1;
5+
#X msg 18 515 addpoint \$1 timbrebuf;
6+
#X msg 197 515 addlabel \$1 \$2;
7+
#X obj 18 539 fluid.dataset timbredata;
8+
#X obj 197 539 fluid.labelset instrlabels;
9+
#X msg 325 515 clear;
10+
#X msg 377 515 print;
11+
#X obj 20 141 +~, f 17;
12+
#X obj 20 247 dac~;
13+
#X obj 98 166 fluid.mfcc~ -startcoeff 1;
14+
#N canvas 0 22 450 278 (subpatch) 0;
15+
#X array timbrebuf 13 float 2;
16+
#X coords 0 50 13 -50 160 143 1 0 0;
17+
#X restore 244 201 graph;
18+
#X msg 98 190 \; timbrebuf 0 \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9 \$10 \$11 \$12 \$13, f 18;
19+
#X obj 509 166 fluid.loudness~;
20+
#X msg 509 190 \$1;
21+
#X obj 509 214 > -30;
22+
#X obj 652 220 vradio 19 1 0 2 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0;
23+
#X obj 651 311 *, f 8;
24+
#X text 670 219 -Adding examples to the dataset & labelset;
25+
#X text 671 239 -Making predictions;
26+
#X obj 651 383 metro 50;
27+
#X msg 651 407 predictpoint timbrebuf;
28+
#X msg 819 407 fit timbredata instrlabels;
29+
#X msg 1014 407 clear;
30+
#X obj 651 497 route predictpoint fit;
31+
#X obj 523 577 tgl 19 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
32+
#X obj 651 431 fluid.mlpclassifier -activation 1 -learnrate 0.05 -maxiter 1000, f 21;
33+
#X msg 250 434 symbol trombone;
34+
#X msg 278 457 symbol oboe;
35+
#X obj 197 485 pack f s;
36+
#X obj 651 554 list;
37+
#X listbox 651 578 20 0 0 0 - - - 0;
38+
#X obj 726 523 list;
39+
#X listbox 726 547 20 0 0 0 - - - 0;
40+
#X obj 486 21 cnv 19 200 30 empty empty Classification 15 15 0 20 #00faff #ffffff 0;
41+
#X obj 79 3 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
42+
#X msg 663 98 \; pd dsp \$1;
43+
#X obj 663 71 tgl 19 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000 0 1;
44+
#X obj 686 74 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
45+
#X text 686 72 1) turn audio on;
46+
#X obj 231 403 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
47+
#X text 231 401 3) select the sound currently being played, f 23;
48+
#X obj 14 349 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
49+
#X text 14 347 4)click multiple times to add examples ensuring you don't click during silence. Repeat steps 2 to 4 for the other sound., f 28;
50+
#X text 44 422 <---;
51+
#X obj 825 349 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
52+
#X text 825 347 5) click to teach mlpclassifier \, repeat to get as close to zero error as possible, f 22;
53+
#X text 872 546 error;
54+
#X text 793 577 class;
55+
#X text 544 577 silence;
56+
#X obj 741 161 cnv 15 15 15 empty empty empty 20 12 0 14 #c6ffc7 #404040 0;
57+
#X text 741 159 6) switch to making predictions and play the different sounds to see the results, f 26;
58+
#X obj 652 165 loadbang;
59+
#X msg 652 189 0;
60+
#X text 79 1 2) play a sound (make sure you stop one before playing the other), f 34;
61+
#X obj 20 111 readsf~;
62+
#X obj 220 111 readsf~;
63+
#X msg 220 58 open ./media/Olencki-TenTromboneLongTones-M.wav \, 1, f 24;
64+
#X msg 82 111 stop;
65+
#X msg 278 110 stop;
66+
#X msg 20 58 open ./media/Harker-DS-TenOboeMultiphonics-M.wav \, 1, f 23;
67+
#X obj 20 34 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
68+
#X obj 220 34 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
69+
#X obj 523 383 expr 1 - $f1;
70+
#X connect 0 0 1 0;
71+
#X connect 1 0 2 0;
72+
#X connect 1 0 3 0;
73+
#X connect 1 0 30 0;
74+
#X connect 2 0 1 1;
75+
#X connect 3 0 5 0;
76+
#X connect 4 0 6 0;
77+
#X connect 7 0 6 0;
78+
#X connect 7 0 5 0;
79+
#X connect 8 0 6 0;
80+
#X connect 8 0 5 0;
81+
#X connect 9 0 10 0;
82+
#X connect 9 0 10 1;
83+
#X connect 9 0 11 0;
84+
#X connect 9 0 14 0;
85+
#X connect 11 0 13 0;
86+
#X connect 14 0 15 0;
87+
#X connect 15 0 16 0;
88+
#X connect 16 0 18 0;
89+
#X connect 17 0 18 1;
90+
#X connect 18 0 21 0;
91+
#X connect 18 0 64 0;
92+
#X connect 21 0 22 0;
93+
#X connect 22 0 27 0;
94+
#X connect 23 0 27 0;
95+
#X connect 24 0 27 0;
96+
#X connect 25 0 31 0;
97+
#X connect 25 1 33 0;
98+
#X connect 27 0 25 0;
99+
#X connect 28 0 30 1;
100+
#X connect 29 0 30 1;
101+
#X connect 30 0 4 0;
102+
#X connect 31 0 32 0;
103+
#X connect 33 0 34 0;
104+
#X connect 38 0 37 0;
105+
#X connect 53 0 54 0;
106+
#X connect 54 0 17 0;
107+
#X connect 56 0 9 0;
108+
#X connect 57 0 9 1;
109+
#X connect 58 0 57 0;
110+
#X connect 59 0 56 0;
111+
#X connect 60 0 57 0;
112+
#X connect 61 0 56 0;
113+
#X connect 62 0 61 0;
114+
#X connect 63 0 58 0;
115+
#X connect 64 0 26 0;

0 commit comments

Comments
 (0)