Show HN: Eigendrum - Draw any shape and hear what it sounds like as a drum (baselashraf81.github.io)
Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums.
How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies.
Repo and tests: https://github.com/BaselAshraf81/eigendrum
Happy to answer any questions about the FEM solver or Web Audio setup!
59 comments
[ 7.1 ms ] story [ 135 ms ] threadAlso you can draw your own drums! What! That's so cool
If you find it interesting, a star on the GitHub repo helps a lot.
And don't forget to follow me on github, I build cool stuff!
It would be interesting if you could simulate and then print (or laser cut) your own instrument on demand.
https://eigendrum.com/#s=__Ap66fz1em9-NXp7_6a6-0AJu1AAiTv6gK...
"what the shape does not decide: Pitch is size and tension; fade is material and air. Neither is in the outline, so both are yours."
https://news.ycombinator.com/item?id=49305250