aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/pd_examples/cross_fade.pd
blob: f7af61957963e9dd8d1688e4e9e23686a3737554 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#N canvas 401 101 681 500 10;
#X obj 33 191 # *>>8;
#X text 60 235 first picture plus a fraction of the difference;
#X obj 33 233 # +;
#X obj 33 170 #store;
#X obj 264 103 # inv+;
#X obj 88 254 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
;
#X text 152 324 note: the #layer/#join objects can make the crossfade
process simpler but it's still not faster.;
#X obj 50 -30 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1
;
#X msg 309 72 open r001.jpg \, cast int16 \, bang;
#X obj 283 72 #in;
#X obj 33 149 #finished;
#X text 109 257 click to clip out-of-range colours;
#X text 82 190 multiply by a N/256 fraction;
#X obj 81 295 # max 0;
#X obj 264 51 #in;
#X obj 81 274 # min 255;
#X obj 33 326 #out window;
#X obj 33 109 #cast int16;
#X text 81 170 keep the difference between both pictures;
#X msg 290 51 open b001.jpg \, cast int16 \, bang;
#X obj 290 31 t b b;
#X obj 330 31 loadbang;
#X obj 33 253 shunt 2;
#X obj 50 -5 metro 33.3667;
#X obj 50 15 float;
#X obj 62 44 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 0 256;
#X obj 94 14 + 4;
#X obj 50 65 pingpong 256;
#X obj 61 87 hsl 129 15 0 256 0 0 empty empty empty -2 -6 0 8 -260818
-1 -1 0 1;
#X obj 33 128 t a a;
#X text 153 362 also #draw_image/#join is a possibility;
#X obj 0 -77 cnv 15 680 30 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 14 -64 Copyright 2002 Mathieu Bouchard;
#X text 14 -80 cross_fade.pd;
#X obj 0 391 cnv 15 680 30 empty empty empty 20 12 0 14 -200249 -66577
0;
#X text 8 399 GridFlow 0.8.0;
#X connect 0 0 2 0;
#X connect 2 0 22 0;
#X connect 3 0 0 0;
#X connect 4 0 3 1;
#X connect 5 0 22 1;
#X connect 7 0 23 0;
#X connect 8 0 9 0;
#X connect 9 0 4 1;
#X connect 10 0 3 0;
#X connect 13 0 16 0;
#X connect 14 0 4 0;
#X connect 14 0 2 1;
#X connect 15 0 13 0;
#X connect 17 0 29 0;
#X connect 19 0 14 0;
#X connect 20 0 19 0;
#X connect 20 1 8 0;
#X connect 21 0 20 0;
#X connect 22 0 16 0;
#X connect 22 1 15 0;
#X connect 23 0 24 0;
#X connect 24 0 25 0;
#X connect 24 0 26 0;
#X connect 24 0 27 0;
#X connect 26 0 24 1;
#X connect 27 0 28 0;
#X connect 27 0 17 0;
#X connect 29 0 10 0;
#X connect 29 1 0 1;