Forums > Jitter

How do I stop the sound?

May 21, 2008 | 4:44 pm

Hi there, I am trying to create a set of movies triggered by the keyboard.

The problem I am having at the moment is that when I press the key to switch between movies, the sound from the previous movie plays instead of cutting off and just playing the sound from the new movie.

I was wondering if there is a way to automate the @vol but I can’t see any clear way of doing it.

Is there a way to do this?

The left side of the patch is the part to look at, the right hand side is basically a duplicate in preparation for more of the same.

Hope someone can point me in the right direction.


May 22, 2008 | 9:18 am

Hi Simon

I think you should zip your patch before posting it, or just copy paste the text into the message, otherwise we can’t open your file

Beatriz


May 22, 2008 | 9:59 am

Ah okay thanks for the tip!

Here’s the text:

max v2;
#N vpatcher 122 22 1194 1022;
#P toggle 927 893 15 0;
#P window setfont "Sans Serif" 9.;
#P message 892 825 57 196617 border $1;
#P newex 892 801 50 196617 loadbang;
#P newex 737 865 226 196617 jit.window foo11 @size 320 240 @pos 600 200;
#P newex 853 771 102 196617 jit.qt.movie @vol 1.;
#P newex 737 770 102 196617 jit.qt.movie @vol 1.;
#P message 650 829 57 196617 border $1;
#P newex 650 805 50 196617 loadbang;
#P newex 495 869 232 196617 jit.window foo10 @size 320 240 @pos 1200 320;
#P newex 611 775 102 196617 jit.qt.movie @vol 1.;
#P newex 495 774 102 196617 jit.qt.movie @vol 1.;
#P message 405 826 57 196617 border $1;
#P newex 405 802 50 196617 loadbang;
#P newex 250 866 220 196617 jit.window foo9 @size 320 240 @pos 980 320;
#P newex 366 772 102 196617 jit.qt.movie @vol 1.;
#P newex 250 771 102 196617 jit.qt.movie @vol 1.;
#P message 168 823 57 196617 border $1;
#P newex 168 799 50 196617 loadbang;
#P newex 13 863 220 196617 jit.window foo8 @size 320 240 @pos 640 320;
#P newex 129 769 102 196617 jit.qt.movie @vol 1.;
#P newex 13 768 102 196617 jit.qt.movie @vol 1.;
#P message 885 676 57 196617 border $1;
#P newex 885 652 50 196617 loadbang;
#P newex 730 716 220 196617 jit.window foo7 @size 320 240 @pos 320 320;
#P newex 846 622 102 196617 jit.qt.movie @vol 1.;
#P newex 730 621 102 196617 jit.qt.movie @vol 1.;
#P message 649 676 57 196617 border $1;
#P newex 649 652 50 196617 loadbang;
#P newex 494 716 208 196617 jit.window foo6 @size 320 240 @pos 0 320;
#P newex 610 622 102 196617 jit.qt.movie @vol 1.;
#P newex 494 621 102 196617 jit.qt.movie @vol 1.;
#P message 407 676 57 196617 border $1;
#P newex 407 652 50 196617 loadbang;
#P newex 252 716 214 196617 jit.window foo5 @size 320 240 @pos 1440 0;
#P newex 368 622 102 196617 jit.qt.movie @vol 1.;
#P newex 252 621 102 196617 jit.qt.movie @vol 1.;
#P message 170 673 57 196617 border $1;
#P newex 170 649 50 196617 loadbang;
#P newex 15 713 208 196617 jit.window foo4 @size 320 240 @pos 800 0;
#P newex 131 619 102 196617 jit.qt.movie @vol 1.;
#P newex 15 618 102 196617 jit.qt.movie @vol 1.;
#P message 885 516 57 196617 border $1;
#P newex 885 492 50 196617 loadbang;
#P newex 730 556 208 196617 jit.window foo3 @size 320 240 @pos 980 0;
#P newex 846 462 102 196617 jit.qt.movie @vol 1.;
#P newex 730 461 102 196617 jit.qt.movie @vol 1.;
#P message 649 514 57 196617 border $1;
#P newex 649 490 50 196617 loadbang;
#P newex 494 554 208 196617 jit.window foo2 @size 320 240 @pos 640 0;
#P newex 610 460 102 196617 jit.qt.movie @vol 1.;
#P newex 494 459 102 196617 jit.qt.movie @vol 1.;
#P message 149 100 14 196617 3;
#P message 119 98 14 196617 2;
#P message 100 99 14 196617 1;
#P newex 137 162 40 196617 gate 3;
#P newex 326 50 48 196617 loadbang;
#P message 511 169 30 196617 read;
#P message 171 512 57 196617 border $1;
#P newex 171 488 50 196617 loadbang;
#P newex 16 552 190 196617 jit.window foo @size 320 240 @pos 0 0;
#P newex 132 458 102 196617 jit.qt.movie @vol 1.;
#P newex 16 457 100 196617 jit.qt.movie @vol 1.;
#P newex 97 60 82 196617 select 97 98 99;
#P newex 97 35 40 196617 key;
#P window setfont "Fixedwidth Serif" 10.;
#P window linecount 2;
#P message 928 939 98 1441802 ; max hidemenubar;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 326 97 52 196617 metro 50;
#P toggle 326 74 15 0;
#P message 411 513 57 196617 border $1;
#P newex 411 489 50 196617 loadbang;
#P newex 256 553 208 196617 jit.window foo1 @size 320 240 @pos 320 0;
#P newex 372 459 102 196617 jit.qt.movie @vol 1.;
#P newex 256 458 102 196617 jit.qt.movie @vol 1.;
#P connect 15 0 51 0;
#P fasten 55 0 53 0 173 847 18 847;
#P fasten 52 0 53 0 134 809 18 809;
#P connect 51 0 53 0;
#P connect 15 0 31 0;
#P connect 31 0 33 0;
#P fasten 32 0 33 0 136 659 20 659;
#P fasten 35 0 33 0 175 697 20 697;
#P connect 17 0 10 0;
#P connect 10 0 12 0;
#P fasten 14 0 12 0 176 536 21 536;
#P fasten 11 0 12 0 137 498 21 498;
#P connect 8 0 9 0;
#P connect 9 0 18 0;
#P connect 9 1 19 0;
#P connect 15 0 52 0;
#P connect 15 0 32 0;
#P connect 15 0 11 0;
#P connect 17 1 11 0;
#P connect 18 0 17 0;
#P connect 20 0 17 0;
#P connect 19 0 17 0;
#P connect 9 2 20 0;
#P connect 6 0 17 1;
#P connect 54 0 55 0;
#P connect 34 0 35 0;
#P connect 13 0 14 0;
#P connect 15 0 56 0;
#P fasten 60 0 58 0 410 850 255 850;
#P fasten 57 0 58 0 371 812 255 812;
#P connect 56 0 58 0;
#P connect 15 0 36 0;
#P connect 36 0 38 0;
#P fasten 37 0 38 0 373 662 257 662;
#P fasten 40 0 38 0 412 700 257 700;
#P connect 15 0 0 0;
#P connect 17 0 0 0;
#P fasten 4 0 2 0 416 537 261 537;
#P fasten 1 0 2 0 377 499 261 499;
#P connect 0 0 2 0;
#P connect 16 0 5 0;
#P connect 5 0 6 0;
#P connect 15 0 57 0;
#P connect 15 0 37 0;
#P connect 15 0 1 0;
#P connect 17 1 1 0;
#P connect 59 0 60 0;
#P connect 39 0 40 0;
#P connect 3 0 4 0;
#P connect 15 0 21 0;
#P fasten 25 0 23 0 654 538 499 538;
#P fasten 22 0 23 0 615 500 499 500;
#P connect 21 0 23 0;
#P connect 15 0 41 0;
#P fasten 45 0 43 0 654 700 499 700;
#P fasten 42 0 43 0 615 662 499 662;
#P connect 41 0 43 0;
#P connect 15 0 61 0;
#P fasten 65 0 63 0 655 853 500 853;
#P fasten 62 0 63 0 616 815 500 815;
#P connect 61 0 63 0;
#P connect 15 0 22 0;
#P connect 15 0 42 0;
#P connect 15 0 62 0;
#P connect 24 0 25 0;
#P connect 44 0 45 0;
#P connect 64 0 65 0;
#P connect 15 0 26 0;
#P connect 26 0 28 0;
#P fasten 27 0 28 0 851 502 735 502;
#P fasten 30 0 28 0 890 540 735 540;
#P connect 15 0 46 0;
#P connect 46 0 48 0;
#P fasten 47 0 48 0 851 662 735 662;
#P fasten 50 0 48 0 890 700 735 700;
#P connect 15 0 66 0;
#P fasten 70 0 68 0 897 849 742 849;
#P fasten 67 0 68 0 858 811 742 811;
#P connect 66 0 68 0;
#P connect 15 0 27 0;
#P connect 15 0 47 0;
#P connect 15 0 67 0;
#P connect 29 0 30 0;
#P connect 49 0 50 0;
#P connect 69 0 70 0;
#P connect 71 0 7 0;
#P pop;


