Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Jun 30, 2024
1 parent 9314969 commit 6304793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
sustain = R()**3/2*lengthScale,
release = R()**3/2*lengthScale,
length = attack + decay + sustain + release,
filter = C()? 0 : R()<.5? 99+R()**2*900 : R()**2*1e3-2e3;
filter = C()? 0 : R()<.5? 99+R()**2*900 : R()**2*1e3-1500;

// create random sound
return BuildSound
Expand Down Expand Up @@ -529,7 +529,7 @@
const R =(a=1,b=0) => b+(a-b)*Math.random();

if (R()<.5) // apply random filter
sound.filter = R()<.5 ? 99+R()**2*900 : R()**2*1e3-2e3;
sound.filter = R()<.5 ? 99+R()**2*900 : R()**2*1e3-1500;
sound.shapeCurve = R(sound.shape == 4 ? 9 : 4);

switch (presetName)
Expand Down

0 comments on commit 6304793

Please sign in to comment.