Skip to content

Commit

Permalink
Fix bug in pulse synth simplication
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed May 18, 2024
1 parent 07bedca commit 4dc69a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/osc/pulse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ where
.amplify(clip)
.clip();
let offset = cycle.gain(-0.5);
let scale = offset.abs().offset(1.0).recip();
let scale = offset.neg_abs().offset(1.0).recip();

offset.mix(pulse).amplify(scale)
}
Expand Down

0 comments on commit 4dc69a0

Please sign in to comment.