May 22, 2008 | 10:59 am

Check this patch. I used a [preset] and toggles to define when each movie has sound and when not.
Hope it is useful to you!

Beatriz

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 392 367 32 196617 print;
#P comment 365 226 16 196617 3;
#P comment 330 225 16 196617 2;
#P message 661 315 39 196617 vol $1;
#P message 545 311 39 196617 vol $1;
#P message 426 305 39 196617 vol $1;
#P message 305 303 39 196617 vol $1;
#P toggle 362 206 15 0;
#P toggle 333 205 15 0;
#P toggle 305 206 15 0;
#N vpreset 3;
#X append 1 1 25 206 362 toggle int 0 ; 24 205 333 toggle int 0 ; 23 206 305 toggle int 1 ;;
#X append 2 1 25 206 362 toggle int 0 ; 24 205 333 toggle int 1 ; 23 206 305 toggle int 0 ;;
#X append 3 1 25 206 362 toggle int 1 ; 24 205 333 toggle int 0 ; 23 206 305 toggle int 0 ;;
#P preset 312 154 41 22;
#P message 615 192 30 196617 read;
#P message 454 112 14 196617 3;
#P message 424 110 14 196617 2;
#P message 405 111 14 196617 1;
#P newex 424 173 76 196617 gate 3;
#P newex 631 62 48 196617 loadbang;
#P message 460 397 57 196617 border $1;
#P newex 460 373 50 196617 loadbang;
#P newex 305 437 190 196617 jit.window foo @size 320 240 @pos 0 0;
#P newex 421 343 100 196617 jit.qt.movie @vol 0.;
#P newex 305 342 100 196617 jit.qt.movie @vol 0.;
#P newex 402 72 82 196617 select 97 98 99;
#P newex 631 109 52 196617 metro 50;
#P toggle 631 86 15 0;
#P message 700 398 57 196617 border $1;
#P newex 700 374 50 196617 loadbang;
#P newex 545 438 208 196617 jit.window foo1 @size 320 240 @pos 320 0;
#P newex 661 344 100 196617 jit.qt.movie @vol 0.;
#P newex 545 343 100 196617 jit.qt.movie @vol 0.;
#P window linecount 14;
#P comment 61 186 173 196617 preset 1: mov1 vol 1 mov2 vol 0 mov 3 vol 0 preset 2: mov1 vol 0 mov2 vol 1 mov3 vol 0 preset 3: mov1 vol 0 mov2 vol 0 mov3 vol1;
#P window linecount 1;
#P comment 287 224 16 196617 1;
#P connect 21 0 22 0;
#P connect 22 0 25 0;
#P connect 20 0 10 0;
#P connect 16 0 10 0;
#P connect 25 0 10 0;
#P fasten 14 0 12 0 465 421 310 421;
#P connect 10 0 12 0;
#P fasten 11 0 12 0 426 383 310 383;
#P connect 19 0 21 0;
#P connect 18 0 21 0;
#P connect 17 0 21 0;
#P connect 21 0 23 0;
#P connect 21 0 24 0;
#P connect 10 1 31 0;
#P connect 9 0 17 0;
#P connect 20 0 11 0;
#P connect 16 1 11 0;
#P connect 26 0 11 0;
#P connect 9 1 18 0;
#P connect 19 0 16 0;
#P connect 18 0 16 0;
#P connect 17 0 16 0;
#P connect 23 0 26 0;
#P connect 9 2 19 0;
#P connect 13 0 14 0;
#P connect 8 0 16 1;
#P connect 22 0 27 0;
#P connect 20 0 2 0;
#P connect 16 0 2 0;
#P connect 27 0 2 0;
#P fasten 6 0 4 0 705 422 550 422;
#P connect 2 0 4 0;
#P fasten 3 0 4 0 666 384 550 384;
#P connect 15 0 7 0;
#P connect 7 0 8 0;
#P connect 23 0 28 0;
#P connect 20 0 3 0;
#P connect 16 1 3 0;
#P connect 28 0 3 0;
#P connect 5 0 6 0;
#P window clipboard copycount 32;


