generated from cfillion/reapack-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retry commit 2 new JSFX in new folder
- Loading branch information
1 parent
1efabdc
commit 9c94c3e
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |