Old 08-24-2013, 09:05 AM   #1
Quest The Wordsmith
Human being with feelings
 
Quest The Wordsmith's Avatar
 
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
Default 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???
__________________
freestylefam.com
Quest The Wordsmith is offline   Reply With Quote
Old 08-24-2013, 09:38 AM   #2
witti
Human being with feelings
 
witti's Avatar
 
Join Date: May 2012
Posts: 1,216
Default

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);
);
witti is offline   Reply With Quote
Old 08-24-2013, 09:49 AM   #3
Quest The Wordsmith
Human being with feelings
 
Quest The Wordsmith's Avatar
 
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
Default

You are a GENIUS!

Thank you so much.
__________________
freestylefam.com
Quest The Wordsmith is offline   Reply With Quote
Old 08-27-2013, 04:13 PM   #4
reapercurious
Human being with feelings
 
reapercurious's Avatar
 
Join Date: Jul 2007
Posts: 1,890
Default

does this create overdrive?
reapercurious is offline   Reply With Quote
Old 08-27-2013, 04:22 PM   #5
Quest The Wordsmith
Human being with feelings
 
Quest The Wordsmith's Avatar
 
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
Default

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.
__________________
freestylefam.com
Quest The Wordsmith is offline   Reply With Quote
Old 08-30-2013, 02:43 AM   #6
reapercurious
Human being with feelings
 
reapercurious's Avatar
 
Join Date: Jul 2007
Posts: 1,890
Default

i have tried it, i was just curious if driving the input would cause a more pronounced saturation effect.
reapercurious is offline   Reply With Quote
Old 08-30-2013, 04:35 AM   #7
Quest The Wordsmith
Human being with feelings
 
Quest The Wordsmith's Avatar
 
Join Date: May 2011
Location: Shaolin => NJ
Posts: 1,213
Default

Indeed, it will!
__________________
freestylefam.com
Quest The Wordsmith is offline   Reply With Quote
Old 09-04-2016, 12:14 PM   #8
geoslake
Human being with feelings
 
Join Date: Apr 2007
Posts: 372
Default

Haha just noticed this, was missing those as well. Thanks Witti !!
geoslake is offline   Reply With Quote
Old 03-24-2020, 10:13 PM   #9
Gelblich
Human being with feelings
 
Join Date: Apr 2016
Posts: 7
Default

that code is a heaventsent. Thank you!
Gelblich is offline   Reply With Quote
Old 03-25-2020, 12:24 AM   #10
geoslake
Human being with feelings
 
Join Date: Apr 2007
Posts: 372
Default

Yeah, this should replace the included one imho
Any way to ask the developers to do so?
geoslake is offline   Reply With Quote
Old 03-25-2020, 06:45 AM   #11
Zeno
Human being with feelings
 
Zeno's Avatar
 
Join Date: Sep 2018
Location: HH
Posts: 916
Default

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
Zeno is offline   Reply With Quote
Old 03-26-2020, 02:19 AM   #12
geoslake
Human being with feelings
 
Join Date: Apr 2007
Posts: 372
Default

Sounds cool, does it have a simple, js only version ?
geoslake is offline   Reply With Quote
Old 03-26-2020, 07:47 AM   #13
Zeno
Human being with feelings
 
Zeno's Avatar
 
Join Date: Sep 2018
Location: HH
Posts: 916
Default

Quote:
Originally Posted by geoslake View Post
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;
Zeno is offline   Reply With Quote
Old 03-26-2020, 10:45 AM   #14
RobertP
Human being with feelings
 
Join Date: Aug 2007
Location: Norfolk UK
Posts: 1,351
Default

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.
RobertP is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.