-
Notifications
You must be signed in to change notification settings - Fork 6
/
02-videofile_playback.pd
44 lines (44 loc) · 1.43 KB
/
02-videofile_playback.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#N canvas 303 56 624 734 10;
#X declare -lib Gem;
#X obj 416 30 import GEM;
#X obj 22 14 cnv 15 480 60 empty empty let's_play_video 20 30 0 20
-262130 -99865 0;
#X obj 34 238 gemwin;
#X msg 46 216 0 \, destroy;
#X text 142 195 this opens the GEM window and starts the rendering
;
#X text 141 214 this stops the rendering and closes the GEM window
;
#X obj 35 477 pix_texture;
#X obj 34 279 gemhead;
#X obj 67 342 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 67 360 openpanel;
#X msg 67 379 open \$1;
#X text 93 341 open a video clip here;
#X text 151 479 this maps the pixels of the video on;
#X text 153 536 a geometrical object;
#X floatatom 140 416 5 0 0 0 - - -, f 5;
#X text 175 412 frame #;
#X obj 433 149 declare -lib Gem;
#X text 31 115 You load extensions either by adding it generally to
the startup flags like this: -lib Gem;
#X text 34 149 Or by declaring it to this patch (but only to this one)
;
#X text 33 82 We'll use an extension (in Pd called external) to Pure
data \, GEM to play video;
#X obj 35 450 pix_film bass2.mov;
#X text 153 450 this handles the video file;
#X text 324 450 (and optional: the default clip to load);
#X obj 35 534 square 2;
#X msg 34 194 create \, 1;
#X text 26 659 Max Neupert - Bauhaus-Universität Weimar 2009;
#X connect 3 0 2 0;
#X connect 6 0 23 0;
#X connect 7 0 20 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 20 0;
#X connect 14 0 20 1;
#X connect 20 0 6 0;
#X connect 24 0 2 0;