Skip to content

Commit

Permalink
Prevent extreme synth cutoffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed May 30, 2022
1 parent febc429 commit 134ef74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sfxr.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Params.prototype.synth = function () {
this.p_arp_speed = frnd(0.5) + 0.4;
this.p_duty = frnd(1);
this.p_duty_ramp = rnd(2) == 2 ? frnd(1) : 0;
this.p_lpf_freq = [1, frnd(1) * frnd(1)][rnd(1)];
this.p_lpf_freq = [1, 0.9 * frnd(1) * frnd(1) + 0.1][rnd(1)];
this.p_lpf_ramp = rndr(-1, 1);
this.p_lpf_resonance = frnd(1);
this.p_hpf_freq = rnd(3) == 3 ? frnd(1) : 0;
Expand Down

0 comments on commit 134ef74

Please sign in to comment.