-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathvs-gamma-help.pd
91 lines (91 loc) · 3.08 KB
/
vs-gamma-help.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
88
89
90
91
#N canvas 112 70 925 480 10;
#X text 477 21 Gamma curve correction is essentially like audio dynmaics
compression for the eye. A video monitor has a much more limited range
of luminosity than the human eye can detect \, so adjusting the gamma
curve of the brightness modulations can "squeeze" those modulations
into a range more suitable for the monitor. In short \, the brightest
parts shouldn't saturate the screen and the darkest parts before black
should still be visible.;
#X text 702 366 Derek Holzer;
#X text 702 390 Berlin July 2017;
#X text 702 415 [email protected];
#X obj 106 25 cnv 15 175 400 empty empty basic_lissajous_generator
10 12 0 10 -233017 -66577 0;
#X obj 286 25 cnv 15 175 400 empty empty brightness_modulation 10 12
0 10 -233017 -66577 0;
#X obj 114 394 dac~ 1 2 3;
#X obj 306 159 phasor~;
#X obj 306 71 nbx 5 14 -1e+37 1e+37 0 1 empty empty mod_frequency 0
-8 0 10 -4034 -1 -1 166 256;
#X obj 365 131 nbx 5 14 -1e+37 1e+37 0 1 empty empty gamma_correction
0 -8 0 10 -4034 -1 -1 500 256;
#X obj 289 345 cnv 15 100 60 empty empty empty 20 12 0 14 -191407 -66577
0;
#X obj 365 214 sig~;
#X obj 365 190 / 100;
#X obj 321 101 nbx 5 14 -1e+37 1e+37 0 1 empty empty mod_depth 0 -8
0 10 -4034 -1 -1 100 256;
#X obj 321 214 sig~;
#X obj 321 190 / 100;
#X obj 306 238 *~;
#X obj 485 365 tgl 15 1 empty empty ON_OFF 17 7 0 10 -258113 -1 -1
0 1;
#X obj 485 393 switch~;
#X obj 166 122 nbx 5 14 0 360 0 1 empty empty phase_degrees 0 -8 0
10 -4034 -1 -1 90 256;
#X obj 166 258 / 360;
#X obj 166 285 sig~;
#X obj 114 59 nbx 5 14 -1e+37 1e+37 0 1 empty empty base_frequency
0 -8 0 10 -4034 -1 -1 1000 256;
#X obj 140 91 nbx 5 14 -1e+37 1e+37 0 1 empty empty multiplier 0 -8
0 10 -4034 -1 -1 300 256;
#X obj 140 234 sig~;
#X obj 192 153 nbx 5 14 -1e+37 1e+37 0 1 empty empty scale 0 -8 0 10
-4034 -1 -1 40 256;
#X obj 192 234 sig~;
#X obj 192 208 / 100;
#X obj 140 209 / 100;
#X obj 114 284 sig~;
#X obj 219 183 nbx 5 14 -1e+37 1e+37 0 1 empty empty brightness 0 -8
0 10 -4034 -1 -1 100 256;
#X obj 219 285 sig~;
#X obj 219 259 / 100;
#X obj 219 337 +~;
#X text 480 153 In this patch \, the "mod_depth" number box works in
parallel with the gamma correction by controlling hom much of the [phasor~]
ramp is added to the overall brightness set by the "brightness" number
box of the Lissajous figure.;
#X text 481 233 To make this patch work \, turn the "brightness" number
box down to zero \, and then adjust the "gamma_correction" to see its
effects.;
#X obj 320 364 VS-gamma;
#X obj 114 312 VS-basic-lissajous;
#X connect 7 0 16 0;
#X connect 8 0 7 0;
#X connect 9 0 12 0;
#X connect 11 0 36 1;
#X connect 12 0 11 0;
#X connect 13 0 15 0;
#X connect 14 0 16 1;
#X connect 15 0 14 0;
#X connect 16 0 33 1;
#X connect 17 0 18 0;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 37 2;
#X connect 22 0 29 0;
#X connect 23 0 28 0;
#X connect 24 0 37 1;
#X connect 25 0 27 0;
#X connect 26 0 37 3;
#X connect 27 0 26 0;
#X connect 28 0 24 0;
#X connect 29 0 37 0;
#X connect 30 0 32 0;
#X connect 31 0 37 4;
#X connect 32 0 31 0;
#X connect 33 0 36 0;
#X connect 36 0 6 2;
#X connect 37 0 6 0;
#X connect 37 1 6 1;
#X connect 37 2 33 0;