home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 July & August
/
PCWorld_2007-07-08_cd.bin
/
audio-video
/
reaper
/
reaper1861-install.exe
/
Effects
/
Utility
/
volume
< prev
Wrap
Text File
|
2007-02-12
|
510b
|
25 lines
// This effect Copyright (C) 2004 and later Cockos Incorporated
// License: GPL - http://www.gnu.org/licenses/gpl.html
desc: volume adjustment
slider1:6<-150,150,1>adjustment (dB)
slider2:0<-150,150,1>max volume (dB)
@slider
adj1=2 ^ (slider1/6);
adj2=2 ^ (slider2/6);
doseek=1;
@block
doseek ? (
dadj=(adj1-adj1_s)/samplesblock;
doseek=0;
):(
dadj=0;
adj1_s=adj1;
);
@sample
spl0=min(max(spl0*adj1_s,-adj2),adj2);
spl1=min(max(spl1*adj1_s,-adj2),adj2);
adj1_s+=dadj;