68493653f11c3a3703c410c361b68fd093413c2f
[Faustine.git] / interpretor / faust-0.9.47mr3 / examples / volume.dsp
1 declare name "volume";
2 declare version "1.0";
3 declare author "Grame";
4 declare license "BSD";
5 declare copyright "(c)GRAME 2006";
6
7 //-----------------------------------------------
8 // Volume control in dB
9 //-----------------------------------------------
10
11 import("music.lib");
12
13 smooth(c) = *(1-c) : +~*(c);
14 gain = vslider("[1]", 0, -70, +4, 0.1) : db2linear : smooth(0.999);
15
16 process = *(gain);