|
|
|
08-24-2013, 09:05 AM
|
#1
|
Human being with feelings
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
|
JS: LOSER/Saturation
Is it possible that any good JS coders in the forum would be willing to add an input gain and output gain to this wonderful plugin???
|
|
|
08-24-2013, 09:38 AM
|
#2
|
Human being with feelings
Join Date: May 2012
Posts: 1,216
|
Code:
slider1:0<-24,24,1>Input (dB)
slider2:0<0,100,1>Amount (%)
slider3:0<-24,24,1>Output (dB)
@init
gfx_clear = 0;
@slider
foo=slider2/200*$pi;
bar=sin(slider2/200*$pi);
gainA = 10^(slider1/20);
gainB = 10^(slider3/20);
@sample
spl0*=gainA;
spl1*=gainA;
slider2 ? (
spl0 = min(max( sin(max(min(spl0,1),-1)*foo)/bar ,-1) ,1);
spl1 = min(max( sin(max(min(spl1,1),-1)*foo)/bar ,-1) ,1);
);
spl0*=gainB;
spl1*=gainB;
@gfx 0 402
gfxSize = min(gfx_w,gfx_h);
gfx_r=gfx_g=gfx_b=0; gfx_a=1;
gfx_x=gfx_y=0;
gfx_rectto(gfx_w,gfx_h);
gfx_r=gfx_g=gfx_b=0.8; gfx_a=1;
gfx_x=gfxSize/2; gfx_y=0;
gfx_lineto(gfxSize/2,gfxSize,0);
gfx_x=0; gfx_y=gfxSize/2;
gfx_lineto(gfxSize,gfxSize/2,0);
gfx_x = gfxSize-20; gfx_y = gfxSize/2;
gfx_drawchar($'I');
gfx_drawchar($'N');
gfx_x = gfxSize/2+2; gfx_y = 0;
gfx_drawchar($'O');
gfx_drawchar($'U');
gfx_drawchar($'T');
slider2 ? (
gfx_r=0.5; gfx_g=1; gfx_b=0; gfx_a=1;
gfx_x=0; gfx_y=gfxSize;
x = -1;
while(
y = -sin(x*foo)/bar;
gfx_lineto(x*gfxSize/2+gfxSize/2,y*gfxSize/2+gfxSize/2,1);
(x+=0.1) <= 1;
);
gfx_lineto(gfxSize,0,1);
):(
gfx_r=0.5; gfx_g=1; gfx_b=0; gfx_a=1;
gfx_x=0; gfx_y=gfxSize;
gfx_lineto(gfxSize,0,1);
);
|
|
|
08-24-2013, 09:49 AM
|
#3
|
Human being with feelings
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
|
You are a GENIUS!
Thank you so much.
|
|
|
08-27-2013, 04:13 PM
|
#4
|
Human being with feelings
Join Date: Jul 2007
Posts: 1,890
|
does this create overdrive?
|
|
|
08-27-2013, 04:22 PM
|
#5
|
Human being with feelings
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
|
This is a saturation plugin. It fuzzes up the sound if u push it hard enough. Its comes with Reaper so just try it! I just needed it spiced up with input and output gains for what Im doing.
|
|
|
08-30-2013, 02:43 AM
|
#6
|
Human being with feelings
Join Date: Jul 2007
Posts: 1,890
|
i have tried it, i was just curious if driving the input would cause a more pronounced saturation effect.
|
|
|
08-30-2013, 04:35 AM
|
#7
|
Human being with feelings
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
|
Indeed, it will!
|
|
|
09-04-2016, 12:14 PM
|
#8
|
Human being with feelings
Join Date: Apr 2007
Posts: 372
|
Haha just noticed this, was missing those as well. Thanks Witti !!
|
|
|
03-24-2020, 10:13 PM
|
#9
|
Human being with feelings
Join Date: Apr 2016
Posts: 7
|
that code is a heaventsent. Thank you!
|
|
|
03-25-2020, 12:24 AM
|
#10
|
Human being with feelings
Join Date: Apr 2007
Posts: 372
|
Yeah, this should replace the included one imho
Any way to ask the developers to do so?
|
|
|
03-25-2020, 06:45 AM
|
#11
|
Human being with feelings
Join Date: Sep 2018
Location: HH
Posts: 916
|
If you are interested, you can find a Loser Saturation Mod with Auto Gain compensation in my Strip Pack.
JS Dynamics ZenoMOD for LBX Stripper
|
|
|
03-26-2020, 02:19 AM
|
#12
|
Human being with feelings
Join Date: Apr 2007
Posts: 372
|
Sounds cool, does it have a simple, js only version ?
|
|
|
03-26-2020, 07:47 AM
|
#13
|
Human being with feelings
Join Date: Sep 2018
Location: HH
Posts: 916
|
Quote:
Originally Posted by geoslake
Sounds cool, does it have a simple, js only version ?
|
Sure!
Code:
desc:Saturation
desc:Saturation [LOSER] (ZenoMOD)
//tags: processing amplitude gain saturation zeno
//author: LOSER , ZenoMOD
slider1:0<0,100,1>Amount (%)
slider2:0<-3,0,0.1>-Volume Compensation (dB)
options:no_meter
in_pin:left input
in_pin:right input
out_pin:left output
out_pin:right output
@init
AMP_dB_i=1/8.68588963806504;
db=slider2;
@slider
foo=slider1/200*$pi;
bar = sin(slider1/200*$pi);
ddb=0.0;
slider2= -slider1/100*$pi
@block
cnt=0;
ddb=0.0;
db_chg_splpos=slider_next_chg(1, tgtdb);
db_chg_splpos > 0 ?
(
db=slider2;
) : (
tgtdb = slider2;
db_chg_splpos = samplesblock;
);
ddb=(tgtdb-db)/db_chg_splpos;
@sample
slider1 ? (
spl0 = min(max( sin(max(min(spl0,1),-1)*foo)/bar ,-1) ,1);
spl1 = min(max( sin(max(min(spl1,1),-1)*foo)/bar ,-1) ,1);
);
cnt == db_chg_splpos ?
(
ddb=0.0;
db_chg_splpos=slider_next_chg(1, tgtdb);
db_chg_splpos > cnt ?
(
ddb=(tgtdb-db)/(db_chg_splpos-cnt);
);
);
adj=exp(db*AMP_DB_i);
spl0 *= adj;
spl1 *= adj;
db += ddb;
cnt += 1;
|
|
|
03-26-2020, 10:45 AM
|
#14
|
Human being with feelings
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,351
|
Is there a reminder somewhere about how to, and where to install these most useful softwares portable and standard?
__________________
Windows 10 Pro. Intel i7 3400ghz. 16GB Ram. Focusrite Scarlett 8i6. Reaper 64.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:12 AM.
|