diff --git a/JSFX/dual_mono_volume.jsfx b/JSFX/dual_mono_volume.jsfx new file mode 100644 index 0000000..0636e34 --- /dev/null +++ b/JSFX/dual_mono_volume.jsfx @@ -0,0 +1,24 @@ +// @noindex + +desc: Dual Mono Volume +//tags: utility gain mono +//author: MonkeyBars + +slider1:0<-150,24,0.1>Channel 1 Gain (dB) +slider2:0<-150,24,0.1>Channel 2 Gain (dB) + +in_pin:left input +in_pin:right input +out_pin:left output +out_pin:right output + +@init +ext_tail_size = -2; + +@slider + adj0=2 ^ (slider1/6); + adj1=2 ^ (slider2/6); + +@sample +spl0=spl0*adj0; +spl1=spl1*adj1; \ No newline at end of file diff --git a/JSFX/volume_0db.jsfx b/JSFX/volume_0db.jsfx new file mode 100644 index 0000000..a83022e --- /dev/null +++ b/JSFX/volume_0db.jsfx @@ -0,0 +1,40 @@ +// @description MonkeyBars JSFX for Reaper +// @author MonkeyBars +// @version 1.0 +// @changelog Initial upload +// @provides [main] . +// [main] dual_mono_volume.jsfx + +desc: Volume Adjustment 0dB +//tags: utility gain 0dB default +//author: Cockos with MonkeyBars + +slider1:0<-150,150,0.1>Adjustment (dB) +slider2:0<-150,150,0.1>Max Volume (dB) + +in_pin:left input +in_pin:right input +out_pin:left output +out_pin:right output + +@init +ext_tail_size = -2; + +@slider + adj1=2 ^ (slider1/6); + adj2=2 ^ (slider2/6); + doseek < 0 ? doseek = 1; + +@block +doseek > 0 ? ( + dadj=(adj1-adj1_s)/samplesblock; +):( + dadj=0; + adj1_s=adj1; +); +doseek = -1; + +@sample +spl0=min(max(spl0*adj1_s,-adj2),adj2); +spl1=min(max(spl1*adj1_s,-adj2),adj2); +adj1_s+=dadj;