Debian Codegraph @

embedded/puredata/pyo~-help.pd

raw
1 #N canvas 82 83 935 383 10;
2 #X obj 28 118 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
3 -1;
4 #X obj 144 118 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
5 1;
6 #X obj 13 244 *~;
7 #X obj 51 244 *~;
8 #X obj 13 266 dac~;
9 #X obj 72 223 hsl 128 15 0 1 0 1 empty empty master_gain -2 -8 0 10
10 -262144 -1 -1 9000 1;
11 #X obj 274 233 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
12 1;
13 #X msg 274 253 \; pd dsp \$1;
14 #X obj 13 69 r msg_to_pyo;
15 #X text 161 117 play;
16 #X obj 13 176 pyo~ 2;
17 #X text 66 178 argument sets the number of audio ins/outs (defaults
18 to 2).;
19 #N canvas 596 170 824 583 resonators_example 0;
20 #X obj 35 103 hsl 128 15 0.01 30 1 0 empty empty resonance -2 -8 0
21 10 -262144 -1 -1 11100 0;
22 #X floatatom 32 120 5 0 0 0 - - -;
23 #X obj 21 530 s msg_to_pyo;
24 #X obj 98 387 hsl 128 15 0 1 0 0 empty empty delay_time -2 -8 0 10
25 -262144 -1 -1 3100 0;
26 #X floatatom 95 403 5 0 0 0 - - -;
27 #X msg 95 418 value deltime \$1;
28 #X obj 111 454 hsl 128 15 0 1 0 0 empty empty delay_feedback -2 -8
29 0 10 -262144 -1 -1 10900 0;
30 #X floatatom 108 470 5 0 0 0 - - -;
31 #X msg 108 485 value delfeed \$1;
32 #X msg 32 136 value reson \$1;
33 #X obj 52 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
34 -1 -1 2600 0;
35 #X obj 71 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
36 -1 -1 3500 0;
37 #X obj 91 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
38 -1 -1 2000 0;
39 #X obj 110 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
40 -1 -1 5700 0;
41 #X obj 130 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
42 -1 -1 4800 0;
43 #X obj 149 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
44 -1 -1 6300 0;
45 #X obj 169 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
46 -1 -1 1400 0;
47 #X obj 189 177 vsl 15 80 50 500 0 0 empty empty empty 0 -9 0 10 -262144
48 -1 -1 700 0;
49 #X msg 52 306 value freqs \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8;
50 #X obj 52 264 bondo 8 ____________;
51 #X obj 52 285 pack f f f f f f f f;
52 #X msg 21 66 read examples/resonators.py;
53 #X msg 73 351 read -a examples/resonators_add_delays.py;
54 #X text 52 159 resonator frequencies;
55 #X text 20 30 load pyo processing file (audio signal must be given
56 in pyo~ inputs).;
57 #X text 168 103 adjust resonance in seconds;
58 #X text 214 209 play with resonator frequencies;
59 #X text 337 352 add a stereo delay taking resonator outputs as its
60 input;
61 #X text 234 387 adjust delay time;
62 #X text 246 453 adjust delay feedback;
63 #X connect 0 0 1 0;
64 #X connect 1 0 9 0;
65 #X connect 3 0 4 0;
66 #X connect 4 0 5 0;
67 #X connect 5 0 2 0;
68 #X connect 6 0 7 0;
69 #X connect 7 0 8 0;
70 #X connect 8 0 2 0;
71 #X connect 9 0 2 0;
72 #X connect 10 0 19 0;
73 #X connect 11 0 19 1;
74 #X connect 12 0 19 2;
75 #X connect 13 0 19 3;
76 #X connect 14 0 19 4;
77 #X connect 15 0 19 5;
78 #X connect 16 0 19 6;
79 #X connect 17 0 19 7;
80 #X connect 18 0 2 0;
81 #X connect 19 0 20 0;
82 #X connect 19 1 20 1;
83 #X connect 19 2 20 2;
84 #X connect 19 3 20 3;
85 #X connect 19 4 20 4;
86 #X connect 19 5 20 5;
87 #X connect 19 6 20 6;
88 #X connect 19 7 20 7;
89 #X connect 20 0 18 0;
90 #X connect 21 0 2 0;
91 #X connect 22 0 2 0;
92 #X restore 531 36 pd resonators_example;
93 #X msg 553 171 clear;
94 #X obj 531 199 s msg_to_pyo;
95 #X text 598 172 shutdown and reboot the server;
96 #N canvas 3 83 450 300 synthesis_example 0;
97 #N canvas 1 75 375 358 choose_sines 0;
98 #X obj 57 77 metro 125;
99 #X obj 78 109 hsl 128 15 0 36 0 0 empty empty empty -2 -8 0 10 -262144
100 -1 -1 4233 1;
101 #X obj 127 144 hsl 128 15 0 36 0 0 empty empty empty -2 -8 0 10 -262144
102 -1 -1 4233 1;
103 #X floatatom 75 125 5 0 0 0 - - -;
104 #X floatatom 124 160 5 0 0 0 - - -;
105 #X obj 124 209 +;
106 #X obj 124 179 t b f;
107 #X obj 75 144 t f f;
108 #X obj 57 240 int;
109 #X obj 124 232 int;
110 #X msg 57 288 call choose \$1 \$2;
111 #X obj 57 311 outlet;
112 #X obj 57 54 inlet;
113 #X obj 57 265 pack 24 24;
114 #X text 7 3 Choose a random midi pitch between x and x+y;
115 #X text 213 109 x;
116 #X text 263 142 y;
117 #X obj 224 42 loadbang;
118 #X msg 224 64 12;
119 #X obj 117 54 inlet speed;
120 #X connect 0 0 8 0;
121 #X connect 1 0 3 0;
122 #X connect 2 0 4 0;
123 #X connect 3 0 7 0;
124 #X connect 4 0 6 0;
125 #X connect 5 0 9 0;
126 #X connect 6 0 5 0;
127 #X connect 6 1 5 1;
128 #X connect 7 0 8 1;
129 #X connect 7 1 5 0;
130 #X connect 8 0 13 0;
131 #X connect 9 0 13 1;
132 #X connect 10 0 11 0;
133 #X connect 12 0 0 0;
134 #X connect 13 0 10 0;
135 #X connect 17 0 18 0;
136 #X connect 18 0 1 0;
137 #X connect 18 0 2 0;
138 #X connect 19 0 0 1;
139 #X restore 53 130 pd choose_sines;
140 #X obj 41 246 s msg_to_pyo;
141 #X obj 53 96 tgl 25 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1
142 ;
143 #X obj 67 172 hsl 128 15 0 0.25 0 0 empty empty brightness -2 -8 0
144 10 -262144 -1 -1 8600 0;
145 #X floatatom 64 188 5 0 0 0 - - -;
146 #X msg 64 203 value feed \$1;
147 #X obj 158 75 hsl 128 15 50 500 0 0 empty empty metro_speed -2 -8 0
148 10 -262144 -1 -1 1800 1;
149 #X floatatom 155 93 5 0 0 0 - - -;
150 #X floatatom 222 186 5 0 0 0 - - -;
151 #X msg 222 216 set amp.fadeout \$1;
152 #X msg 281 184 set amp.dur \$1;
153 #X floatatom 281 165 5 0 0 0 - - -;
154 #X obj 222 132 * 0.001;
155 #X obj 221 111 - 20;
156 #X obj 222 165 - 0.005;
157 #X msg 41 33 read -a examples/random_waves.py;
158 #X text 54 80 GO!;
159 #X connect 0 0 1 0;
160 #X connect 2 0 0 0;
161 #X connect 3 0 4 0;
162 #X connect 4 0 5 0;
163 #X connect 5 0 1 0;
164 #X connect 6 0 7 0;
165 #X connect 7 0 0 1;
166 #X connect 7 0 13 0;
167 #X connect 8 0 9 0;
168 #X connect 9 0 1 0;
169 #X connect 10 0 1 0;
170 #X connect 11 0 10 0;
171 #X connect 12 0 11 0;
172 #X connect 12 0 14 0;
173 #X connect 13 0 12 0;
174 #X connect 14 0 8 0;
175 #X connect 15 0 1 0;
176 #X restore 531 60 pd synthesis_example;
177 #N canvas 2 85 629 295 loop_soundfile 0;
178 #X obj 43 42 openpanel;
179 #X obj 43 64 t a b;
180 #X obj 43 172 soundfiler;
181 #X obj 236 80 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
182 -1;
183 #X obj 43 20 inlet open file;
184 #X obj 419 16 inlet start;
185 #X obj 236 52 sel 1;
186 #X obj 236 205 outlet~;
187 #X obj 366 163 spigot 1;
188 #X obj 43 128 pack s s s;
189 #X obj 76 86 symbol \$0-table_l;
190 #X obj 110 106 symbol \$0-table_r;
191 #X msg 43 150 read -resize \$1 \$2 \$3;
192 #X obj 44 200 table \$0-table_l;
193 #X obj 44 223 table \$0-table_r;
194 #X obj 442 206 outlet~;
195 #X obj 236 140 tabplay~ \$0-table_l;
196 #X obj 443 140 tabplay~ \$0-table_r;
197 #X connect 0 0 1 0;
198 #X connect 1 0 9 0;
199 #X connect 1 1 10 0;
200 #X connect 1 1 11 0;
201 #X connect 3 0 16 0;
202 #X connect 3 0 17 0;
203 #X connect 4 0 0 0;
204 #X connect 5 0 6 0;
205 #X connect 5 0 8 1;
206 #X connect 6 0 3 0;
207 #X connect 8 0 16 0;
208 #X connect 8 0 17 0;
209 #X connect 9 0 12 0;
210 #X connect 10 0 9 1;
211 #X connect 11 0 9 2;
212 #X connect 12 0 2 0;
213 #X connect 16 0 7 0;
214 #X connect 16 1 8 0;
215 #X connect 17 0 15 0;
216 #X restore 28 136 pd loop_soundfile;
217 #X text 44 118 load file;
218 #N canvas 302 92 532 224 conv_reverb_example 0;
219 #X obj 24 110 hsl 128 15 0 1 0 0 empty empty balance -2 -8 0 10 -262144
220 -1 -1 8400 0;
221 #X floatatom 21 127 5 0 0 0 - - -;
222 #X msg 21 143 value bal \$1;
223 #X obj -3 170 s msg_to_pyo;
224 #X msg -3 74 read examples/cvlverb.py;
225 #X text -5 38 load pyo processing file (audio signal must be given
226 in pyo~ inputs).;
227 #X text 162 110 balance between dry and wet signal;
228 #X connect 0 0 1 0;
229 #X connect 1 0 2 0;
230 #X connect 2 0 3 0;
231 #X connect 4 0 3 0;
232 #X restore 531 12 pd conv_reverb_example;
233 #X text 26 96 play a soundfile to send audio signals to pyo;
234 #N canvas 193 300 450 300 README 0;
235 #X text 14 33 Author : Olivier Belanger;
236 #X text 15 108 pyo website : http://ajaxsoundstudio.com/software/pyo/
237 ;
238 #X text 15 10 pyo~ : Embedded pyo scripting inside puredata.;
239 #X text 15 135 pyo sources : https://github.com/belangeo/pyo;
240 #X text 15 163 For more details about how pyo can be embedded inside
241 an host program \, see m_pyo.h in the "embedded" folder of pyo sources.
242 ;
243 #X text 14 57 Version : 1.0.0;
244 #X text 14 81 Last update : December 2018;
245 #X restore 406 237 pd README;
246 #N canvas 182 106 1046 508 MESSAGES 0;
247 #X text 20 53 read [-a] path/to/python/script;
248 #X text 37 74 The message "read" executes the commands contained in
249 the specified python script into the object's internal interpreter.
250 If the "-a" flag is given \, new commands will be added to previously
251 executed ones. Without the flag \, the server is shut down (this will
252 erase actual processing) before the execution of the script.;
253 #X text 18 164 value varname \$1 [\$2 \$3 ...];
254 #X text 19 250 set varname.attribute \$1 [\$2 \$3 ...];
255 #X text 19 379 call function [arg1 arg2 ...];
256 #X text 498 250 clear;
257 #X text 515 271 Shutdown and reboot pyo's server. This message will
258 erase the current processing loaded into the object.;
259 #X text 36 185 The messsage "value" sends value(s) to a pyo's Sig or
260 SigTo object (with variable name "varname"). Values can be pyo's variables
261 (already created in the loaded file) \, float or list (composed of
262 floats and/or pyo objects).;
263 #X text 36 399 The message "call" executes the function (or object's
264 method) with optional arguments. If the callable is a method \, the
265 syntax will looks like:;
266 #X text 35 439 call varname.method [arg1 arg2 ...];
267 #X text 36 351 set frequencies 100 200 300 400 500 600;
268 #X text 499 56 create varname object [\$1 \$2 ...];
269 #X text 513 75 The message "create" creates a new python object of
270 the class "object" \, stored in variable "varname" \, with optional
271 initialization arguments. Arguments can be of the form freq=500 or
272 mul=0.3 \, without spaces. Named arguments can't be followed by unamed
273 arguments.;
274 #X text 36 272 The messsage "set" sends value(s) to an attribute of
275 any pyo object (with variable name "varname"). Values can be pyo's
276 variables (already created in the loaded file) \, float or list (composed
277 of floats and/or pyo objects). This message can be used to create a
278 standard python variable like (to create a list of floats in variable
279 "frequencies"):;
280 #X text 498 312 debug \$1;
281 #X text 515 333 If \$1 is positive \, messages to pyo will be sent
282 through an Exception handler. This is safer and can help to debug messages
283 to pyo but it is slower. For a faster execution \, turn off debug mode.
284 ;
285 #X text 498 161 midi \$1 [\$2 \$3];
286 #X text 512 180 The message "midi" sends a MIDI event to the object
287 processing. Arguments are the status byte (\$1) \, the first data byte
288 (\$2) and the second data byte (\$3). Data bytes can be ommited and
289 defaults to 0;
290 #X text 7 3 Here are the messages that can be used to control the internal
291 processing of the pyo~ object.;
292 #X text 4 31 --------------------------------------------------------
293 ;
294 #X restore 406 258 pd MESSAGES;
295 #X msg 567 321 call b.out;
296 #X text 11 7 pyo~ object allows to execute processing with pyo (python
297 dsp module) inside a puredata patch \, with any number of audio in/out
298 channels.;
299 #X obj 531 121 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
300 1;
301 #X msg 531 144 debug \$1;
302 #X text 549 113 Verbose mode. If on \, error messages from pyo will
303 be printed to the Pd window.;
304 #X obj 532 347 s msg_to_pyo;
305 #X msg 567 258 set pits 0.001 0.002 0.003 0.004;
306 #X msg 567 279 create fr Rossler pitch=pits chaos=0.9 mul=250 add=500
307 ;
308 #X msg 567 300 create b SumOsc freq=fr ratio=0.499 index=0.4 mul=0.2
309 ;
310 #N canvas 669 129 722 427 midi_synth_example 0;
311 #X obj 34 365 s msg_to_pyo;
312 #X msg 34 56 read examples/midi_synth.py;
313 #X msg 97 108 midi 144 72 127;
314 #X obj 129 172 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
315 -1 -1 0 1;
316 #X msg 126 195 midi 176 1 \$1;
317 #X obj 448 43 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
318 1;
319 #X obj 448 63 metro 125;
320 #X obj 448 249 makenote 127 100;
321 #X obj 448 271 pack;
322 #X msg 448 293 midi 144 \$1 \$2;
323 #X msg 111 130 midi 144 72 0;
324 #X text 212 108 note on;
325 #X text 213 131 note off;
326 #X text 228 196 control change (mod wheel);
327 #X floatatom 448 228 5 0 0 0 - - -;
328 #X obj 448 183 int;
329 #X obj 448 161 + 0.5;
330 #X obj 448 139 * 1.76;
331 #X obj 448 115 random 8;
332 #X obj 448 85 t b b;
333 #X obj 526 115 random 3;
334 #X obj 526 137 + 5;
335 #X obj 526 159 * 12;
336 #X obj 448 206 +;
337 #X text 467 43 random melody;
338 #X connect 1 0 0 0;
339 #X connect 2 0 0 0;
340 #X connect 3 0 4 0;
341 #X connect 4 0 0 0;
342 #X connect 5 0 6 0;
343 #X connect 6 0 19 0;
344 #X connect 7 0 8 0;
345 #X connect 7 1 8 1;
346 #X connect 8 0 9 0;
347 #X connect 9 0 0 0;
348 #X connect 10 0 0 0;
349 #X connect 14 0 7 0;
350 #X connect 15 0 23 0;
351 #X connect 16 0 15 0;
352 #X connect 17 0 16 0;
353 #X connect 18 0 17 0;
354 #X connect 19 0 18 0;
355 #X connect 19 1 20 0;
356 #X connect 20 0 21 0;
357 #X connect 21 0 22 0;
358 #X connect 22 0 23 1;
359 #X connect 23 0 14 0;
360 #X restore 531 84 pd midi_synth_example;
361 #X text 563 238 Create a pyo script from scratch!;
362 #X connect 0 0 17 0;
363 #X connect 1 0 17 1;
364 #X connect 2 0 4 0;
365 #X connect 3 0 4 1;
366 #X connect 5 0 3 1;
367 #X connect 5 0 2 1;
368 #X connect 6 0 7 0;
369 #X connect 8 0 10 0;
370 #X connect 10 0 2 0;
371 #X connect 10 1 3 0;
372 #X connect 13 0 14 0;
373 #X connect 17 0 10 0;
374 #X connect 17 1 10 1;
375 #X connect 23 0 28 0;
376 #X connect 25 0 26 0;
377 #X connect 26 0 14 0;
378 #X connect 29 0 28 0;
379 #X connect 30 0 28 0;
380 #X connect 31 0 28 0;