XML Feeds

.

[maxmsp] 2 Channel Crossfade for Audio and Video

JimBuck cbirkholz at mcad.edu
Thu Dec 6 19:57:38 MST 2007


Greetings,

I am working on a patch that allows me to crossfade between 2 videos (A and B). I understand the crossfading of video but I am having a tough time crossfading the audio that accompanies the quicktime video. I know I am almost there with the idea but I just can't grasp the concept of crossfading using spigot~. The patch is posted below. Thanks folks.

-Jim

max v2;
#N vpatcher -4 44 1266 850;
#P origin 23 -10;
#P window setfont "Sans Serif" 9.;
#P flonum 544 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 564 91 50 196617 xfade \$1;
#P message 866 294 32 196617 mute;
#P message 910 294 29 196617 stop;
#P button 927 264 15 0;
#P newex 954 264 45 196617 loadbang;
#P message 954 318 78 196617 soc audioSendB;
#P message 993 174 28 196617 read;
#P message 1029 174 31 196617 start;
#P flonum 964 153 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 930 153 15 0;
#P newex 930 173 44 196617 metro 2;
#P newex 912 202 105 196617 jit.qt.movie 640 480;
#B color 5;
#P user meter~ 915 678 995 691 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 user meter~ 992 657 1072 670 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 newex 1124 453 23 196617 abs;
#P newex 1124 427 36 196617 - 127;
#P user gain~ 992 477 24 100 128 0 1. 7.94321 10.;
#P number 1130 284 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user gain~ 915 469 24 100 128 0 1. 7.94321 10.;
#P user hslider 1115 338 18 128 128 1 0 0;
#P toggle 963 492 15 0;
#P newex 915 403 96 196617 spigot~ audioSendB;
#P newex 1177 675 31 196617 dac~;
#P message -33 309 32 196617 mute;
#P message 11 309 29 196617 stop;
#P button 28 279 15 0;
#P newex 55 279 45 196617 loadbang;
#P message 55 333 79 196617 soc audioSendA;
#P message 94 189 28 196617 read;
#P message 130 189 31 196617 start;
#P flonum 65 168 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 31 168 15 0;
#P newex 31 188 44 196617 metro 2;
#P newex 13 217 105 196617 jit.qt.movie 640 480;
#B color 5;
#P user jit.pwindow 458 219 322 242 0 1 0 0 1 0;
#P newex 597 163 49 196617 jit.xfade;
#P user meter~ 16 693 96 706 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 user meter~ 93 672 173 685 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 newex 225 468 23 196617 abs;
#P newex 225 442 36 196617 - 127;
#P user gain~ 93 492 24 100 128 0 1. 7.94321 10.;
#P number 231 299 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user gain~ 16 484 24 100 128 0 1. 7.94321 10.;
#P user hslider 216 353 18 128 128 1 0 0;
#P toggle 64 507 15 0;
#P newex 16 418 97 196617 spigot~ audioSendA;
#P newex 278 690 31 196617 dac~;
#P fasten 18 0 13 0 99 95 18 95;
#P fasten 17 0 13 0 135 95 18 95;
#P fasten 14 0 13 0 36 98 18 98;
#P connect 19 0 13 0;
#P connect 22 0 13 0;
#P connect 23 0 13 0;
#P connect 3 0 4 0;
#P connect 1 0 4 0;
#P connect 4 0 10 0;
#P connect 15 0 14 0;
#P connect 21 0 19 0;
#P connect 20 0 19 0;
#P connect 16 0 14 1;
#P connect 1 1 6 0;
#P connect 8 0 6 0;
#P connect 6 0 9 0;
#P connect 3 0 7 0;
#P connect 7 0 8 0;
#P connect 3 0 5 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P connect 1 1 0 1;
#P connect 11 0 12 0;
#P connect 47 0 46 0;
#P connect 46 0 11 0;
#P connect 13 0 11 0;
#P connect 35 0 11 1;
#P connect 45 0 35 0;
#P connect 44 0 35 0;
#P connect 41 0 35 0;
#P fasten 36 0 35 0 935 83 917 83;
#P fasten 39 0 35 0 1034 80 917 80;
#P fasten 40 0 35 0 998 80 917 80;
#P connect 25 0 28 0;
#P connect 27 0 28 0;
#P connect 28 0 34 0;
#P connect 37 0 36 0;
#P connect 42 0 41 0;
#P connect 43 0 41 0;
#P connect 38 0 36 1;
#P connect 25 1 30 0;
#P connect 32 0 30 0;
#P connect 30 0 33 0;
#P connect 27 0 31 0;
#P connect 31 0 32 0;
#P connect 27 0 29 0;
#P connect 25 0 24 0;
#P connect 26 0 24 0;
#P connect 25 1 24 1;
#P pop;



More information about the maxmsp mailing list