-
Notifications
You must be signed in to change notification settings - Fork 0
/
tdh.math.dbfs2lin-help.pd
executable file
·60 lines (60 loc) · 2 KB
/
tdh.math.dbfs2lin-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
#N canvas 626 133 600 746 10;
#X declare -path tdh.lib;
#X obj 76 369 vsl 14 118 0 2 0 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000 0 1;
#X text 91 366 +6dB;
#X text 91 435 -2dB;
#X text 91 451 -6dB;
#X text 91 473 -20dB;
#X text 96 486 inf;
#X text 24 60 Travis Houldcroft || travishouldcroft.com;
#X obj 5 6 cnv 8 599 45 empty empty tdh.util.lin2dbfs.dbfs2lin 20 12 0 14 #e0e0e0 #404040 0;
#X obj 5 94 cnv 8 598 8 empty empty Inlets 20 15 0 14 #e0e0e0 #404040 0;
#X text 27 123 0;
#X text 49 123 -;
#X obj 5 174 cnv 8 598 8 empty empty Outlets 20 15 0 14 #e0e0e0 #404040 0;
#X text 27 203 0;
#X text 49 203 -;
#X obj 5 264 cnv 8 599 8 empty empty Note 20 15 0 14 #e0e0e0 #404040 0;
#X text 25 296 Notes;
#X obj 5 326 cnv 4 598 4 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 92 339 dBFS;
#X text 92 339 ____;
#X text 52 339 lin;
#X text 52 339 ___;
#X text 57 366 2;
#X text 58 421 1;
#X text 59 487 0;
#X text 53 451 0.5;
#X text 48 474 0.09;
#X text 53 435 0.7;
#X text 92 396 +3dB;
#X text 52 395 1.5;
#X obj 229 369 vu 15 120 empty empty -1 -8 0 10 #404040 #000000 1 0;
#X text 91 421 -0dB;
#X text 24 30 Convert from a linear scale gain to dBFS \, and dBFS to linear scale gain, f 73;
#X text 71 123 (float) a linear gain scale from 0 to 2;
#X text 27 123 0;
#X text 49 123 -;
#X text 71 123 (float) a linear gain scale from 0 to 2;
#X text 49 143 -;
#X text 27 143 1;
#X text 71 143 (float) a gain value in deciBel full scale;
#X text 27 223 0;
#X text 49 223 -;
#X text 71 203 (float) a gain value in dBFS;
#X text 71 223 (float) a gain value in linear scale;
#X floatatom 76 520 5 0 0 0 - - - 0;
#X floatatom 76 578 5 0 0 0 - - - 0;
#X floatatom 229 576 5 0 0 0 - - - 0;
#X text 315 415 d = log10(l) * 20;
#X text 364 443 d = gain in dBFS;
#X text 364 463 l = gain in linear scale;
#X text 458 415 l = 10^(d/20);
#X obj 458 340 declare -path tdh.lib;
#X obj 76 553 tdh.math.lin2dbfs.dbfs2lin;
#X connect 0 0 43 0;
#X connect 29 0 51 1;
#X connect 43 0 51 0;
#X connect 44 0 29 0;
#X connect 51 0 44 0;
#X connect 51 1 45 0;