Skip to content

Commit

Permalink
Restricted saturation to occur only when signal is present
Browse files Browse the repository at this point in the history
  • Loading branch information
chkhld committed Aug 11, 2019
1 parent 0ecf194 commit 09948b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/track_comp.jsfx
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -460,8 +460,9 @@ slider16:routing=0<0, 3,{Stereo (internal SC),Stereo (external SC 3-4),Mono (L),
spl0 = spl1 *= compR.compTick(abs(filterR.eqTick(spl0))); spl0 = spl1 *= compR.compTick(abs(filterR.eqTick(spl0)));
); );


// Saturation stage // Saturation stage - but only if signal is coming in,
saturation > 0 ? // kind of like dumb auto-blanking,
(saturation > 0) && (spl0 != 0) && (spl1 != 0) ?
( (
spl0.saturate(compL.calc.makeup * 0.35); spl0.saturate(compL.calc.makeup * 0.35);
spl1.saturate(compR.calc.makeup * 0.35); spl1.saturate(compR.calc.makeup * 0.35);
Expand Down

0 comments on commit 09948b4

Please sign in to comment.