Skip to content

Commit

Permalink
Improve bleptriangle
Browse files Browse the repository at this point in the history
Reduce the pole coeficient from .999 to .995 which fixes a discontinuity while the filters are cold.
  • Loading branch information
pauliusuza authored and nick-thompson committed Aug 13, 2023
1 parent ca7fc2d commit 3666f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/packages/core/lib/oscillators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function bleptriangle(a, b?) {

// Gain normalization after integrating the square below
let gain = el.div(el.mul(4, rate), el.sr());
return el.mul(gain, el.pole(0.999, blepsquare(props, rate)));
return el.mul(gain, el.pole(0.995, blepsquare(props, rate)));
}

// Noise
Expand Down

0 comments on commit 3666f51

Please sign in to comment.