Benvenuto, Visitatore. Per favore, effettua il login o registrati.

  Hai perso la tua email di attivazione?

Main Home Help Ricerca Login Registrati

+  Virtual Sound - FORUM
|-+  Linguaggi per Computer Music, Video e Grafica
| |-+  Max/MSP
| | |-+  Routing segnali
« precedente successivo »
Pagine: [1] Stampa
Autore Topic: Routing segnali  (Letto 589 volte)
Galileo
Full Member
***
Posts: 151


Guarda Profilo
« il: Giugno 03, 2010, 21:02:40 »

Salve, ho di nuovo un problema e mi affido alla vostra sapienza.

Per il brano che sto scrivendo sto creando dei moduli semplici che sono poi delle abstractions.
Io vorrei poter creare un sistema modulare con un routing flessibile, allego una patch di esempio per farmi capire
( ho trasformato le abstraction in subpatch anche se il loro contenuto non è influente)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 15 28 45 9109513 loadbang;
#P window linecount 2;
#P newex 602 136 48 9109513 loadmess 1;
#N vpreset 1;
#X append 1 2 7 80 486 matrixctrl list 0 0 0 0 1 1 0 2 0 1 0 1 1 1 0 1 2 0 2 0 0 2 1 0 2 2 0 \; 8 118 51 toggle int 0 \;;
#P preset 553 207 47 27;
#P window linecount 1;
#P message 84 92 47 9109513 ramp 500;
#P message 12 118 31 9109513 open;
#N sfplay~  1 120960 0 ;
#P newobj 15 145 60 9109513 sfplay~;
#P message 78 119 35 9109513 loop 1;
#P toggle 51 118 15 0;
#P user matrixctrl 486 80 56 60 MatrixDefaultCell.pct MatrixDefaultBkgnd.pct 56 60 16 16 3 3 16 16 1 1 48 2 5120 0;
#P user ezdac~ 89 325 133 358 0;
#P newex 188 172 66 9109513 matrix~ 3 3 1.;
#P newex 143 115 28 9109513 input;
#N vpatcher 15 55 207 262;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 434 93 48 9109513 pipe 1000;
#P newex 304 175 28 9109513 *~ 0.;
#P message 361 137 41 9109513 \$1 1000;
#P message 356 76 26 9109513 0;
#P message 337 77 14 9109513 1;
#P newex 362 157 27 9109513 line~;
#P user ezdac~ 532 524 576 557 0;
#P message 295 79 31 9109513 open;
#N sfplay~  1 120960 0 ;
#P newobj 295 109 60 9109513 sfplay~;
#P message 683 5 21 9109513 0.2;
#P newex 716 -22 45 9109513 loadbang;
#P user meter~ 38 120 118 133 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3;
#P inlet 389 188 15 0;
#P outlet 387 498 15 0;
#P message 117 34 21 9109513 $1;
#P flonum 77 101 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 39 101 35 9 0 0 128 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 23 81 14 9109513 0;
#P message 14 40 23 9109513 100;
#P message 317 401 36 9109513 \$1 100;
#P newex 317 424 40 9109513 line 1.;
#P newex 386 451 52 9109513 normalize~;
#P user multiSlider 77 33 16 66 0. 1. 1 2937 47 0 0 3 0 4 0;
#M frgb 75 75 75;
#M brgb 198 198 198;
#M rgb2 251 255 91;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P message 535 350 36 9109513 \$1 100;
#P newex 535 373 27 9109513 line~;
#P button 562 292 15 0;
#P button 535 292 15 0;
#P user multiSlider 39 33 16 66 0. 150. 1 2937 47 0 0 3 0 4 0;
#M frgb 75 75 75;
#M brgb 198 198 198;
#M rgb2 251 255 91;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P newex 161 348 30 9109513 fader;
#P message 562 321 16 9109513 1.;
#P message 535 321 16 9109513 0.;
#P message 103 137 35 9109513 restart;
#B color 12;
#P message 13 137 35 9109513 cancel;
#B color 12;
#P newex 387 410 28 9109513 *~ 0.;
#P newex 463 407 31 9109513 *~ 1.;
#P newex 387 353 62 9109513 tapout~ 1000;
#P newex 387 329 56 9109513 tapin~ 1000;
#P window linecount 4;
#P comment 55 38 13 9109513 g a i n;
#P window linecount 3;
#P comment 94 35 16 9109513 l i m i t;
#P user panel 10 31 133 129;
#X brgb 200 220 230;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P hidden fasten 29 0 21 0 721 2 19 2;
#P hidden fasten 18 0 28 0 391 481 226 481 226 463 43 463;
#P hidden fasten 22 0 12 0 28 111 -11 111 -11 12 44 12;
#P hidden fasten 21 0 12 0 19 72 -3 72 -3 29 44 29;
#P hidden connect 12 0 23 0;
#P hidden fasten 30 0 17 0 688 7 82 7;
#P hidden connect 17 0 24 0;
#P hidden fasten 23 0 11 0 44 341 166 341;
#P connect 39 0 31 0;
#P connect 32 0 31 0;
#P connect 35 0 31 0;
#P connect 31 0 38 0;
#P hidden fasten 24 0 20 0 82 332 322 332;
#P connect 20 0 19 0;
#P connect 34 0 38 1;
#P connect 35 0 37 0;
#P connect 36 0 37 0;
#P connect 37 0 34 0;
#P connect 6 0 18 0;
#P connect 38 0 3 0;
#P fasten 5 0 3 0 468 454 513 454 513 322 392 322;
#P connect 27 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 6 0;
#P connect 18 0 26 0;
#P connect 11 0 6 1;
#P fasten 19 0 18 1 322 447 433 447;
#P connect 36 0 39 0;
#P connect 4 0 5 0;
#P connect 15 0 5 1;
#P connect 18 0 33 0;
#P hidden fasten 7 0 13 0 18 289 540 289;
#P connect 13 0 9 0;
#P connect 10 0 16 0;
#P connect 9 0 16 0;
#P connect 16 0 15 0;
#P hidden fasten 8 0 14 0 108 283 567 283;
#P connect 14 0 10 0;
#P hidden fasten 29 0 10 0 721 173 567 173;
#P connect 18 0 33 1;
#P connect 29 0 30 0;
#P pop;
#P newobj 285 89 63 9109513 p feed_delay;
#N vpatcher 15 55 615 455;
#P window setfont "Sans Serif" 9.;
#P message 488 28 23 9109513 100;
#P message 460 32 21 9109513 0.3;
#P message 427 31 14 9109513 4;
#P newex 433 0 45 9109513 loadbang;
#P flonum 13 65 35 9 0. 1. 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 17 82 100 9109513 depth;
#P newex 339 315 30 9109513 fader;
#P user multiSlider 55 34 16 66 0. 150. 1 2937 47 0 0 3 0 4 0;
#M frgb 75 75 75;
#M brgb 198 198 198;
#M rgb2 251 255 91;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P number 13 34 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N comlet gain;
#P inlet 522 292 15 0;
#P outlet 300 383 15 0;
#P newex 301 346 27 9109513 *~;
#N comlet in;
#P inlet 289 150 15 0;
#P newex 428 253 38 9109513 line~;
#P flonum 430 201 68 9 0. 1. 163 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 430 222 38 9109513 \$1 50;
#P message 374 178 38 9109513 \$1 50;
#P newex 374 197 38 9109513 line~;
#P newex 430 179 73 9109513 expr 1.-$f1;
#N comlet trem depth;
#P inlet 380 148 15 0;
#P newex 318 278 27 9109513 +~;
#P newex 317 230 27 9109513 *~;
#P newex 317 178 36 9109513 cycle~;
#P newex 301 316 27 9109513 *~;
#P comment 18 48 100 9109513 freq;
#P user panel 8 29 80 79;
#X brgb 220 220 240;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#N comlet mod freq;
#P inlet 317 148 15 0;
#P hidden connect 24 0 18 0;
#P hidden connect 25 0 22 0;
#P hidden connect 26 0 19 0;
#P connect 15 0 16 0;
#P connect 14 0 3 0;
#P connect 3 0 15 0;
#P hidden fasten 18 0 4 0 18 169 322 169;
#P connect 0 0 4 0;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 3 1;
#P connect 20 0 15 1;
#P connect 17 0 15 1;
#P connect 9 0 5 1;
#P connect 13 0 6 1;
#P hidden fasten 19 0 20 0 60 304 344 304;
#P connect 7 0 10 0;
#P hidden connect 22 0 10 0;
#P connect 10 0 9 0;
#P connect 23 0 24 0;
#P connect 11 0 13 0;
#P connect 7 0 8 0;
#P hidden connect 22 0 8 0;
#P connect 8 0 12 0;
#P connect 12 0 11 0;
#P connect 23 0 25 0;
#P pop;
#P newobj 220 89 53 9109513 p am;
#P comment 16 171 100 9109513 test sample;
#P window linecount 13;
#P user com 206 243 246 9109513 257;
#K set 0 30319 29298 25961 8291 26725 8297 27680 29541 26478 24940 25888 25705 8297 28263 29285 29555 28448 25966 29810 24947 29541 8297 28192 10049 19751 8293 8292 24864 29045 26912 30067 25449 29555 25902 11822 3443 25965 28780 26979 25888 28001 8304 24946 25888 25448 25888 28001 29810 27000 32288 28271 28192 24931 25445 29812 26912 25455 28270 25971 29545 28526 26912 25448 25888 28783 29555 24942 28448 26469 28261 29281 29285 8294 25957 25698 24931 27405 28257 29813 29281 27757 25966 29797 8305 30053 29556 28448 -28896 30062 8293 29541 28016 26991 8307 25965 28780 26979 25888 25448 25888;
#K set 100 29545 8304 30104 8306 26995 28524 30309 29285 8297 28192 28015 27764 26912 28015 25705 11296 28001 8291 26725 8294 24946 25888 29541 8289 25632 25971 25965 28777 28448 30319 27749 29555 26912 25458 25953 29285 8309 28257 8307 28530 29793 8292 26912 28015 25717 27745 29289 29832 8308 29281 8300 25888 24930 29556 29281 25460 26991 28204 8303 30326 25970 28448 30062 8306 28533 29801 28263 8292 26990 24941 26979 28448 25711 30309 8300 25888 24930 29299 29810 24931 29801 28526 8224 28783 29555 24942 28448 25971 29541 29285 8291 28526 28261 29555 25888 25888 25705 29539 28526 28261;
#K set 200 29555 25888 29810 24864 25705 8300 28530 28479 3413 28192 25455 28016 27749 29555 28448 29545 29556 25965 24864 25705 8307 25966 25632 25888 29285 25445 26998 25888 24946 26479 28005 28276 26912 30305 29289 24930 26988 26943 3413 28257 8304 24948 25448 8291 26725 8294 30062 26465 8292 24864 18517 16959 3425 26997 29807 11822 11776;
#K end;
#P connect 8 0 10 0;
#P connect 9 0 10 0;
#P connect 11 0 10 0;
#P connect 15 0 9 0;
#P connect 15 0 12 0;
#P connect 5 0 6 0;
#P connect 5 0 6 1;
#P connect 12 0 5 0;
#P connect 4 0 5 0;
#P connect 7 0 5 0;
#P connect 10 0 5 0;
#P connect 2 0 5 1;
#P fasten 5 1 2 0 207 216 413 216 413 61 225 61;
#P connect 3 0 5 2;
#P fasten 5 2 3 0 221 208 429 208 429 67 290 67;
#P connect 14 0 13 0;
#P window clipboard copycount 16;
Loggato
Maurizio Giri
Amministratore
Hero Member
*****
Posts: 783


