thedocruby / resounding

A New Minecraft mod that provides realistic audio physics using parallel wave tracing and an improved physics algorithm.
https://thedocruby.dev/resounding
GNU Lesser General Public License v3.0
85 stars 4 forks source link

Resonance #59

Open mikenrafter opened 2 years ago

mikenrafter commented 2 years ago

Is your feature request related to a problem? Please describe. When you're sitting next to a bell, or something metalic, and a loud boom happens - the bell vibrates! You can hear the hum!

Describe the solution you'd like Vibration hums for relevant objects when certain volume thresholds are met, or when the noise (e.g. lightning or TNT) is known to be loud.
This could also happen when an entity falls near the bell/metal object.

Describe alternatives you've considered Irrelevant

Describe any compatibility requirements Some vibration sound effects would be needed. I've looked on freesound.org, but haven't found one quite right for this use-case...

Additional context Additional context

thedocruby commented 2 years ago

I think Mike here is referring to resonance. So, if an explosion or other concussive sound were to play near some blocks with high resonance, such as bells, amethyst, etc., Then their sound would play in a quiet, smeared way to mimic the sonic structure of the block resonating with specific frequencies of the nearby blast.

This would likely best be implemented with a "resonance" property for materials to describe how much they resonate i cases like this. In reality this property should be mathematically determined using the distribution of the Fourier Transform of the sound that the block makes. Tighter distributions would have higher resonance because they resonate more strongly with one specific frequency.

Will change the name of the issue to "Resonance" when I get back on my PC.