#N canvas 100 22 1055 654 12; #X obj 13 9 cnv 15 600 100 empty empty DIO_BANG_WORKSHOP_ROMA_04_07 10 12 1 14 -233017 -62784 0; #X obj 12 241 cnv 15 600 30 empty empty Base 10 15 1 14 -233017 -62784 0; #N canvas 248 23 657 515 BASE 0; #X obj 20 248 print; #X obj 9 83 cnv 15 600 40 empty empty empty 10 15 1 14 -261681 -62784 0; #X obj 13 303 cnv 15 600 20 empty empty Exercice 5 10 1 12 -260818 -1 0; #X text 16 392 - En mode edit \, on peut modifier le contenu de la boite message.; #X text 16 331 - En cliquant en mode action sur la boite message \, on envoie le message dans l'objet print qui l'affiche dans la fenetre de sortie.; #X text 20 83 * ctl + e (PC) o command + e (MAC): si passa fra edit mode (cursore a forma di mano) e action mode (cursore a freccia); #X obj 9 4 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 17 37 Prima di tutto il saper passare dalla modalità edit a quella azione; #X msg 20 150 vogliamo il denaro!!!!; #X text 259 151 <= questo è un messaggio (ctl+2); #X text 29 202 <= questo è un filo di connessione; #X text 80 249 <= questo è un oggetto; #X connect 8 0 0 0; #X restore 12 276 pd BASE; #X obj 12 361 cnv 15 600 30 empty empty Tipi_di_dati 10 15 1 14 -233017 -62784 0; #N canvas 204 51 893 662 SELECT 0; #X obj 14 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 320 12 0.PATCHS_COURS.pd; #X obj 14 42 cnv 15 600 30 empty empty Select 10 15 1 14 -233017 -62784 0; #X obj 19 122 select; #X obj 91 123 sel; #X text 80 124 =; #X obj 220 167 sel 40; #X msg 182 122 40; #X msg 220 123 10; #X msg 258 123 -50; #X obj 220 251 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 263 199 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 354 132 5 0 0 0 - - -; #X msg 354 101 10; #X msg 390 100 -50; #X obj 214 316 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 214 341 sel 0 1; #X obj 210 516 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 243 492 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 269 442 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 158 340 5 0 0 0 - - -; #X text 24 12 sub-patch SELECT; #X text 18 99 abbreviazione; #X text 405 131 <= caricamento del valore da selezionare; #X text 288 197 <= bang se l'input non è incluso nella selezione; #X text 245 251 <= bang se l'input si trova nella selezione; #X text 310 338 <= è possibile selezionare più valori numerici; #X text 311 356 in uscita. Il primo Outlet a sinistra corrisponde; #X text 312 378 al primo numero selezionato \, e così via verso destra ; #X text 308 397 fino ad arrivare all'ultimo Outlet che corrisponde a; #X text 309 414 tutti i valori non presenti nella selezione; #X text 289 440 <= bang se l'input non è ne 0 ne 1; #X text 264 490 <= bang se l'input è 1; #X text 232 515 <= bang se l'input è 0; #X obj 56 573 cnv 15 650 60 empty empty empty 10 15 1 14 -261681 -62784 0; #X text 81 573 *NOTA: ad un livello elementare \, l'oggetto select svolge la stessa funzione che nei linguaggi di programmazione classica è svolta dal condizionale IF; #X connect 6 0 10 0; #X connect 6 1 11 0; #X connect 7 0 6 0; #X connect 8 0 6 0; #X connect 9 0 6 0; #X connect 12 0 6 1; #X connect 13 0 12 0; #X connect 14 0 12 0; #X connect 15 0 16 0; #X connect 15 0 20 0; #X connect 16 0 17 0; #X connect 16 1 18 0; #X connect 16 2 19 0; #X restore 12 472 pd SELECT; #X obj 312 395 cnv 15 300 25 empty empty Appendice 10 14 1 16 -241291 -1 0; #X obj 312 423 cnv 15 300 25 empty empty empty 10 15 1 14 -241291 -62784 0; #X obj 312 451 cnv 15 300 25 empty empty empty 10 15 1 14 -241291 -62784 0; #X obj 312 479 cnv 15 300 25 empty empty empty 10 15 1 14 -241291 -62784 0; #X obj 312 519 cnv 15 300 25 empty empty Applicazine 10 14 1 16 -257472 -1 0; #X obj 312 547 cnv 15 300 25 empty empty empty 10 14 1 16 -257472 -1 0; #N canvas 211 23 776 701 COMPTEUR_ALTERNE 0; #X obj 61 226 metro 1000; #X obj 61 184 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1 ; #X obj 108 265 + 1; #X obj 108 292 mod 2; #X obj 61 339 sel 0 1; #X obj 61 381 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 119 380 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 61 268 int; #X floatatom 14 301 5 0 0 0 - - -; #X obj 277 224 metro 1000; #X obj 277 182 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1; #X obj 324 263 + 1; #X obj 324 290 mod 2; #X obj 277 337 sel 0 1; #X obj 277 379 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 335 378 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 277 266 int; #X msg 47 578 \; pd dsp \$1; #X obj 47 548 tgl 15 0 empty empty empty 0 -6 0 8 -258699 -1 -1 0 1 ; #X text 157 339 ===========>; #X obj 8 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 8 42 cnv 15 600 30 empty empty Note_alterne 10 15 1 14 -257472 -1 0; #X obj 38 401 cnv 15 140 80 empty empty empty 20 12 0 14 -257472 -66577 0; #X obj 261 399 cnv 15 400 240 empty empty empty 20 12 0 14 -257472 -66577 0; #X obj 61 449 print; #X msg 61 409 TIC; #X msg 119 408 TAC; #X obj 277 490 osc~; #X msg 277 407 60; #X msg 335 407 64; #X obj 277 461 mtof; #X obj 276 609 dac~; #X obj 277 561 *~ 0.5; #X text 18 12 sub-patch NOTE ALTERNE; #X text 272 94 La stessa cosa di prima eccetto che i messaggi; #X text 271 111 inviati dall'outlets cambiano la frequenza di; #X text 270 128 un oscillatore audio; #X text 324 460 converte le note midi in frequenze; #X text 377 405 note midi (0->127); #X text 324 487 oscillatore audio; #X text 362 521 MUTE!; #X text 344 555 moltiplicatore audio; #X text 351 569 Qui il segnale audio è diviso in due; #X text 334 610 uscita audio (casse); #X text 34 527 accendi/spegni l'audio; #X msg 321 522 0; #X connect 0 0 7 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 3 0 7 1; #X connect 4 0 5 0; #X connect 4 1 6 0; #X connect 5 0 25 0; #X connect 6 0 26 0; #X connect 7 0 2 0; #X connect 7 0 4 0; #X connect 7 0 8 0; #X connect 9 0 16 0; #X connect 10 0 9 0; #X connect 11 0 12 0; #X connect 12 0 16 1; #X connect 13 0 14 0; #X connect 13 1 15 0; #X connect 14 0 28 0; #X connect 15 0 29 0; #X connect 16 0 11 0; #X connect 16 0 13 0; #X connect 18 0 17 0; #X connect 25 0 24 0; #X connect 26 0 24 0; #X connect 27 0 32 0; #X connect 28 0 30 0; #X connect 29 0 30 0; #X connect 30 0 27 0; #X connect 32 0 31 0; #X connect 32 0 31 1; #X connect 45 0 32 1; #X restore 455 549 pd COMPTEUR_ALTERNE; #X text 24 26 Workhop introduttivo a Puredata realizzato a Strike-s.p.a. di Roma; #X text 27 60 barcelona \, 10 AM del 23.04.2007; #X obj 12 112 cnv 15 600 80 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 27 120 Queste dispense sono la traduzione e la riadattazione di quelle utilizzate nel workshop di Mains d'Oeuvres Art il 02_04 di Jorome Abel. Come le originali \, sono rilasciate in creative-commons ; #X text 238 213 <= clicca qui per aprire la sub-patch; #N canvas 429 22 698 688 RISORSE 0; #X text 238 474 http://at.or.at/hans/pd/installers.html; #X obj 17 45 cnv 15 600 30 empty empty Pure_Data 10 15 1 14 -233017 -62784 0; #X obj 18 372 cnv 15 600 30 empty empty In_internet 10 15 1 14 -233017 -62784 0; #X text 35 418 -Miller Puckette : http://www-crca.ucsd.ed/~msp; #X text 33 559 -PD Webring : http://pd.klingt.org/webring; #X text 36 149 (Menu Help > Browser); #X text 35 87 (Menu Help > Manual); #X text 33 474 -Hans-Christoph Steiner :; #X text 36 336 (GEM \, iem \, maxlib \, vasp \, pmpd \, cyclone \, zexy \, ...); #X text 190 533 http://artengine.ca/~idecibel; #X obj 17 10 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 30 15 sous-patch RESSOURCES_AIDES du patch principal; #X text 431 53 0.PATCHS_COURS.pd; #X text 32 106 -Documentazione ufficiale PD : ./pd/doc/1.manual/; #X text 32 172 -Documentazione di base : ./pd/doc/2.control.examples/ ; #X text 32 198 -Documentazione su oggetti audio: ./pd/doc/3.audio.examples/ ; #X text 33 225 -Pddp: ./pd/doc/5.references/pddp.pd; #X text 31 247 -Lista ed esempi di tutti gli oggetti base: ./pd/doc/5.references/ ; #X text 28 286 -Manuali di librerie esterne : ./pd/doc/manuals/; #X text 28 316 -Esempi di utilizzo librerie esterne: ./pd/doc/manuals/ ; #X text 34 446 -Comunità : http://www.puredata.info; #X text 33 502 -Forum inglese : http://puredata.hurleur.com; #X text 33 532 -Forum frncese:; #X text 32 581 -Mailing lista internazionale: http://lists.puredata.info/listinfo ; #X restore 14 212 pd RISORSE ADDIZIONALI; #N canvas 285 22 835 747 PRESENTAZIONE 0; #X obj 9 4 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 111 250 print; #X msg 114 278 0; #X floatatom 110 305 5 0 0 0 - - -; #X symbolatom 110 331 10 0 0 0 - - -; #X obj 27 583 hsl 128 15 0 500 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; #X text 169 581 slider horizontal; #X obj 25 443 bng 40 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 25 505 tgl 40 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X floatatom 25 555 5 0 0 0 - - -; #X obj 26 684 nbx 5 40 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 30 -262144 -1 -1 0 256; #X obj 29 611 vradio 15 1 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X obj 26 735 cnv 15 100 60 empty empty empty 20 12 0 14 -44926 -66577 0; #X text 151 754 canvas; #N canvas 0 22 450 300 graph5 0; #X array arrayTest 100 float 3; #A 0 -0.131766 -0.0996233 -0.0674808 -0.0353382 -0.00319571 -0.360335 -0.360335 -0.348907 -0.337478 -0.32605 -0.314621 -0.303193 -0.286526 -0.26986 -0.253193 -0.236527 -0.21986 -0.203194 -0.180337 -0.803188 -0.771045 -0.738903 -0.70676 -0.674618 -0.656047 -0.637475 -0.618904 -0.600333 -0.581762 -0.56319 -0.544619 -0.526048 -0.507477 -0.488905 -0.467477 -0.446049 -0.42462 -0.403192 -0.746046 -0.73176 -0.717475 -0.685332 -0.65319 -0.621047 -0.588905 -0.546048 -0.503191 -0.460334 -0.440692 -0.421049 -0.401406 -0.381764 -0.546048 -0.546048 -0.528191 -0.510334 -0.492477 -0.47462 -0.60319 -0.560333 -0.527 -0.493667 -0.460334 -0.428192 -0.396049 -0.363907 -0.331764 -0.30605 -0.280336 -0.260336 -0.238908 -0.217479 -0.203194 -0.188908 -0.174623 -0.160337 -0.146051 -0.131766 -0.110338 -0.0889092 -0.0674808 -0.0460525 -0.0317669 0.611084 0.611084 0.611084 0.611084 0.611084 -0.566456 -0.554211 -0.541966 -0.529721 -0.517477 -0.481763 -0.446049 -0.431763 -0.417478 -0.403192 -0.360335 -0.331764; #X coords 0 1 99 -1 200 140 1; #X restore 13 866 graph; #X obj 10 207 cnv 15 600 30 empty empty Oggetti_testuali 10 15 1 14 -233017 -62784 0; #X obj 13 396 cnv 15 600 30 empty empty Oggetti_G.U.I_(Graphic_User_Interface) 10 15 1 14 -233017 -62784 0; #X obj 11 811 cnv 15 600 30 empty empty Array_(Tavola) 10 15 1 14 -233017 -62784 0; #X obj 9 143 cnv 15 600 40 empty empty empty 10 15 1 14 -261681 -62784 0; #X text 194 697 Number2; #X obj 533 98 cnv 15 15 30 empty empty empty 20 12 0 14 -258699 -66577 0; #X msg 533 102 0; #X obj 45 98 cnv 15 15 30 empty empty empty 20 12 0 14 -258699 -66577 0; #X obj 262 100 cnv 15 15 30 empty empty empty 20 12 0 14 -258699 -66577 0; #X obj 264 105 0; #X floatatom 12 105 5 0 0 0 - - -; #X text 31 9 sub-patch PRESENTAZIONE_ELEMENTI del patch principale ; #X text 23 40 Nel menù in alto > Put si trovano i differenti tipi di elementi disponibili in PD. Visualmente si distinguono dal bordo destro. Esempi:; #X text 100 105 è differente da; #X text 338 105 è differente da; #X text 19 144 *(click destro + help) : visualizza l'aiuto dell'oggetto ; #X text 19 160 *(click destro + proprietà) : visualizza le proprietà ; #X text 18 251 ctl + 1; #X text 18 276 ctl + 2; #X text 18 302 ctl + 3; #X text 18 327 ctl + 4; #X text 17 355 ctl + 5; #X text 183 248 oggetto; #X text 169 277 messaggio; #X text 176 307 numero; #X text 243 331 simbolo; #X text 246 357 commento (di testo); #X text 107 355 comment; #X text 86 450 bang = impulso; #X text 89 513 toggle = interruttore (0 ou 1); #X text 68 634 vertical radio slider; #X floatatom 60 603 5 0 0 0 - - -; #X floatatom 53 654 5 0 0 0 - - -; #X text 230 938 => è un contenitore dinamico di valori; #X connect 5 0 46 0; #X connect 8 0 9 0; #X connect 11 0 47 0; #X restore 12 296 pd PRESENTAZIONE ELEMENTI; #N canvas 337 22 641 709 MANIPOLAZIONE 0; #X obj 9 4 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 9 47 cnv 15 600 25 empty empty empty 10 15 1 14 -261681 -62784 0; #X obj 9 93 cnv 15 600 25 empty empty empty 10 15 1 14 -261681 -62784 0; #X obj 10 206 cnv 15 600 25 empty empty empty 10 15 1 14 -261681 -62784 0; #X obj 11 262 cnv 15 600 25 empty empty empty 10 15 1 14 -261681 -62784 0; #X obj 9 385 cnv 15 600 25 empty empty empty 10 15 1 14 -261681 -62784 0; #X text 22 10 sub-patch di MANIPOLAZIONE OGGETTI; #X text 9 45 * Per muovere gli oggetti: in edit-mode \, selezionare con il mouse (l'oggetto diventa blu) e trascinarli; #X text 8 88 * Per connettere gli oggetti entrare in edit-mode \, piazzare il mouse sopra un'uscita (rappresentata da un piccolo rettangolo nero) \, apparirà un cerchio al posto della mano \, clikkare e trascinare fino all'entrata dell'atro oggetto (rappresentata da un piccolo rettangolo bianco). Nota che mentre le entrate di un oggetto stanno in alto \, le sue uscite si trovano in basso.; #X text 15 211 * Per cancellare una connessione: selezionare con il mouse il cavo di connessione \, apparirà una croce \, e premere <-- (backspace); #X text 18 264 * Per cancellare un oggetto: in edit-mode \, posizionare il mouse sopra l'oggetto \, clikkare (questo diventa blu) e premere <-- (backspace). Attenzione che molto spesso si fà l'errore di selezionare il testo contenuto nell'oggetto cancellando solo quest'ultimo e lasciando un rettangolo vuoto tratteggiato (che ci comunica che PD non riconosce quell'oggetto); #X text 18 384 * Utilizzare ctl+d per duplicare \, ctl+c per copiare e ctl+v per incollare; #X obj 47 522 print; #X obj 14 422 cnv 15 600 20 empty empty Esercizio 5 10 1 12 -260818 -1 0; #X msg 46 454 messaggio; #X text 31 582 - Connettare i due oggetti; #X text 32 601 - Cancellare il cavo di connessione; #X text 32 619 - Riconetterli e duplicarli; #X restore 12 316 pd MANIPOLAZIONE OGGETTI; #N canvas 207 25 667 674 OGGETTO 0; #X text 59 131 |; #X text 59 144 |; #X text 59 157 |; #X text 59 171 |; #X text 59 184 |; #X text 59 197 |; #X text 59 211 |; #X text 59 224 |; #X text 59 237 |; #X text 59 251 |; #X text 59 264 |; #X text 59 277 |; #X text 59 291 |; #X text 59 304 |; #X text 59 317 |; #X text 59 331 |; #X text 59 344 |; #X text 59 357 |; #X text 59 366 V; #X obj 14 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 338 95 cnv 15 150 100 empty empty Inlet_(ingresso)_di_destra 5 12 1 10 -228992 -62784 0; #X obj 263 203 cnv 15 100 100 empty empty Outlet_(uscita) 8 90 1 10 -225271 -24198 0; #X obj 123 94 cnv 15 150 100 empty empty Inlet_(ingresso)_di_sinistra 5 12 1 10 -228992 -62784 0; #X msg 165 154 0; #X obj 267 237 bng 40 50 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 131 154 1; #X obj 267 186 metro 1000; #X text 274 212 bang; #X text 211 128 toggle; #X floatatom 342 149 5 0 0 0 - - -; #X obj 214 152 tgl 20 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1; #X text 59 92 |; #X text 59 105 |; #X text 59 118 |; #X obj 14 42 cnv 15 600 30 empty empty OGGETTO_METRO 10 15 1 14 -233017 -62784 0; #X text 24 12 sub-patch OGGETTO METRO; #X text 132 127 0 o 1; #X text 342 127 numero in msec; #X obj 14 544 cnv 15 580 70 empty empty empty 20 12 0 14 -261681 -66577 0; #X text 23 459 * l'oggetto [metro] è un metronomo \, invia un bang secondo un intervallo di tempo regolare. L'intervallo è determinato dal numero che connettiamo all'inlet destro \, e l'unità di misura sono millisecondi; #X text 25 549 *NOTA: normalmente l'ordine degli ingressi è sempre da destra verso sinistra \, con la differenza ce l'inlet + a sinistra è quello che attiva la funzione dell'oggetto; #X text 60 385 INFORMAZIONE IN SENSO ORARIO DALL'ALTO IN BASSO; #X text 31 429 *2 entrate (inlets) in alto / 1 sortie (outlet) en bas ; #X connect 23 0 26 0; #X connect 25 0 26 0; #X connect 26 0 24 0; #X connect 29 0 26 1; #X connect 30 0 26 0; #X restore 12 398 pd OGGETTO METRO; #N canvas 142 43 843 526 ESERCIZI_METRO 0; #X obj 14 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 14 58 cnv 15 600 20 empty empty Esercizi 5 10 1 12 -260818 -1 0; #N canvas 0 22 290 243 solution1 0; #X obj 54 76 metro 1000; #X obj 54 107 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 54 48 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 54 165 print; #X msg 54 133 1 seconde; #X text 46 26 On/Off; #X text 138 133 <= message; #X connect 0 0 1 0; #X connect 1 0 4 0; #X connect 2 0 0 0; #X connect 4 0 3 0; #X restore 438 216 pd solution1; #N canvas 0 22 466 316 solution2 0; #X obj 90 134 metro 1000; #X obj 90 170 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 90 102 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X msg 165 83 100; #X floatatom 165 110 5 0 0 0 - - -; #X text 81 84 On/Off; #X msg 205 83 1000; #X msg 256 84 2000; #X connect 0 0 1 0; #X connect 2 0 0 0; #X connect 3 0 4 0; #X connect 4 0 0 1; #X connect 6 0 4 0; #X connect 7 0 4 0; #X restore 503 347 pd solution2; #X obj 22 219 metro 1000; #X obj 134 221 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 176 222 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 220 219; #X obj 272 219 print; #X obj 20 407 metro 1000; #X obj 132 409 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 174 410 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 218 407; #X msg 254 407; #X msg 293 407; #X text 24 12 sub-patch ESERCIZI METRO; #X text 20 114 1 Connettate l'uscita dell'oggetto [metro] a un messaggio di vostra scelta. Fate in modo che questo messaggio sia visibile nella consolle di PD; #X text 19 91 Oggetto [metro] + message + toggle + bang; #X text 23 326 2 Fate in modo di poter cambiare l'intervallo di tempo del bang con i messaggi; #X restore 12 418 pd ESERCIZI_METRO; #N canvas 0 500 811 360 NUMERI 0; #X obj 21 107 float; #X obj 85 107 f; #X text 70 106 =; #X obj 25 232 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 25 254 float 7; #X floatatom 25 286 5 0 0 0 - - -; #X obj 363 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 363 258 5 0 0 0 - - -; #X floatatom 387 158 5 0 0 0 - - -; #X obj 363 231 f; #X floatatom 326 101 5 0 0 0 - - -; #X obj 14 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 320 11 0.PATCHS_COURS.pd; #X obj 14 42 cnv 15 600 30 empty empty Rappel_Float 10 15 1 14 -233017 -62784 0; #X obj 20 135 int; #X obj 73 136 i; #X text 55 135 =; #X text 24 12 sub-patch NUMERI; #X text 20 87 abbreviazioni; #X text 124 106 numero a virgola; #X text 124 133 numero intero; #X text 20 211 invio dell'argomento; #X text 378 103 <= invio diretto del numero; #X text 449 162 <= invio di un valoreda memorizzare; #X text 388 190 <= impone l'output del numero memorizzato; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 6 0 9 0; #X connect 8 0 9 1; #X connect 9 0 7 0; #X connect 10 0 9 0; #X restore 12 452 pd NUMERI; #N canvas 238 45 775 636 ESEMPIO 0; #X obj 286 116 tgl 40 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 97 443 bng 40 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 145 442 bng 40 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 97 564 print; #X obj 97 389 select 1 0; #X obj 97 189 metro 1000; #X obj 97 311 float; #X obj 32 235 bng 40 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 97 121 tgl 40 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 13 11 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X msg 97 521 TIC; #X msg 145 521 TAC; #X floatatom 35 349 5 0 0 0 - - -; #X text 96 100 On/Off; #X obj 13 48 cnv 15 600 40 empty empty empty 5 10 1 12 -260818 -1 0 ; #X text 22 50 Trasmissione di un messaggio ad un intervallo regolare \, e cambio di questo messaggio con un toogle; #X text 333 144 scelta del messaggio TIC o TAC; #X text 333 126 <= 0 o 1; #X text 165 305 <= Memorizza il valore a destra e lo invia quando un bang arriva al suo inlet sinistro; #X text 212 391 <= quando l'input è 1 invia un bang al messaggio TIC ; #X text 236 409 quando l'input è 0 invia un bang al messaggio TAC; #X text 161 565 <= spampa il messaggio nella consolle PD; #X text 23 16 sub-patch ESEMPIO METRO+BANG+SELECT; #X connect 0 0 6 1; #X connect 1 0 10 0; #X connect 2 0 11 0; #X connect 4 0 1 0; #X connect 4 1 2 0; #X connect 5 0 7 0; #X connect 5 0 6 0; #X connect 6 0 4 0; #X connect 6 0 12 0; #X connect 8 0 5 0; #X connect 10 0 3 0; #X connect 11 0 3 0; #X restore 11 492 pd ESEMPIO METRO+BANG+SELECT; #N canvas 266 47 640 647 CONTATORE 0; #X obj 157 223 + 1; #X obj 26 128 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1; #X obj 26 222 float; #X floatatom 155 245 5 0 0 0 - - -; #X floatatom 26 247 5 0 0 0 - - -; #X obj 26 288 print a; #X obj 155 288 print b; #X msg 61 167 0; #X text 9 94 --------------------------------------------; #X obj 63 409 + 1; #X obj 28 467 float; #X floatatom 63 435 5 0 0 0 - - -; #X floatatom 63 387 5 0 0 0 - - -; #X obj 28 370 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1; #X obj 416 231 f; #X obj 454 231 + 1; #X obj 416 209 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1; #X floatatom 416 261 5 0 0 0 - - -; #X obj 8 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 350 12 0.PATCHS_COURS.pd; #X obj 8 42 cnv 15 600 30 empty empty Contatore 10 15 1 14 -233017 -62784 0; #X obj 280 407 cnv 15 254 64 empty empty empty 20 12 0 14 -258699 -44926 0; #X obj 282 409 cnv 15 250 60 empty empty empty 20 12 0 14 -261884 -66577 0; #X obj 294 430 f; #X obj 329 430 + 1; #X text 18 12 sub-patch CONTATORE INCREMENTALE; #X text 13 80 Contatore: incrementi; #X text 250 79 (aggiungiamo +1 ad ogni bang); #X text 98 169 <= reset (inizializza a zero); #X text 255 215 sono la stessa; #X text 302 247 cosa; #X text 265 233 <===========>; #X text 25 340 altro esempio forse un poco più chiaro; #X text 361 432 = loop infinto!!!; #X text 281 389 ATTENZIONE; #X text 21 517 SPIEGAZIONE:; #X text 23 534 L'inlet a destra dell'oggetto [float] è utilizzato per memorizzare il valore che uscirà dall'outlet alla ricezione del bang. Al valore espulso sara aggiunto 1 e rientrerà nell'input destro come nuovo valore memorizzato da cui partire; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 2 0 4 0; #X connect 3 0 2 1; #X connect 3 0 6 0; #X connect 4 0 5 0; #X connect 4 0 0 0; #X connect 7 0 2 1; #X connect 9 0 11 0; #X connect 10 0 12 0; #X connect 11 0 10 1; #X connect 12 0 9 0; #X connect 13 0 10 0; #X connect 14 0 15 0; #X connect 14 0 17 0; #X connect 15 0 14 1; #X connect 16 0 14 0; #X connect 23 0 24 0; #X connect 24 0 23 0; #X restore 12 523 pd CONTATORE; #N canvas 263 63 638 539 CICLI 0; #X obj 59 281 until; #X msg 59 246 5; #X obj 59 320 i; #X obj 103 317 + 1; #X floatatom 59 348 5 0 0 0 - - -; #X obj 59 221 t b b; #X msg 104 247 0; #X obj 59 199 bng 15 250 50 0 empty empty start 0 -6 1 8 -241291 -1 -1; #X obj 354 319 i; #X obj 398 316 + 1; #X floatatom 354 437 5 0 0 0 - - -; #X obj 354 225 t b b; #X msg 399 251 0; #X obj 354 203 bng 15 250 50 0 empty empty start 0 -6 1 8 -241291 -1 -1; #X obj 59 371 print until; #X obj 354 460 print metro; #X obj 354 280 metro 100; #X msg 354 252 1; #X obj 354 347 t f f; #X msg 399 402 0; #X obj 399 374 sel 4; #X obj 439 201 nbx 5 25 0 10000 0 0 empty empty tempo 0 -6 1 15 -241291 -1 -1 0 256; #X obj 8 7 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 319 12 0.PATCHS_COURS.pd; #X obj 8 42 cnv 15 600 30 empty empty Cicli 10 15 1 14 -233017 -62784 0; #X text 18 12 sub-patch; #X text 52 141 con [until]; #X text 53 157 quasi istantaneo; #N canvas 0 22 570 421 ESEMPIO 0; #X msg 47 69 bang; #X obj 47 97 t b b; #X obj 90 204 + 1; #X msg 121 160 0; #X obj 47 160 until; #X obj 47 239 t f f; #X obj 47 283 mtof; #X obj 47 326 tabwrite mtof; #N canvas 0 22 450 300 graph2 0; #X array mtof 130 float 1; #A 0 8.1758 8.66196 9.17702 9.72272 10.3009 10.9134 11.5623 12.2499 12.9783 13.75 14.5676 15.4339 16.3516 17.3239 18.354 19.4454 20.6017 21.8268 23.1247 24.4997 25.9565 27.5 29.1352 30.8677 32.7032 34.6478 36.7081 38.8909 41.2034 43.6535 46.2493 48.9994 51.9131 55 58.2705 61.7354 65.4064 69.2957 73.4162 77.7817 82.4069 87.3071 92.4986 97.9989 103.826 110 116.541 123.471 130.813 138.591 146.832 155.563 164.814 174.614 184.997 195.998 207.652 220 233.082 246.942 261.626 277.183 293.665 311.127 329.628 349.228 369.994 391.995 415.305 440 466.164 493.883 523.251 554.365 587.33 622.254 659.255 698.456 739.989 783.991 830.609 880 932.328 987.767 1046.5 1108.73 1174.66 1244.51 1318.51 1396.91 1479.98 1567.98 1661.22 1760 1864.66 1975.53 2093 2217.46 2349.32 2489.02 2637.02 2793.83 2959.96 3135.96 3322.44 3520 3729.31 3951.07 4186.01 4434.92 4698.64 4978.03 5274.04 5587.65 5919.91 6271.93 6644.88 7040 7458.62 7902.13 8372.02 8869.84 9397.27 9956.06 10548.1 11175.3 11839.8 12543.9 13289.8 252868; #X coords 0 12000 130 0 200 100 1; #X restore 268 154 graph; #X text 474 246 0; #X text 476 146 12000; #X text 289 226 - 130 samples -; #X obj 47 204 i; #X msg 47 128 180; #X text 45 39 visualizzazione di mtof; #X connect 0 0 1 0; #X connect 1 0 13 0; #X connect 1 1 3 0; #X connect 2 0 12 1; #X connect 3 0 12 1; #X connect 4 0 12 0; #X connect 5 0 6 0; #X connect 5 1 7 1; #X connect 6 0 7 0; #X connect 12 0 2 0; #X connect 12 0 5 0; #X connect 13 0 4 0; #X restore 53 112 pd ESEMPIO UNTIL; #N canvas 112 27 858 657 ESEMPIO 0; #X obj 200 164 i; #X obj 244 163 + 1; #X obj 200 70 t b b; #X msg 245 96 0; #X obj 200 48 bng 15 250 50 0 empty empty start 0 -6 1 8 -241291 -1 -1; #X msg 200 97 1; #X msg 245 247 0; #X obj 245 219 sel 4; #X obj 285 46 nbx 5 25 0 10000 0 0 empty empty tempo 0 -6 1 15 -241291 -1 -1 100 256; #X obj 200 192 t b f; #X obj 63 482 osc~ 220; #X obj 64 535 *~; #X obj 200 472 line~; #X obj 200 336 t b b; #X obj 200 309 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 63 591 dac~; #X msg 200 438 0 \$1; #X obj 200 372 delay; #X obj 200 412 f; #X obj 264 412 f; #X floatatom 289 335 5 0 0 2 attack_decay - -; #X obj 285 5 init 100; #X obj 200 125 metro 100; #X obj 368 271 / 3; #X obj 566 150 i; #X obj 610 149 + 1; #X obj 566 84 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 610 176 mod 2; #X obj 566 202 sel 0 1; #X obj 566 111 metro 1000; #X msg 264 438 0.7 \$1; #X obj 389 44 nbx 5 25 0 10000 0 0 empty empty Numero_di_cicli 0 -6 1 15 -241291 -1 -1 5 256; #X obj 290 192 - 1; #X obj 389 4 init 5; #X text 78 165 ciclo; #X text 59 368 Sviluppo Amplitude; #X text 561 15 Due cicli in cascata; #X text 559 33 per gestire la sequenza con tempi ciclici; #X connect 0 0 1 0; #X connect 0 0 9 0; #X connect 1 0 0 1; #X connect 2 0 5 0; #X connect 2 1 3 0; #X connect 3 0 0 1; #X connect 4 0 2 0; #X connect 5 0 22 0; #X connect 6 0 22 0; #X connect 7 0 6 0; #X connect 8 0 22 1; #X connect 8 0 23 0; #X connect 9 0 14 0; #X connect 9 1 7 0; #X connect 10 0 11 0; #X connect 11 0 15 0; #X connect 11 0 15 1; #X connect 12 0 11 1; #X connect 13 0 17 0; #X connect 13 1 19 0; #X connect 14 0 13 0; #X connect 16 0 12 0; #X connect 17 0 18 0; #X connect 18 0 16 0; #X connect 19 0 30 0; #X connect 20 0 17 1; #X connect 20 0 19 1; #X connect 20 0 18 1; #X connect 21 0 8 0; #X connect 22 0 0 0; #X connect 23 0 20 0; #X connect 24 0 25 0; #X connect 24 0 28 0; #X connect 25 0 27 0; #X connect 26 0 29 0; #X connect 27 0 24 1; #X connect 28 0 4 0; #X connect 29 0 24 0; #X connect 30 0 12 0; #X connect 31 0 32 0; #X connect 32 0 7 1; #X connect 33 0 31 0; #X restore 353 110 pd ESEMPIO METRO; #X text 351 158 gestione del tempo; #X text 349 141 con [metro]; #X connect 0 0 2 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 2 0 4 0; #X connect 3 0 2 1; #X connect 4 0 14 0; #X connect 5 0 1 0; #X connect 5 1 6 0; #X connect 6 0 2 1; #X connect 7 0 5 0; #X connect 8 0 9 0; #X connect 8 0 18 0; #X connect 9 0 8 1; #X connect 10 0 15 0; #X connect 11 0 17 0; #X connect 11 1 12 0; #X connect 12 0 8 1; #X connect 13 0 11 0; #X connect 16 0 8 0; #X connect 17 0 16 0; #X connect 18 0 10 0; #X connect 18 1 20 0; #X connect 19 0 16 0; #X connect 20 0 19 0; #X connect 21 0 16 1; #X restore 12 563 pd CICLI; #N canvas 79 71 887 643 ESERCIZI 0; #X obj 331 306 i; #X obj 149 306 + 1; #X floatatom 436 307 5 0 0 0 - - -; #X obj 55 304 t b b; #X msg 361 305 0; #X msg 109 304 1; #X obj 284 306 sel 4; #X obj 26 307 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1; #X text 14 166 ------------------------; #X msg 397 306 0; #X obj 194 306 metro 1000; #X text 474 134 ==>; #X obj 7 6 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 416 12 0.PATCHS_COURS.pd; #X obj 8 78 cnv 15 600 20 empty empty Exercice 5 10 1 12 -260818 -1 0; #N canvas 672 212 304 282 SOLUTION2 0; #X obj 97 117 i; #X obj 138 115 + 1; #X obj 97 44 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1 ; #X floatatom 97 185 5 0 0 0 - - -; #X obj 97 150 + 1; #X obj 97 78 metro 1000; #X obj 138 143 mod 5; #X connect 0 0 1 0; #X connect 0 0 4 0; #X connect 1 0 6 0; #X connect 2 0 5 0; #X connect 4 0 3 0; #X connect 5 0 0 0; #X connect 6 0 0 1; #X restore 504 483 pd SOLUTION2; #N canvas 581 286 280 393 SOLUTION1 0; #X obj 65 166 i; #X obj 104 163 + 1; #X floatatom 65 274 5 0 0 0 - - -; #X obj 65 61 t b b; #X msg 100 92 0; #X msg 65 92 1; #X obj 100 219 sel 4; #X obj 65 39 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1; #X msg 100 248 0; #X obj 65 131 metro 1000; #X obj 65 192 t f f; #X floatatom 152 100 5 0 0 0 - - -; #X obj 65 319 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X connect 0 0 1 0; #X connect 0 0 10 0; #X connect 1 0 0 1; #X connect 2 0 12 0; #X connect 3 0 5 0; #X connect 3 1 4 0; #X connect 4 0 0 1; #X connect 5 0 9 0; #X connect 6 0 8 0; #X connect 7 0 3 0; #X connect 8 0 9 0; #X connect 9 0 0 0; #X connect 10 0 2 0; #X connect 10 1 6 0; #X connect 11 0 9 1; #X restore 512 134 pd SOLUTION1; #X text 468 485 ==>; #X text 15 201 2 : iniziare la conta; #X text 15 187 1 : inizializare il contatore; #X text 15 217 3 : incremenarla; #X text 15 233 4 : fermarla; #X text 15 156 conto da 0 a 4; #X text 13 103 - Connettare tutti questi oggetti oo una parte per realizzare un contatore numerico da 0 a 4; #X text 17 16 sub-patch; #X obj 7 40 cnv 15 600 30 empty empty Esecizi_sub-patch 10 15 1 14 -233017 -62784 0; #X text 14 440 -fare un ciclo che vada da 1 a 5; #X restore 12 583 pd ESERCIZI CICLI; #N canvas 320 22 899 729 TUTTI 0; #N canvas 389 185 460 401 Related_Objects 0; #X obj 32 54 ftos; #X obj 81 54 list2symbol; #X text 23 22 data type conversion; #X obj 201 55 tosymbol; #X obj 300 54 fromsymbol; #X obj 36 252 lister; #X obj 34 98 atoi; #X obj 30 138 list2int; #X obj 117 138 l2i; #X obj 119 164 a2l; #X obj 29 164 any2list; #X obj 210 139 list2symbol; #X obj 210 164 symbol2list; #X obj 341 138 l2s; #X obj 339 163 s2l; #X obj 123 252 list; #X obj 26 327 tosymbol; #X obj 123 327 fromsymbol; #X obj 239 329 list2symbol; #X obj 356 328 ftos; #X restore 12 899 pd Related_Objects; #N canvas 261 88 592 525 float/list 0; #X msg 95 167 float 1 2 3; #X text 50 32 FLOAT CONVERSION; #X msg 115 221 list 1 2 3; #X text 112 198 A list with multiple elements remains a list.; #X text 43 77 A float with one element remains a float.; #X text 89 127 A float with multiple elements remains a float but is cut to one element.; #X text 119 252 A list with one float element is converted to a float. ; #X obj 77 385 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1 -1; #X obj 145 389 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1 -1; #X obj 214 387 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144 -1 -1; #X obj 283 386 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1 -1; #X obj 352 386 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144 -1 -1; #X obj 77 320 route bang float symbol list; #X obj 179 435 print FLOAT; #X msg 50 99 float 3; #X msg 126 273 list 2; #X obj 341 444 print LIST; #X connect 0 0 12 0; #X connect 2 0 12 0; #X connect 12 0 7 0; #X connect 12 1 8 0; #X connect 12 1 13 0; #X connect 12 2 9 0; #X connect 12 3 10 0; #X connect 12 3 16 0; #X connect 12 4 11 0; #X connect 14 0 12 0; #X connect 15 0 12 0; #X restore 12 855 pd float/list conversion; #N canvas 0 22 620 450 empty 0; #X obj 77 284 bng 15 250 50 0 empty empty bang 0 20 1 9 -262144 -1 -1; #X obj 145 289 bng 15 250 50 0 empty empty float 0 21 1 9 -262144 -1 -1; #X obj 214 284 bng 15 250 50 0 empty empty symbol 0 21 1 9 -262144 -1 -1; #X obj 283 280 bng 15 250 50 0 empty empty list 0 21 1 9 -262144 -1 -1; #X obj 352 277 bng 15 250 50 0 empty empty UNDEFINED 0 21 1 9 -262144 -1 -1; #X msg 145 204 list; #X msg 77 74 float; #X msg 115 139 symbol; #X text 85 21 EMPTY DATA TYPES; #X obj 77 246 route bang float symbol list; #X obj 170 364 print FLOAT; #X obj 253 325 print SYMBOL; #X text 138 183 An empty list is converted to a bang; #X text 103 119 An empty "symbol" remains a empty "symbol".; #X text 73 54 An empty "float" remains a "float" and is initialized to 0; #X connect 5 0 9 0; #X connect 6 0 9 0; #X connect 7 0 9 0; #X connect 9 0 0 0; #X connect 9 1 1 0; #X connect 9 1 10 0; #X connect 9 2 2 0; #X connect 9 2 11 0; #X connect 9 3 3 0; #X connect 9 4 4 0; #X restore 12 877 pd empty data types; #X obj 24 144 metro; #X floatatom 268 144 5 0 0 0 - - -; #X msg 146 144 bang; #X symbolatom 390 144 10 0 0 0 - - -; #X obj 155 635 symbol; #X obj 115 635 int; #X obj 290 635 pointer; #X obj 13 635 bang; #X obj 13 685 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 57 635 float; #X obj 221 635 lister; #X obj 57 661 f; #X obj 115 660 i; #X text 524 144 bla bla bla; #X obj 13 660 b; #N canvas 346 179 484 290 Bang 0; #X text 34 19 Bang; #X obj 36 145 bang; #X obj 150 243 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 199 243 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X floatatom 239 243 5 0 0 0 - - -; #X obj 36 90 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 81 90 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X floatatom 121 90 5 0 0 0 - - -; #X text 83 145 Bang sortira un bang pour tout type d'entree; #X msg 185 90 bonjour; #X msg 303 243 bonjour; #X obj 36 242 print type; #X text 35 48 Bang signifie "fait qq chose" \, c'est une impulsion ; #X connect 1 0 2 0; #X connect 1 0 3 0; #X connect 1 0 10 0; #X connect 1 0 4 0; #X connect 1 0 11 0; #X connect 5 0 1 0; #X connect 6 0 1 0; #X connect 7 0 1 0; #X connect 9 0 1 0; #X restore 70 716 pd Bang; #N canvas 55 22 747 669 Symbol 0; #X obj 162 207 symbol; #X symbolatom 162 288 0 0 0 0 - - -; #X msg 184 253 word; #X msg 162 178 test; #X msg 142 132 symbol this; #X floatatom 49 201 5 0 0 0 - - -; #X msg 49 173 12; #X msg 21 143 float 83; #X text 19 71 Les symboles doivent être déclarés explicitement.; #X text 239 253 ne marche pas (voir sur la console); #X obj 154 397 symbol; #X obj 154 374 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X symbolatom 154 493 10 0 0 0 - - -; #X symbolatom 209 370 10 0 0 0 - - -; #X text 427 398 autre possibilite:; #X text 427 412 commencer par le selecteur; #X text 440 475 envoi d'un message; #X text 2 371 envoi du symbol ->; #X text 269 132 déclaration avec le sélecteur symbol dans un message ; #X text 129 28 (clic droit + properties); #X symbolatom 20 29 10 0 0 0 - - -; #X text 321 368 <- clicker et entrer un mot \, stockage de symboles ; #X obj 310 567 r JESUS; #X text 440 490 sans fil à JESUS; #X msg 298 471 \; JESUS symbol \$1; #X symbolatom 310 598 10 0 0 0 - - -; #X text 411 562 réception du message; #X text 411 579 à JESUS; #X msg 298 403 symbol Bonjour; #X text 18 90 Les Float n'en n'ont pas besoin; #X text 20 7 ctl + shift + 4; #X text 234 207 l'objet [symbol] transforme le message en symbole; #X connect 0 0 1 0; #X connect 2 0 1 0; #X connect 3 0 0 0; #X connect 4 0 1 0; #X connect 6 0 5 0; #X connect 7 0 5 0; #X connect 10 0 12 0; #X connect 10 0 24 0; #X connect 11 0 10 0; #X connect 13 0 10 1; #X connect 22 0 25 0; #X connect 28 0 12 0; #X connect 28 0 24 0; #X restore 69 760 pd Symbol; #N canvas 85 109 641 554 Float_Int 0; #X obj 16 240 f; #X floatatom 41 204 5 0 0 0 - - -; #X obj 16 205 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 16 267 5 0 0 0 - - -; #X obj 18 473 int; #X obj 18 438 / 5.23; #X floatatom 18 410 5 0 0 0 - - -; #X floatatom 87 501 5 0 0 0 - - -; #X floatatom 18 500 5 0 0 0 - - -; #X text 17 387 EXAMPLES OF CASTING; #X text 59 246 <- à gauche expulse la donnée; #X text 99 204 <- à droite la donnée est stockée; #X obj 537 225 float 7; #X obj 537 205 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 537 252 5 0 0 0 - - -; #X text 15 62 3; #X text 106 64 -111.5; #X text 54 64 0.5; #X text 189 65 10000 to 1e-16; #X msg 536 427 bang; #X obj 536 456 int; #X obj 575 456 + 1; #X floatatom 536 482 5 0 0 0 - - -; #X text 15 369 int = integer (entier naturel \, sans fractions); #X text 533 396 un compteur; #N canvas 57 22 669 650 PDDP_More_Info 0; #X text 43 24 All numbers in Pd are kept in 32-bit floating point and can represent real numbers between -8 \, 388608 and 8.388.608.00; #X text 11 78 WHAT IS A FLOATING POINT NUMBER?; #X text 41 267 The following are examples of floating point numbers: ; #X text 61 293 3; #X text 62 334 -111.5; #X text 61 313 0.5; #X text 40 387 3e-05 : This example is a computer shorthand for scientific notation. It means 3*10-5 (or 10 to the negative 5th power multiplied by 3).; #X text 41 108 According to Webopedia.com \, "computers are integer machines and are capable of representing real numbers only by using complex codes." Hence \, real numbers must be 'approximated' by computers using the "floating point standard". In such a number \, the decimal point can "float" meaning that there is no fixed number of digits preceding or following the decimal. A floating point number is therefore a computer's approximation of a real number.; #X text 43 453 Interesting side-note: In the early 1990's \, the Intel 80486 was shipped with a math coprocessor to help accelerate the process of computing floating point numbers (which previously required a considerable amount of CPU power.) Math coprocessors have since found there way into nearly every graphics card and CPU available today.; #X text 62 358 10000 to 1e-16; #X restore 56 132 pd PDDP_More_Info; #X text 12 178 Notion d'entrées chaude (gauche) et d'entrée froide ; #X text 14 80 Représentent les nombres réels qui servent pour les opérations mathématiques; #X obj 13 8 cnv 15 600 30 empty empty FLOAT 20 15 1 20 -241291 -1 0 ; #X text 14 42 float = floating point number = nombre à virgule flottante ; #X obj 14 330 cnv 15 600 30 empty empty INT 20 15 1 20 -241291 -1 0 ; #X text 17 132 ==>; #X connect 0 0 3 0; #X connect 1 0 0 1; #X connect 2 0 0 0; #X connect 4 0 8 0; #X connect 5 0 4 0; #X connect 5 0 7 0; #X connect 6 0 5 0; #X connect 12 0 14 0; #X connect 13 0 12 0; #X connect 19 0 20 0; #X connect 20 0 21 0; #X connect 20 0 22 0; #X connect 21 0 20 1; #X restore 70 738 pd Float_Int; #X obj 171 234 metro 500; #X obj 156 415 metro 500; #X floatatom 241 383 5 0 0 0 - - -; #X obj 156 385 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 156 441 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #N canvas 0 22 1066 634 Anything_Casting 0; #X obj 648 322 route; #X text 83 252 Many objects cast the data they receive when they output it:; #X obj 83 308 trigger anything; #X msg 83 283 this is a list without a cast; #X obj 83 336 print; #X obj 648 349 trigger; #X obj 647 377 niagara; #X obj 647 294 select; #X msg 81 96 anything 1 two three; #X obj 80 194 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 81 169 t a b f l p s; #X obj 156 195 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 302 124 list one 2 3; #X msg 299 154 1 2 3; #X text 75 43 "anything" allows anything to pass through unchanged. It is not a data type tho.; #X obj 85 468 trigger anything bang float list pointer symbol; #X obj 210 519 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 209 193 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 300 93 one 2 3; #X msg 87 429 2.5; #X msg 185 429 bang; #X msg 127 429 23 64; #X msg 239 429 symbol dog; #X msg 357 429 symbol cat; #X floatatom 271 515 5 0 0 0 - - -; #X symbolatom 550 500 10 0 0 0 - - -; #X obj 364 511 print a_list; #X floatatom 691 502 5 0 0 0 - - -; #X symbolatom 766 501 10 0 0 0 - - -; #X obj 841 525 print another_list; #X obj 691 449 r anythings; #X obj 85 516 s anythings; #X obj 691 474 route float symbol list; #X connect 2 0 4 0; #X connect 3 0 2 0; #X connect 8 0 10 0; #X connect 10 0 9 0; #X connect 10 3 11 0; #X connect 10 5 17 0; #X connect 12 0 10 0; #X connect 13 0 10 0; #X connect 15 0 31 0; #X connect 15 1 16 0; #X connect 15 2 24 0; #X connect 15 3 26 0; #X connect 15 5 25 0; #X connect 18 0 10 0; #X connect 19 0 15 0; #X connect 20 0 15 0; #X connect 21 0 15 0; #X connect 22 0 15 0; #X connect 23 0 15 0; #X connect 30 0 32 0; #X connect 32 0 27 0; #X connect 32 1 28 0; #X connect 32 2 29 0; #X restore 69 782 pd Anything_Casting; #X text 168 257 |; #X text 238 256 |; #X text 451 632 ==>; #X text 10 833 POUR PLUS D'INFORMATIONS:; #X text 277 801 transformation implicite de type; #X text 273 715 *Notion de sélecteur (= class) :; #X text 277 785 *Notion de casting :; #X text 275 733 déclaration explicite d'un type de données; #X text 35 717 ==>; #X text 36 736 ==>; #X text 35 760 ==>; #X text 35 783 ==>; #X obj 14 6 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X obj 14 82 cnv 15 600 30 empty empty ELEMENTI_DI_BASE 10 15 1 14 -241291 -1 0; #X obj 14 182 cnv 15 600 30 empty empty OGGETTI 10 15 1 14 -241291 -1 0; #N canvas 164 40 768 633 QUELQUES_OBJETS_COURANTS 0; #X obj 9 10 cnv 15 150 1850 empty empty empty 20 12 0 14 -241291 -66577 0; #X obj 16 438 receive; #X obj 16 409 send; #X obj 16 495 pack; #X obj 92 438 r; #X obj 65 409 s; #X obj 16 554 timer; #X obj 16 19 float; #X obj 17 200 select; #X obj 17 114 +; #X obj 17 142 >=; #X obj 17 171 print; #X obj 16 466 trigger; #X obj 73 19 f; #X obj 82 200 sel; #X obj 92 466 t; #X obj 16 524 unpack; #X obj 16 653 pipe; #X obj 16 583 delay; #X obj 16 624 metro; #X text 49 114 (etc.); #X text 52 142 (etc.); #X obj 16 44 symbol; #N canvas 0 22 676 362 sous-fenetre 0; #X obj 62 73 inlet; #X obj 118 73 inlet; #X obj 62 188 outlet; #X obj 118 101 t b f; #X obj 62 156 +; #X connect 0 0 4 0; #X connect 1 0 3 0; #X connect 3 0 4 0; #X connect 3 1 4 1; #X connect 4 0 2 0; #X restore 14 838 pd sous-fenetre; #X obj 15 980 savepanel; #X obj 59 1513 sig~; #X obj 58 1554 snapshot~; #X obj 25 1624 phasor~; #X obj 18 1133 tabread4; #X obj 25 1694 notein; #X obj 25 1720 ctlin; #X obj 25 1748 bendin; #X obj 25 1776 bendout; #X obj 25 1803 midiout; #X text 165 19 stock un nombre; #X text 165 47 stock un symbol; #X text 166 200 test une ou plusieurs egalitees; #X text 165 411 envoit un message sans fil.; #X text 166 441 recoit un message sans fil.; #X text 165 466 controle l'ordre des messages et leur format.; #X text 164 499 combine des elements en liste.; #X text 164 525 decombine les elements d'une liste.; #X text 165 554 mesure un laps de temps; #X text 167 623 metronome; #X text 166 584 passe un message apres un temps en ms. pas vrai delay \, nouvelle valeure ecrase l'ancienne si avant restitution.; #X obj 15 1018 openpanel; #X text 166 1094 lit un elements d'un tableau; #X text 169 1164 ecrit un element dans tableau .; #X obj 15 1050 soundfiler; #X text 165 1050 fichier_son <-> tableau; #X text 165 1064 recoit des messages style "write truc.wav mon_tableau" ; #X obj 661 1380 block~; #X text 172 1315 writes one block of a signal continuously to an array ; #X text 172 1330 By default a block is 64 samples \; this can be reset using the block~ object.; #X text 207 1397 By default a block is 64 samples \; this can be reset using the block~ object.; #X text 187 1378 - read a block of a signal from an array continuously ; #X text 168 1231 lit un elements d'un tableau; #X text 169 1255 lit un elemt d'un tableau avec interpolation 4 points ; #X text 174 1283 ecrit un element dans tableau .; #X obj 36 1503 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 165 1514 - convertit un nombre en signal audio.; #X floatatom 58 1491 5 0 0 0 - - -; #X floatatom 58 1579 5 0 0 0 - - -; #X text 166 1554 - convertit un nombre en signal audio quand recoit bang.; #X text 175 1617 sort une dent de scie a la frequence rentree a gauche entre 0 et 2pi soit la phase du signal a la frquence donnee.; #X obj 25 1654 osc~; #X text 175 1655 genere une sinusoide a la frequence donnee.; #X text 163 891 \$0 associe une valeure par instance de sous-fenetre ; #X text 165 911 Permet d'instancier des fenetre a partir de model generiques.pd et d'avoir des variable specifiques a la sous-fenetre.; #X text 163 876 \$1 associe a un parametre envoye a la sous-fenetre. ; #X text 174 1756 - MIDI; #X text 164 980 Ouvre une fenetre d'expoloration de fichiers "enregistrer sous"; #X text 165 1016 Ouvre une fenetre d'expoloration de fichiers "ouvrir" ; #X text 402 10 d'apres le travail de guilbut@bouygtel.fr; #X text 166 115 arithmetique; #X text 166 142 comparaison; #X text 167 172 affiche le resultat dans la fenetre TERMINAL; #X text 176 838 création de sous patch; #X text 165 652 retard (delay) sur les entrées (stock puis restitue) ; #X text 166 1133 lit un element d'un tableau avec interpolation 4 points ; #X obj 116 19 int; #X obj 17 231 route 1 2; #X obj 17 258 spigot; #X obj 17 285 moses 5; #X obj 17 313 random 5; #X text 167 232 redirige une liste ou suite en fonction de son 1er element; #X text 166 260 Clef de robinet; #X text 167 287 redirige en fonction < ou > a un nombre.; #X text 167 313 genere un entier aleatoir entre 0 et 5; #X obj 17 343 until; #X text 166 338 Envoit des bang jusqu'a ce que recoivent un bang a droite : ATTENTION : a utliser avec prudence \, il faut que ce soit le programme qui l'arrete automatiquement car on perd la main...; #X obj 14 681 loadbang; #X text 165 682 lance un bang a l'ouverture d'une fenetre \, voir aussi :; #X obj 654 681 init; #X msg 15 711 seed \$1; #X obj 15 742 qlist; #X text 167 710 sert plus ou moins a eviter de retomber sur le meme random a chaque fois ...; #X text 165 745 permet de fair du sequencage ...; #X obj 15 777 swap; #X obj 14 807 value; #X obj 17 72 lister; #X text 167 72 stock une liste; #X obj 16 1255 tabread4~ tabB; #X obj 17 1164 tabwrite tabA; #X obj 16 1229 tabread~ tabB; #X obj 16 1280 tabwrite~ tabB; #X obj 15 1094 tabread tabA; #X text 14 1203 A fréquence AUDIO :; #X obj 16 1315 tabsend~ tabB; #X obj 12 1378 tabreceive~ tabB; #X obj 16 1445 tabosc4~ tabB; #X text 166 1446 oscillateur : lit un tableau (taille=2^n+3) a une certaine frequence \, interpolation polynomial 4 points.; #X obj 636 126 table tabA 10; #X obj 637 157 table tabB 7; #X text 12 877 [monObjet \$1]; #X connect 25 0 26 0; #X connect 26 0 62 0; #X connect 59 0 26 0; #X connect 61 0 25 0; #X restore 393 188 pd QUELQUES_OBJETS_COURANTS; #X text 356 188 ==>; #X obj 10 476 cnv 15 600 50 empty empty Messaggi 10 15 1 14 -241291 -1 0; #X text 476 477 ==>; #X text 317 502 ==>; #X obj 10 529 cnv 15 600 30 empty empty G.U.I 10 15 1 14 -241291 -1 0; #N canvas 0 22 665 484 GUI 0; #X obj 26 55 cnv 15 600 200 empty empty GUI_graphic_user_interface 20 12 1 20 -241291 -4 0; #X obj 33 164 vsl 15 50 0 127 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 69 195 hsl 50 15 0 127 0 0 empty empty empty -2 -6 1 8 -262144 -258699 -1 0 1; #X obj 149 158 vradio 10 1 0 8 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X obj 191 194 hradio 10 1 0 8 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X obj 301 163 vu 15 80 vu empty -1 -8 0 8 -66577 -1 1 0; #X obj 382 161 cnv 15 60 60 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 552 157 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 476 156 tgl 30 0 empty empty empty 0 -6 0 8 -225280 -261689 -1 0 1; #X obj 477 214 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10 -24198 -258699 -258699 0 256; #X text 27 141 VSLIDER; #X text 66 176 HSLIDER; #X text 146 142 VRADIO; #X text 190 174 HRADIO; #X text 299 142 VUMETRE; #X text 379 142 CANVAS; #X text 475 137 TOGGLE; #X text 550 136 BANG; #X msg 294 94 \; vu -15 -3; #X floatatom 33 229 5 0 0 0 - - -; #X floatatom 29 108 5 0 0 0 - - -; #X obj 32 349 nbx 5 30 -1e+37 1e+37 0 0 empty empty empty 0 -6 1 14 -24198 -258699 -258699 0 256; #X floatatom 33 317 5 0 0 0 - - -; #X text 27 8 clic destro + help; #X text 27 23 clic destro + properties; #X text 28 89 NUMERO; #X text 476 195 NUMERO2; #X text 138 332 (shift + MOUSE : numero decimale); #X connect 1 0 19 0; #X restore 556 535 pd GUI; #X text 515 535 ==>; #X obj 10 562 cnv 15 600 30 empty empty Tables_Array 10 15 1 14 -241291 -1 0; #X text 442 565 ==>; #X obj 10 595 cnv 15 600 30 empty empty Types_de_donnees 10 15 1 14 -241291 -1 0; #X text 13 58 (clic dESTRO + help); #X text 465 44 il rettangolo giallo; #X text 467 59 è una canvas (GUI); #X text 145 121 MESSAGGIO; #X text 266 120 NUMERO; #X text 388 121 SIMBOLO; #X text 522 122 COMMENTO; #X text 22 120 OGGETTO; #X text 270 234 <= oggetto metro; #X text 126 312 *classe = funzione \, è invariabile; #X text 128 332 *argomento = variabile; #X text 238 271 argomento (inizializzazione); #X text 126 273 classe; #X text 336 416 2 entrate (inlets); #X text 336 433 1 uscita (outlet); #N canvas 194 25 686 699 MESSAGGI 0; #X msg 38 874 \; egg \$1; #X symbolatom 39 849 10 0 0 0 - - -; #X obj 333 148 print; #X obj 34 771 print; #X msg 34 717 52 356; #X msg 34 743 \$1 weeks \, \$2 days; #X obj 36 1016 print; #X floatatom 34 1087 0 0 0 0 - - -; #X floatatom 33 1141 0 0 0 0 - - -; #X msg 307 558 gatto; #X msg 320 471 set; #X obj 16 10 cnv 15 500 30 empty empty MESSAGGI 20 15 1 14 -241291 -66577 0; #X text 30 443 creer dynamiquement un message :; #X obj 277 296 metro 1000; #X msg 277 267 stop; #X obj 277 324 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 331 267 bang; #X msg 36 953 123 \; volume 858 \; frequence -45; #X obj 34 1063 receive volume; #X obj 33 1114 receive frequence; #X floatatom 193 954 5 0 0 0 - - -; #X msg 193 994 \; volume \$1 \;; #X obj 255 926 vsl 15 50 0 127 0 0 empty empty empty 0 -8 0 8 -261681 -258699 -1 0 1; #X symbolatom 204 882 10 0 0 0 - - -; #X obj 204 850 receive egg; #X text 31 689 variables "dollars sign" :; #X obj 236 1114 route volume frequence; #X msg 236 1084 volume 0.5; #X msg 255 1052 frequence 68; #X floatatom 236 1146 5 0 0 0 - - -; #X floatatom 343 1141 5 0 0 0 - - -; #X text 36 810 egg est le nom de l'envoi.$1 est une variable \, la donnée envoyée.; #X text 24 55 ctl+2; #X text 23 83 il messaggio + semplice:; #X text 20 215 Certi messaggi sono conosciuti \, funzionano con certi oggetti \, e sarà specificato nel help:; #X msg 333 84 banana; #X text 25 356 La maggior parte dei messaggi saranno definiti dall'utente \, per creare azioni facilmente richiamabilili; #X msg 307 419 set banana; #X msg 314 445 set gatto; #X msg 323 495 add dinero; #X msg 328 520 add2 gratis; #X text 38 496 set = rimpiazza; #X text 37 514 add = aggiungi con \;; #X text 27 533 add2 = aggiungi senza \;; #X text 32 632 Il punto e virgola prima del messaggio invia un messaggio senza la necessità di connessione; #X connect 1 0 0 0; #X connect 4 0 5 0; #X connect 5 0 3 0; #X connect 10 0 9 0; #X connect 13 0 15 0; #X connect 14 0 13 0; #X connect 16 0 13 0; #X connect 17 0 6 0; #X connect 18 0 7 0; #X connect 19 0 8 0; #X connect 20 0 21 0; #X connect 22 0 21 0; #X connect 24 0 23 0; #X connect 26 0 29 0; #X connect 26 1 30 0; #X connect 27 0 26 0; #X connect 28 0 26 0; #X connect 35 0 2 0; #X connect 37 0 9 0; #X connect 38 0 9 0; #X connect 39 0 9 0; #X connect 40 0 9 0; #X restore 516 478 pd MESSAGGI; #N canvas 6 22 784 770 MESSAGGI 0; #X obj 22 394 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 26 569 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 24 773 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 22 62 cnv 15 700 100 empty empty MESSAGGI_E_PORTE 20 12 1 14 -241291 -66577 0; #X obj 39 220 hsl 50 15 0 127 0 0 empty empty empty -2 -6 0 8 -261689 -258699 -1 0 0; #X floatatom 37 419 5 0 0 0 - - -; #X floatatom 95 420 5 0 0 0 - - -; #X obj 197 220 hsl 50 15 0 127 0 0 empty empty empty -2 -6 0 8 -261689 -258699 -1 0 0; #X obj 360 219 hsl 50 15 0 127 0 0 empty empty empty -2 -6 0 8 -261689 -258699 -1 0 0; #X obj 40 307 hsl 50 15 0 127 0 0 empty empty empty -2 -6 0 8 -261689 -258699 -1 0 0; #X obj 230 309 hsl 50 15 0 127 0 0 empty empty empty -2 -6 0 8 -261689 -258699 -1 0 0; #X obj 37 443 s A; #X obj 95 443 s B; #X floatatom 37 692 5 0 0 0 - - -; #X obj 221 654 f \$0; #X obj 221 634 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 221 681 5 0 0 0 - - -; #X floatatom 38 635 5 0 0 0 - - -; #X floatatom 128 661 5 0 0 0 - - -; #X obj 38 659 s \$0-foo; #X obj 128 635 r \$0-foo; #X obj 37 716 s 1012-foo; #N canvas 318 78 293 206 sous-patch4 0; #X obj 27 33 f \$0; #X obj 27 13 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 27 60 5 0 0 0 - - -; #X floatatom 117 47 5 0 0 0 - - -; #X obj 117 21 r \$0-foo; #X connect 0 0 2 0; #X connect 1 0 0 0; #X connect 4 0 3 0; #X restore 153 716 pd sous-patch4; #X floatatom 120 915 5 0 0 0 - - -; #X floatatom 213 914 5 0 0 0 - - -; #X floatatom 307 915 5 0 0 0 - - -; #X obj 213 938 s 2-fils; #X obj 307 940 s 3-petit-fils; #X floatatom 120 1016 5 0 0 0 - - -; #X obj 120 1041 s 1-2-fils; #X text 34 774 UNIQUE - heriter la variable des parents/ message unique ; #X obj 120 939 s 1-mere; #X obj 172 1279 dist; #X obj 220 1279 remote; #X obj 27 1245 cnv 15 500 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 34 1279 table routing; #X obj 29 1167 cnv 15 500 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 44 1208 netreceive; #X obj 157 1208 netsend; #X obj 243 1208 OSCroute; #X obj 35 914 mere 1; #X obj 287 1278 route; #X text 288 305 <- non ne raccoglie; #X text 32 183 Si possono avere diversi send/receive dello stesso nome ; #X obj 36 241 send diobang; #X obj 195 242 send diobang; #X obj 357 240 send diobang; #X obj 37 279 receive diobang; #X obj 227 278 receive dio; #N canvas 0 22 400 114 sub-patch1 0; #X floatatom 1 62 5 0 0 0 - - -; #X obj 1 39 r A; #X text -3 5 Tutte le sub-patch riceveranno "send A"; #X connect 1 0 0 0; #X restore 38 487 pd sub-patch1; #N canvas 4 159 262 115 sub-patch2 0; #X floatatom 18 59 5 0 0 0 - - -; #X obj 18 24 r B; #N canvas 5 328 309 122 sub-patch3 0; #X floatatom 12 70 5 0 0 0 - - -; #X obj 12 44 r A; #X text 3 2 Anche se lontano dalla patch madre riceve il "send A"; #X connect 1 0 0 0; #X restore 78 47 pd sub-patch3; #X connect 1 0 0 0; #X restore 38 513 pd sub-patch2; #X text 34 394 GLOBALE - invia e riceve messaggi in tutte le patch ; #X text 34 588 \$0 : variabile pensata per comunicare a Pd che la variabile utilizzata è unica in tutto il patch; #X text 37 567 LOCALE; #X text 33 798 In Pd \, ogni abstaraction e tutte le sue sub-patch sono "parents": un parent di una patch \, è la patch da cui è stata creata l'istanza dell'abstractionDans PD \, chaque abstractions et sous-patchs ont des parents.; #X text 34 859 Possiamo utilizzare gli argomenti dell'abstraction per inviare i valori; #X text 65 1081 Il segno dollaro ($) si mette sempre all'inizio del simbolo. Les signes dollar $ se placent toujours au debut du symbol. ; #X text 40 1168 NETWORK; #X text 40 1247 ROUTING DEI MESSAGGI; #X text 27 365 La porta di un messaggio può essere GLOBALE/LOCALE/: ; #X text 41 92 Gli oggetti send e receive permettono l'invio e la ricezione di messaggi \, senza bisogno di connessioni. Al posto di quest'ultimi si utilizzano nomi variabile.; #X text 25 27 -> vedere pd/doc/5.reference/all_about_scope_and_locality.pd ; #X connect 4 0 44 0; #X connect 5 0 11 0; #X connect 6 0 12 0; #X connect 7 0 45 0; #X connect 8 0 46 0; #X connect 13 0 21 0; #X connect 14 0 16 0; #X connect 15 0 14 0; #X connect 17 0 19 0; #X connect 20 0 18 0; #X connect 23 0 31 0; #X connect 24 0 26 0; #X connect 25 0 27 0; #X connect 28 0 29 0; #X connect 47 0 9 0; #X connect 48 0 10 0; #X restore 356 503 pd MESSAGGI SENZA CONNETORI; #N canvas 410 22 1097 739 ARRAY 0; #X obj 21 50 cnv 15 700 30 empty empty TABLES_ARRAY 20 15 1 20 -241291 -1 0; #N canvas 0 22 450 300 graph2 0; #X array STOCK2 67 float 1; #A 0 -1 -0.5 -0.2 0 0.2 0.5 1 0.5 0.2 0.482843 0.368503 0.248668 0.1383 0.0496613 -0.00915198 -0.0350214 -0.02987 -5.30717e-07 0.0451668 0.0947471 0.138171 0.166818 0.175263 0.161958 0.129262 0.0828437 0.0305703 -0.0189252 -0.0577528 -0.0801085 -0.0832311 -0.0678265 -0.0378953 -1.06144e-06 0.0378934 0.0678253 0.0832307 0.0801092 0.0577545 0.0189276 -0.0305674 -0.082841 -0.12926 -0.161957 -0.175263 -0.166819 -0.138173 -0.0947497 -0.0451695 -1.59217e-06 0.029869 0.0350219 0.00915428 -0.0496573 -0.138294 -0.248661 -0.368496 -0.482838 -0.575953 -0.633467 -0.644387 -0.602737 -0.508555 -0.368099 -0.193225 -1.06144e-05 0.193205; #X coords 0 1 66 -1 200 140 1; #X restore 160 577 graph; #X obj 118 338 table STOCK 10; #X msg 133 371 \; STOCK 0 -1 0 1 0 -1 0 1 0 -1 \;; #X msg 62 1286 \; STOCK2 read table.txt; #X msg 284 1286 \; STOCK2 write table.txt; #X msg 281 943 3; #X floatatom 281 1004 5 0 0 0 - - -; #X floatatom 322 944 5 0 0 0 - - -; #X text 225 943 index; #X obj 73 299 cnv 20 20 30 empty empty 1 0 15 1 20 -233017 -66577 0 ; #X obj 73 539 cnv 20 20 30 empty empty 2 0 15 1 20 -233017 -66577 0 ; #X text 374 567 1; #X text 367 706 -1; #X text 154 722 0; #X text 356 720 9; #X obj 281 976 tabread STOCK2; #X obj 27 269 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 40 899 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 36 1197 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X floatatom 281 1093 5 0 0 0 - - -; #X floatatom 425 1095 5 0 0 0 - - -; #X text 372 1095 index; #X obj 40 1059 cnv 15 700 20 empty empty empty 20 12 0 14 -233017 -66577 0; #X obj 281 1136 tabwrite STOCK2; #X obj 640 960 tabread~; #X obj 640 989 tabread4~; #X msg 160 809 \; STOCK2 sinesum 64 0.2 0.2 0.2 0.2; #X msg 222 1126 0.3; #X obj 635 1136 tabwrite~; #X text 638 936 AUDIO; #X obj 642 1016 tabosc4~; #X text 634 1112 AUDIO; #X msg 160 753 \; STOCK2 resize 9 \; STOCK2 0 -1 -0.5 -0.2 0 0.2 0.5 1 0.5 0.2; #X text 28 19 -> vedere : ./pd/doc/5.reference/all_about_arrays.pd ; #X text 32 88 ARRAY (= tavola di valori) \, è un contenitore di numeri. ; #X text 31 107 è un oggetto dove immagaziniamo dati. Ogni Array dovrà portare un nome differente per non ritrovarsi con un messaggio di errore nella consolle di PD.; #X text 31 183 ==> si può utilizzare la tavola per crare presets \, sequenze di note \, per la visualizzazione \, per i samplers ecc ecc. ; #X text 25 -1 click destro + properties (size \, name \, save contents) ; #X text 37 268 Ci sono due modi di richiamare un Array; #X text 101 302 oggetto [table] ; #X text 261 337 <= apri [table STOCK 10]: appena creato l'array non contiene nessun dato.; #X text 439 381 <= inseriamo dati nell'array [table STOCK 10]; #X text 129 422 -invio di un messaggio senza connessioni (comincia per punto e virgola); #X text 127 458 -STOCK è il nome dell'array; #X text 128 480 -Lo zero iniziale indica l'index da cui deve partire per inserire i dati nell'array. L'index \, indice \, è la posizione in un array. Un array inizia sempre con indice zero.; #X text 105 545 dal menu PUT -> array; #X text 603 769 <= cliccare qui; #X text 497 819 <= funzioni matematiche avanzate; #X text 58 898 Per leggere il contenuto di un Array:; #X text 214 1002 valore; #X text 58 1058 Per scrivere su un array:; #X text 52 1197 Comprendere che è una successione di numeri; #X text 215 1092 valore; #X text 61 1239 Possiamo editare file txt esterni e utilizzarli in lettura; #X connect 6 0 16 0; #X connect 8 0 16 0; #X connect 16 0 7 0; #X connect 20 0 24 0; #X connect 21 0 24 1; #X connect 28 0 24 0; #X restore 484 566 pd ARRAY; #N canvas 0 22 301 305 abbreviazioni 0; #X obj 34 21 trigger; #X obj 34 48 send; #X obj 34 75 receive; #X obj 33 104 int; #X obj 33 131 float; #X obj 33 158 bang; #X obj 33 186 symbol; #X obj 186 22 t; #X obj 186 49 s; #X obj 186 76 r; #X obj 185 105 i; #X obj 186 132 f; #X obj 185 159 b; #X text 187 190 s; #X text 187 215 l; #X text 185 241 a; #X text 32 215 list; #X text 29 241 anything; #X restore 486 632 pd abbreviazioni; #X text 24 10 sub-patch I TIPI DI DATI IN PD; #X connect 22 0 25 0; #X connect 23 0 22 1; #X connect 24 0 22 0; #X restore 384 426 pd TUTTI I TIPI DI DATI; #N canvas 115 22 859 717 TRIGGER 0; #X obj 11 41 cnv 15 800 30 empty empty Ordine_di_esecuzione 20 15 1 14 -241291 -1 0; #X obj 92 145 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 92 208 print a; #X obj 172 208 print b; #X obj 373 147 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 373 210 print a; #X obj 458 212 print b; #X obj 95 307 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 96 392 print a; #X obj 176 392 print b; #X obj 366 319 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 366 392 print a; #X obj 446 392 print b; #X obj 95 328 t b b; #X obj 366 340 t b b; #X obj 135 533 +; #X floatatom 203 479 5 0 0 0 - - -; #X floatatom 135 479 5 0 0 0 - - -; #X floatatom 135 566 5 0 0 0 - - -; #X obj 130 666 +; #X floatatom 196 605 5 0 0 0 - - -; #X floatatom 130 603 5 0 0 0 - - -; #X floatatom 130 699 5 0 0 0 - - -; #X msg 81 636 bang; #X obj 266 667 +; #X floatatom 332 602 5 0 0 0 - - -; #X floatatom 266 604 5 0 0 0 - - -; #X floatatom 266 700 5 0 0 0 - - -; #X obj 332 631 t b f; #X obj 496 659 +; #X floatatom 496 606 5 0 0 0 - - -; #X floatatom 496 692 5 0 0 0 - - -; #X obj 603 668 +; #X floatatom 603 605 5 0 0 0 - - -; #X floatatom 603 694 5 0 0 0 - - -; #X obj 603 631 t f f; #X obj 17 436 cnv 15 800 30 empty empty inlets_caldi_/_inlets_freddi 20 15 1 14 -241291 -1 0; #X obj 17 734 cnv 15 800 30 empty empty Trigger_e_dati 20 15 1 14 -241291 -1 0; #X obj 79 923 trigger float bang symbol list pointer anything; #X obj 601 922 t f b s l p a; #X text 77 902 (voir types de données); #X floatatom 80 778 5 0 0 0 - - -; #X obj 80 865 print a; #X obj 192 861 print b; #X text 562 923 ==>; #X obj 305 864 print c; #X obj 80 808 trigger bang float bang; #X text 34 288 ----------------------------------------------------- ; #X obj 11 6 cnv 15 800 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X text 21 10 sub-patch TRIGGER; #X text 35 85 - Per ordine delle connessioni create; #X text 567 168 <= clicca il bang e guarda; #X text 572 192 la differenza nel terminale; #X text 36 263 Ordine dato dal [trigger] (invio dei messaggi da destra a sinistra); #X text 23 173 primo; #X text 150 173 ultimo; #X text 290 171 ultimo; #X text 433 170 primo; #X text 27 357 primo; #X text 154 357 ultimo; #X text 447 359 primo; #X text 283 364 ultimo; #X text 560 347 <= clicca il bang e guarda; #X text 565 371 la differenza nel terminale; #X text 396 443 Esempio con un'addizione; #X text 39 525 entrata--; #X text 41 542 calda; #X text 178 524 -- entrata; #X text 208 541 fredda; #X text 318 522 *entrata calda: invio dei dati + impulso; #X text 317 539 *entrata fredda: donnée memorizzazione dei dati senza impulso; #X text 493 585 sbagliato; #X text 603 585 corretto; #X text 405 781 *NOTA:; #X text 416 798 è in atto una trasformazione implicità; #X text 414 815 del tipo di dato. Qui \, il float si converte anche in un bang; #X connect 1 0 2 0; #X connect 1 0 3 0; #X connect 4 0 6 0; #X connect 4 0 5 0; #X connect 7 0 13 0; #X connect 10 0 14 0; #X connect 13 0 9 0; #X connect 13 1 8 0; #X connect 14 0 11 0; #X connect 14 1 12 0; #X connect 15 0 18 0; #X connect 16 0 15 1; #X connect 17 0 15 0; #X connect 19 0 22 0; #X connect 20 0 19 1; #X connect 20 0 23 0; #X connect 21 0 19 0; #X connect 23 0 19 0; #X connect 24 0 27 0; #X connect 25 0 28 0; #X connect 26 0 24 0; #X connect 28 0 24 0; #X connect 28 1 24 1; #X connect 29 0 31 0; #X connect 30 0 29 0; #X connect 30 0 29 1; #X connect 32 0 34 0; #X connect 33 0 35 0; #X connect 35 0 32 0; #X connect 35 1 32 1; #X connect 41 0 46 0; #X connect 46 0 42 0; #X connect 46 1 43 0; #X connect 46 2 45 0; #X restore 423 454 pd TRIGGER; #N canvas 220 22 754 742 LISTE_MESSAGGI 0; #X msg 28 147 \$1 100; #X obj 102 173 print; #X msg 102 119 52 356; #X obj 28 173 print; #X floatatom 28 120 5 0 0 0 - - -; #X obj 331 209 unpack f f; #X obj 331 157 pack f f; #X obj 27 260 print; #X msg 27 206 52 356; #X msg 27 232 \$2 mètres et \$1 centimètres; #X msg 102 145 \$1 weeks \, \$2 days; #X msg 429 154 2000 0.5; #X floatatom 331 244 5 0 0 0 - - -; #X floatatom 406 240 5 0 0 0 - - -; #X floatatom 331 128 5 0 0 0 - - -; #X floatatom 390 128 5 0 0 0 - - -; #X obj 306 130 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 25 341 pack float symbol pointer; #X obj 283 341 pack f s p; #X obj 140 631 print; #X msg 140 588 \$1 100; #X floatatom 140 549 5 0 0 0 - - -; #X obj 140 499 random 100; #X obj 140 473 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 217 555 5 0 0 0 - - -; #X msg 217 588 20 \$2; #X msg 18 584 \$2 metres \$1; #X msg 18 554 50 20; #X floatatom 40 733 5 0 0 0 - - -; #X floatatom 40 854 5 0 0 0 - - -; #X floatatom 187 730 5 0 0 0 - - -; #X obj 8 41 cnv 15 600 30 empty empty Liste_e_messaggi 20 15 1 14 -241291 -1 0; #X obj 8 6 cnv 15 600 30 empty empty empty 10 15 1 14 -233017 -62784 0; #X msg 540 157 \$1 100; #X floatatom 540 134 5 0 0 0 - - -; #X text 236 340 =; #X text 18 10 sub-patch LISTE E MESSAGGI; #X text 233 47 (vedere anche TUTTI I TIPI DI DATI); #X text 27 75 Ripasso:; #X text 23 320 abbreviazioni; #X text 18 393 errore frequente: "number out of range" dato da un maluso del segno $; #X text 135 443 segno dollaro $; #X text 273 589 SBAGGLIATO!!!!; #X text 38 705 messaggi senza connessioni; #X msg 40 760 \; banana \$1; #X obj 187 773 s banana; #X obj 40 823 r banana; #X connect 0 0 3 0; #X connect 2 0 10 0; #X connect 4 0 0 0; #X connect 5 0 12 0; #X connect 5 1 13 0; #X connect 6 0 5 0; #X connect 8 0 9 0; #X connect 9 0 7 0; #X connect 10 0 1 0; #X connect 11 0 5 0; #X connect 14 0 6 0; #X connect 15 0 6 1; #X connect 16 0 6 0; #X connect 20 0 19 0; #X connect 21 0 20 0; #X connect 22 0 21 0; #X connect 23 0 22 0; #X connect 24 0 25 0; #X connect 25 0 19 0; #X connect 26 0 19 0; #X connect 27 0 26 0; #X connect 28 0 44 0; #X connect 30 0 45 0; #X connect 33 0 5 0; #X connect 34 0 33 0; #X connect 46 0 29 0; #X restore 471 482 pd LISTE_MESSAGGI RIPASSO;