Guarda Profilo WWW
« Risposta #1 il: Giugno 03, 2010, 22:17:08 »

Per mettere un segnale in feedback, devi spezzare il loop (che maxmsp non permette) con una coppia send~/receive~ (con la tilde) oppure con tapin~/tapout~ (senza argomenti): questo tipo di loop comporta comunque un ritardo pari al signal vector size (cfr la finestra DSP status)

m
Loggato

Galileo
Full Member
***
Posts: 151


Guarda Profilo
« Risposta #2 il: Giugno 04, 2010, 11:00:30 »

grazie mille! ..ormai sei il mio debugger personale :-) !!! appena posso acquisterò il libro tuo e di alessandro lo prometto.

per il signal vector size creo di poter conviver con 512 campioni di ritardo, ora provo il tuo consiglio.

Loggato
Galileo
Full Member
***
Posts: 151


Guarda Profilo
« Risposta #3 il: Giugno 04, 2010, 12:52:17 »

ho provato e va alla grande.
Preferisco usare send~ e receive~ anche perchè perche se la matrice si ingrandisce è più facile avere una patch più ordinata. ( sto su max 4 ancora...)
se ho capito bene dal manuale se uso argomenti tipo #0delay non corro rischi che i vari send e receive si disturbino se ad esempio inavvertitamente in una abstraction o in una subpatch ho un send~ delay?

