#N canvas 1798 471 517 285 10;
#X obj 34 182 \$1;
#X obj 67 182 \$2;
#X obj 34 205 pack f f f;
#X obj 34 149 t b b f;
#X obj 34 11 inlet;
#X obj 34 258 outlet;
#X obj 34 234 expr if($f3==0 \, 0 \, exp((($f1)+($f2-($f1))*$f3)/20*log(10)))
;
#X text 166 175 formula from https://www.reddit.com/r/programming/comments/9n2y0/stop_making_linear_volume_controls/c0dgsjj/
, f 45;
#X obj 34 70 \$1;
#X obj 67 70 \$2;
#X obj 34 96 pack f f f;
#X obj 34 38 t b b f;
#X obj 34 123 expr ($f3+abs($f1))/(abs($f1)+abs($f2));
#X connect 0 0 2 0;
#X connect 1 0 2 1;
#X connect 2 0 6 0;
#X connect 3 0 0 0;
#X connect 3 1 1 0;
#X connect 3 2 2 2;
#X connect 4 0 11 0;
#X connect 6 0 5 0;
#X connect 8 0 10 0;
#X connect 9 0 10 1;
#X connect 10 0 12 0;
#X connect 11 0 8 0;
#X connect 11 1 9 0;
#X connect 11 2 10 2;
#X connect 12 0 3 0;
