Skip to content

Diffuse room reverb; reflections under 1 ms fuse with the direct sound - #290

Merged
ctoth merged 2 commits into
masterfrom
feat/diffuse-reverb
Nov 29, 2026
Merged

ctoth merged 2 commits into
masterfrom
feat/diffuse-reverb

Conversation

@ctoth

@ctoth ctoth commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Every room sounded like a can. Measured (Garage, Chromium offline, Cacophony 0.40.0): the 8-line FDN room tail has modal overlap 0.38 at 1 kHz, colouration 6.38 dB / 31% notched bins against 5.60 dB / 22% for decaying Gaussian noise with the same band decays, and repeats every 31 ms.

  • algorithm: "diffuse" builds createDiffuseReverb (decaying-noise tail per octave band, same calibration as the FDN, so the MOO's send is unchanged); EffectsSupport reverbAlgorithms lists it so the MOO can pick it.
  • reflectionImages drops images less than 1 ms behind the direct sound: at ears 0.15-0.35 m from a wall a footstep got a 0.08-0.41 ms wall image that Chromium's HRTF (elevations clamped at -45 degrees, measured) played hard to one side, 11.7 dB louder in one ear.

Needs the Cacophony release that adds createDiffuseReverb (bump commit to follow) before merge; typecheck fails until then.

- reverb algorithm "diffuse" builds Cacophony's createDiffuseReverb (a
  decaying-noise room tail) from the room vocabulary without diffusion, and
  EffectsSupport advertises it. The 8-line FDN has too few modes for a room
  (Garage modal overlap 0.38 at 1 kHz, tail colouration 6.38 dB against
  5.60 dB for decaying noise, a 31 ms repetition): the "can" sound.
- reflectionImages leaves out an image less than 1 ms behind the direct
  sound. Ears 0.15-0.35 m from a wall gave a footstep a 0.08-0.41 ms wall
  image that Chromium's HRTF (elevations clamped at -45 degrees) played hard
  to one side, 11.7 dB louder in one ear, and combed the step.
Lockfile entry from npm view (resolved URL and integrity); dependencies
unchanged from 0.40.0.
@ctoth
ctoth merged commit 58a1891 into master Nov 29, 2026
2 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 29, 2026
Diffuse room reverb; reflections under 1 ms fuse with the direct sound
@ctoth
ctoth deleted the feat/diffuse-reverb branch November 29, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant