Skip to content

fix: soften distorted Force Surge sound effect - #694

Open
vivekrajputofficial29-afk wants to merge 2 commits into
NextCommunity:mainfrom
vivekrajputofficial29-afk:fix/force-surge-sound
Open

vivekrajputofficial29-afk wants to merge 2 commits into
NextCommunity:mainfrom
vivekrajputofficial29-afk:fix/force-surge-sound

Conversation

@vivekrajputofficial29-afk

Copy link
Copy Markdown

Fixes #317
What was wrong

  • The three oscillators (including a 55 Hz sawtooth) were connected straight to the master gain, so the combined level went above 1.0 and clipped.
  • The compressor was too aggressive (attack 0, ratio 12).

What changed

  • Replaced the sawtooth with triangle/sine layers
  • Added a separate gain for each oscillator so the sum never clips
  • Lowered the master volume (0.6 -> 0.25)
  • Added a lowpass filter to remove harsh highs
  • Softened the compressor (ratio 4, attack 0.01)

No new audio files, it is still pure Web Audio API.

How to test

  1. Open the site and click anywhere on the page
  2. Press d to open the system override, or run triggerForceSurge() in the console
  3. Trigger Force Surge and listen: the sound should swell and fade smoothly without crackle

@deepsource-io

deepsource-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 58f8fdb...ff7ddfb on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

Important

Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Nov 23, 2026 5:23p.m. Review ↗
Secrets Nov 23, 2026 5:23p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Fix the "Force Surge" sound effects

1 participant