Grazie ancora.
Loggato
Maurizio Giri
Amministratore
Hero Member
*****
Posts: 783


Guarda Profilo WWW
« Risposta #4 il: Giugno 07, 2010, 22:19:37 »

se in una abstraction usi #0delay non hai problemi (ogni #0 prende un numero diverso), in una subpatch sì.

m
Loggato

lorbi
Sr. Member
****
Posts: 316


Guarda Profilo
« Risposta #5 il: Giugno 08, 2010, 10:34:12 »

funziona anche in m4L che voi sappiate?

Loggato
Maurizio Giri
Amministratore
Hero Member
*****
Posts: 783


Guarda Profilo WWW
« Risposta #6 il: Giugno 08, 2010, 11:51:31 »

in m4l per rimanere all'interno di un device devi usare tre lineette [send ---delay]
(e ovviamente con #0 rimani all'interno dell'abstraction)

m
Loggato

lorbi
Sr. Member
****
Posts: 316


Guarda Profilo
« Risposta #7 il: Giugno 08, 2010, 17:59:51 »

grasssssie
Loggato
Pagine: [1] Stampa 
« precedente successivo »
Salta a:  


Login con username, password e lunghezza della sessione

Powered by MySQL Powered by PHP © Copyright 1996 - 2008 - ConTempoNet Edizioni Musicali ® - P.IVA: 05174251008
Tutti i diritti riservati - Tutti i marchi sono registrati -
È vietata la riproduzione, anche parziale, dei testi e delle immagini.
Powered by SMF 1.1.15 | SMF © 2006-2008, Simple Machines
Traduzione Italiana a cura di SMItalia
XHTML 1.0 Valido! CSS Valido!