Hello
a friend on the supercollider list is asking about playing movies in
Pure Data from SuperCollider and is mentioning that there is no sound
coming from her movies, how can one easiest get audio from a movie to
play in Gem[pix-film?
Is this possible on MAC?
I have attached the simple patch(s)
Patrick
//• SuperCollider to PureData
// Use loopback IP and the same port as the pd patch to communicate
~pdOut = NetAddr("127.0.0.1", 47110);
// test it with one message:
~pdOut.sendMsg("/from_SC", 0);
//
~pdOut.sendMsg("/from_SC", 1);
#N canvas 809 119 1094 943 12;
#X declare -lib mrpeach;
#X obj 225 675 gemhead;
#X msg 222 632 auto \$1;
#X obj 222 613 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 1
1;
#X obj 225 747 pix_film;
#X obj 294 747 t f;
#X obj 225 778 pix_texture;
#X obj 20 49 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 1 82 454 304 gemwin 0;
#X obj 131 179 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#X msg 132 112 create \, 1;
#X msg 238 112 destroy;
#X obj 187 9 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 1
;
#X msg 187 27 menubar \$1;
#X msg 210 9 -1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 3 1 7 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 9 0;
#X connect 9 0 0 0;
#X connect 10 0 9 0;
#X restore 25 93 pd gemwin;
#X msg 25 69 destroy;
#X text 21 49 Create window and render;
#X obj 242 710 t a;
#X msg 279 707 open \$1;
#X obj 226 820 rectangle 4 3;
#X text 164 466;
#X text 407 655;
#X symbolatom 290 634 50 0 0 0 - - -;
#X obj 291 413 playlist all 400 200 {Courier 12 bold} grey yellow black
red;
#X msg 304 269 seek \$1;
#X floatatom 306 238 5 0 0 0 - - -;
#X msg 47 336 location /home/shree/Dropbox/VIDEO;
#X floatatom 567 131 3 0 0 0 - - -;
#X floatatom 594 131 3 0 0 0 - - -;
#X floatatom 621 131 3 0 0 0 - - -;
#X floatatom 648 131 3 0 0 0 - - -;
#X text 527 130 from;
#X obj 400 184 unpackOSC;
#X floatatom 501 211 10 0 0 1 millisecond_delay - -;
#X obj 400 211 pipelist;
#X obj 390 242 print unpacked;
#X obj 567 107 unpack 0 0 0 0 0;
#X floatatom 676 131 8 0 0 0 - - -;
#X obj 502 84 route received from;
#X floatatom 502 152 5 0 0 0 - - -;
#X text 542 152 bytes;
#X obj 397 317 print match_1;
#X obj 399 33 import mrpeach;
#X obj 400 60 udpreceive 47110;
#X obj 398 279 routeOSC /from_SC;
#X obj 170 573 loadbang;
#X text 11 22 play videos with message from SuperCollider;
#X text 29 312 ***edit this to point at your movie directory;
#X text 519 60 *** EDIT THIS to MATCH THE PORT IN SuperCollider;
#X connect 0 0 3 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 3 2 4 0;
#X connect 4 0 3 1;
#X connect 5 0 12 0;
#X connect 7 0 8 0;
#X connect 8 0 7 0;
#X connect 10 0 3 0;
#X connect 11 0 10 0;
#X connect 15 0 11 0;
#X connect 16 0 15 0;
#X connect 17 0 16 0;
#X connect 18 0 17 0;
#X connect 19 0 16 0;
#X connect 25 0 27 0;
#X connect 25 0 28 0;
#X connect 25 1 26 0;
#X connect 25 1 27 1;
#X connect 27 0 37 0;
#X connect 29 0 20 0;
#X connect 29 1 21 0;
#X connect 29 2 22 0;
#X connect 29 3 23 0;
#X connect 29 4 30 0;
#X connect 31 0 32 0;
#X connect 31 1 29 0;
#X connect 36 0 25 0;
#X connect 36 1 31 0;
#X connect 37 0 34 0;
#X connect 37 0 18 0;
#X connect 38 0 2 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list