Skip to content

Commit

Permalink
Retry commit 2 new JSFX in new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyBars3k committed Dec 24, 2022
1 parent 1efabdc commit 9c94c3e
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
24 changes: 24 additions & 0 deletions JSFX/dual_mono_volume.jsfx
Original file line number Diff line number Diff line change
@@ -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;
40 changes: 40 additions & 0 deletions JSFX/volume_0db.jsfx
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 9c94c3e

Please sign in to comment.