May 22, 2008 | 12:31 pm

Thank you very much for your help! It is very useful and means that I can finish the patch!

Simon


May 22, 2008 | 8:06 pm

guys, make sure you really want the movie to keep playing, even if it’s no longer going to the window.

if you don’t want the movie to keep playing (which makes more sense to me in the context of those patches, but maybe i’m missing something), then you need to send the "stop" message to the qt.movie. otherwise, the qt.movie will still be sending out frames even though they’re not being displayed, and your CPU performance will suffer.

look at the poly-for-movies example for more on this kind of thing.

apologies if you already know this.


May 23, 2008 | 9:45 am

Hello from italy,

I’m trying to find a good sobstitute for the apple isight that are
coming more and more difficult to buy also in ebay. Did anybody tested
a similar product? That was really working for me when installing
either for range price.

thanks

ciao ciao
riccardo mazza


May 24, 2008 | 9:48 am

You


May 24, 2008 | 9:58 am

Oh, I forgot robtherich. Could you please post an example of how to use [poly] for movies? I didn’t find it in the Max/Jitter Reference manual and I am curious….
Thanks!


May 24, 2008 | 6:13 pm

examples/jitter-examples/video/quicktime/PolyMovie/Poly~ForMovies


May 27, 2008 | 9:38 am

Hey thanks again Beatriz and Rob!


Viewing 11 posts - 1 through 11 (of 11 total)