-
Notifications
You must be signed in to change notification settings - Fork 6
/
08a-socket_audio.pd
132 lines (132 loc) · 3.67 KB
/
08a-socket_audio.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
#N canvas 1041 173 523 759 10;
#X obj 25 688 dac~;
#X obj 24 461 vline~;
#N canvas 0 50 450 300 sample 0;
#N canvas 0 50 450 300 (subpatch) 0;
#X array \$0-soundfile 214599 float 2;
#X coords 0 1 214599 -1 200 140 1;
#X restore 17 27 graph;
#X restore 25 339 pd sample;
#X obj 24 412 *;
#X msg 24 434 \$1 50;
#X obj 27 371 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X text 86 341 Storage for the sample;
#X msg 97 435 0 \, 214599 4470.81 \;;
#N canvas 762 173 450 300 laden 0;
#X obj 24 164 outlet;
#X obj 24 67 pack f f;
#X obj 24 90 trigger list bang bang;
#X msg 88 127 addcomma;
#X msg 24 126 add \$2 \$1;
#X obj 24 17 r \$0-miliseconds;
#X obj 69 42 r \$0-samples;
#X msg 153 127 set 0;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 2 1 3 0;
#X connect 2 2 7 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 1 0;
#X connect 6 0 1 1;
#X connect 7 0 0 0;
#X restore 97 410 pd laden;
#X obj 132 198 openpanel;
#X obj 132 180 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 132 247 t s s;
#X obj 24 280 makefilename %s.aiff;
#X obj 238 662 netsend;
#X msg 249 610 connect localhost 3001;
#X msg 238 279 send file \$1;
#X obj 52 509 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 52 529 metro 20;
#X obj 52 551 snapshot~;
#X obj 52 591 /;
#X msg 257 633 disconnect;
#X obj 52 612 change;
#X msg 52 632 send frame \$1;
#X obj 25 660 tabread4~ \$0-soundfile;
#X obj 67 571 r \$0-samples;
#X obj 39 390 r \$0-samples;
#X obj 52 487 loadbang;
#X obj 238 684 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 10 14 cnv 15 480 60 empty empty Socket_communication_AUDIO 20
30 0 20 -262130 -99865 0;
#X text 232 220 part of iemlib;
#N canvas 0 50 450 300 loading_sample 0;
#X obj -210 14 inlet;
#X obj -210 133 soundfiler;
#X obj -210 197 / 48;
#X obj -210 155 t f f;
#X obj -183 177 s \$0-samples;
#X obj -210 217 s \$0-miliseconds;
#X obj -210 42 t a b;
#X obj -183 62 symbol \$0-soundfile;
#X obj -210 85 pack s s;
#X msg -210 108 read -resize \$1 \$2;
#X connect 0 0 6 0;
#X connect 1 0 3 0;
#X connect 2 0 5 0;
#X connect 3 0 2 0;
#X connect 3 1 4 0;
#X connect 6 0 8 0;
#X connect 6 1 7 0;
#X connect 7 0 8 1;
#X connect 8 0 9 0;
#X connect 9 0 1 0;
#X restore 24 303 pd loading_sample;
#X text 257 684 indicates connection;
#X text 152 179 load audio and video files;
#X text 21 144 (In the other instance open 08b-socket-video.pd);
#X obj 414 610 cnv 15 20 20 empty empty 1 6 10 0 14 -261234 -66577
0;
#X obj 1 368 cnv 15 20 20 empty empty 4 6 10 0 14 -261234 -66577 0
;
#X obj 74 434 cnv 15 20 20 empty empty 4 6 10 0 14 -261234 -66577 0
;
#X obj 107 177 cnv 15 20 20 empty empty 3 6 10 0 14 -261234 -66577
0;
#N canvas 336 214 264 198 init 0;
#X obj 27 46 loadbang;
#X msg 26 69 \; pd dsp 1;
#X obj 27 23 iemlib/iemlib2;
#X connect 0 0 1 0;
#X restore 445 77 pd init;
#X text 21 86 For better performance and less audio-dropouts use this
technique. Two instances of Pd handle audio and video separately.;
#X text 21 130 Open a second Pd and connect via network socket.;
#X obj 132 220 splitfilename .;
#X text 18 722 Max Neupert - Bauhaus-Universität Weimar 2009-2018
;
#X connect 1 0 18 0;
#X connect 1 0 23 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 3 0;
#X connect 7 0 1 0;
#X connect 8 0 7 0;
#X connect 9 0 41 0;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 11 1 15 0;
#X connect 12 0 30 0;
#X connect 13 0 27 0;
#X connect 14 0 13 0;
#X connect 15 0 13 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 19 0;
#X connect 19 0 21 0;
#X connect 20 0 13 0;
#X connect 21 0 22 0;
#X connect 22 0 13 0;
#X connect 23 0 0 0;
#X connect 23 0 0 1;
#X connect 24 0 19 1;
#X connect 25 0 3 1;
#X connect 26 0 16 0;
#X connect 41 0 11 0;