Skip to content

Commit

Permalink
Fixed channel summing in Stereo Bleed Remover
Browse files Browse the repository at this point in the history
  • Loading branch information
chkhld authored Sep 18, 2020
1 parent 31740bf commit 4f88662
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/stereo_bleed_remover.jsfx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ out_pin:Output Right

@sample

// Sum the inverted channel samples onto their
// Buffer left input sample, so the following step
// doesn't use its -then- already modified value
splL = spl0;

// Sum the inverted input samples onto their
// opposite channels at the amount set by user
spl0 += -spl1 * amount;
spl1 += -spl0 * amount;
spl1 += -splL * amount;

// Output gain adjustment
spl0 *= trim;
Expand Down

0 comments on commit 4f88662

Please sign in to comment.