11fa2a18d971cdb33d9840e80fd1141becf16bd4
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / tools / faust2pd / examples / faust / 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(" dB ", 0, -96, 4, 0.1) : db2linear : smooth(0.999);
15
16 process = vgroup("fader", *(gain));