forked from mxa/Bewegungsmelder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path08b-sound-output.pd
87 lines (87 loc) · 2.39 KB
/
08b-sound-output.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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#N canvas 708 59 603 814 10;
#X declare -lib Gem;
#X obj 27 8 cnv 15 400 50 empty empty 8b 14 24 0 24 -175655 -66577
0;
#X msg 25 103 create \, 1;
#X msg 33 129 0 \, destroy;
#X obj 126 88 gemhead;
#X obj 126 124 pix_video;
#X obj 126 311 pix_texture;
#X text 230 81 This is a render-chain.;
#X text 230 123 takes the video image from your camera;
#X text 17 335 onto an rectangle;
#X obj 126 153 pix_rgba;
#X obj 188 217 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 234 182 compares the frames;
#X text 233 214 enables the alpha channel;
#X obj 126 249 pix_blob 4;
#X obj 126 217 alpha;
#X obj 435 9 loadbang;
#X msg 435 30 \; pd dsp 1;
#X floatatom 195 155 5 0 1 0 - - -;
#X obj 126 335 rectangle 4 3;
#X text 432 65 this switches audio on;
#X text 9 310 textures the video;
#X text 232 94 It always starts with gemhead.;
#X text 230 153 converts the colorspace to rgb + alpha;
#X obj 126 287 mn-flip;
#X obj 214 537 > 0.01;
#X obj 214 562 change;
#X obj 214 583 sel 1;
#X obj 214 676 readsf~ 2;
#X obj 214 748 dac~;
#X msg 214 655 open hahn.aif \, 1;
#X obj 214 610 spigot 1;
#X obj 214 632 t b b;
#X msg 259 586 0;
#X msg 289 586 1;
#X text 232 249 detects the blob(size);
#X text 80 29 Using sound to signal the detected movement;
#X obj 322 12 declare -lib Gem;
#X obj 264 387 mapping/timeroll;
#X obj 264 366 mapping/smooth;
#X obj 25 159 gemwin 18;
#X obj 247 389 vsl 15 140 0 1 0 0 empty empty empty 0 -9 0 10 -262144
-1 -1 0 1;
#X obj 214 335 t f f;
#X obj 214 721 *~ 0.5;
#X obj 258 720 *~ 0.5;
#X text 8 441 set the threshold with the slider;
#X obj 126 182 pix_movement 0.05;
#X text 433 79 when the patch is opened;
#X text 24 774 Max Neupert \, GMU - Bauhaus Universität Weimar 2008-2013
;
#X text 80 16 Pure Data + Gem;
#X connect 1 0 39 0;
#X connect 2 0 39 0;
#X connect 3 0 4 0;
#X connect 4 0 9 0;
#X connect 5 0 18 0;
#X connect 9 0 45 0;
#X connect 10 0 14 0;
#X connect 13 0 23 0;
#X connect 13 3 41 0;
#X connect 14 0 13 0;
#X connect 15 0 16 0;
#X connect 17 0 45 1;
#X connect 23 0 5 0;
#X connect 24 0 25 0;
#X connect 25 0 26 0;
#X connect 26 0 30 0;
#X connect 27 0 42 0;
#X connect 27 1 43 0;
#X connect 27 2 33 0;
#X connect 29 0 27 0;
#X connect 30 0 31 0;
#X connect 31 0 29 0;
#X connect 31 1 32 0;
#X connect 32 0 30 1;
#X connect 33 0 30 1;
#X connect 38 0 37 0;
#X connect 40 0 24 1;
#X connect 41 0 24 0;
#X connect 41 1 38 0;
#X connect 42 0 28 0;
#X connect 43 0 28 1;
#X connect 45 0 14 0;