特征鼓
eigendrum

原始链接: https://eigendrum.com/#p=circle

Eigendrum 是一款交互式网页工具,通过求解特征值问题 $-\nabla^2u = \lambda u$ 来探索振动形状的物理特性。该工具利用三角形网格覆盖用户自定义或数学定义的形状,并采用有限元方法计算振动模态和频率。 用户可以直观地观察不同敲击位置如何激发特定模态、聆听单个频率,并对形状进行参数化调整。Eigendrum 针对圆形和矩形等具有已知解析解的形状进行了严格测试,以确保高数值精度。 该项目还探讨了著名的数学问题“能否听出鼓的形状?”,展示了等谱鼓——即两种产生相同声音特征的不同形状。为了实现透明度和易用性,整个应用程序完全在用户的浏览器中本地运行,无需后端支持。它将槌头宽度、阻尼和尺寸等物理变量视为可调参数,让用户能够独立分析几何形状对声音的影响。该工具托管于 eigendrum.com,免费、无广告且开源,直观地演示了几何形状如何决定振动体的声学特性。

Hacker News 最新 | 往日 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 eigendrum (eigendrum.com) 16 点 由 bookofjoe 发布于 2 小时前 | 隐藏 | 往日 | 收藏 | 2 条评论 帮助 Jeff_Brown 3 分钟前 | 下一条 [–] 我很喜欢。希望能够选择材质。 回复 andai 16 分钟前 | 上一条 [–] 非常酷。数字键和 QWERTYU(或点击右侧的行)可以单独触发“模式”,这些模式具有令人惊喜的微调音效果。 而且你还可以画出自己的鼓!什么!太酷了 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

A drumhead clamped at its rim can only vibrate in certain shapes, at certain frequencies. Those shapes and frequencies are the solutions of

−∇²u = λu  inside the shape,  u = 0 on the edge

Each solution u is a mode, a standing wave, and each λ gives a frequency proportional to √λ. This is an eigenvalue problem, and for almost every shape it has no formula. So Eigendrum solves it numerically: it covers your shape with a mesh of triangles, builds the finite element stiffness and mass matrices, and finds the smallest eigenvalues of Kφ = λMφ.

why you can trust the numbers

A few shapes have spectra that can be written down exactly, and the solver is tested against them on every change. A circle's frequencies are the zeros of Bessel functions; a rectangle's are π²(m²/a² + n²/b²). The solver reproduces both to better than a tenth of a percent, and because a conforming finite element method minimises energy over a restricted space, its answers are guaranteed slight overestimates, never under. The measured error is in “the numbers”.

where you strike it matters

Striking a spot drives each mode in proportion to how much that mode moves there. Hit a line where a mode stands still and you cannot excite it at all. That was not programmed in; it falls out of projecting the mallet onto the modes.

So a strike is never one mode: it is every mode at once, in a mixture set by where your mallet landed. The rules along the mode list are that mixture, and the modes marked with a square were the ones your mallet could not reach. Pressing a row instead plays that single mode alone - something no mallet can do, and the only way to hear what one frequency of a shape actually sounds like.

drums from equations

Besides tracing an outline you can write one. r(t) gives the radius as t sweeps one full turn, so 1 + 0.3cos(5t) is a five-lobed flower; a parametric x(t), y(t) pair reaches the closed curves polar cannot, like a nephroid or an egg. This is not a shortcut for drawing. It reaches shapes no hand traces accurately - eleven even lobes, a superellipse partway between a circle and a square - and it makes a shape something you vary: change one number and hear what moved.

A written shape travels as its own text. The link for a formula holds the formula, so it is something you can read and retype rather than a few hundred characters of encoded outline, and editing it in the address bar works. Anything too thin to mesh honestly is refused rather than answered, because a sliver would still return numbers and they would be wrong.

can one hear the shape of a drum?

Mark Kac asked exactly that in 1966. In 1992 Carolyn Gordon, David Webb and Scott Wolpert answered no, by building two different shapes with identical spectra. Both are in the form list as Kac drum I and II. Each is made from the same seven triangles, rearranged. They enclose the same area and the same perimeter, and every frequency matches. Switch between them and listen: the outlines are plainly different and the sound is not.

what is a modelling choice

The frequency ratios and the mode shapes are physics, fixed entirely by the outline. The absolute pitch depends on size and tension, and how fast each overtone fades depends on the material and the air, so those are sliders rather than silent assumptions. Every shape is scaled to the same area before solving, so what you hear is shape and not size.

The mallet is modelled too. Its width is a slider; its contact time is fixed at a few milliseconds, because no real beater is instantaneous and one that was would drive every mode equally hard. Both decide how much of a mode a strike can reach, and neither can move a mode's frequency. Damping is Rayleigh damping, so loss rises with the square of frequency: the high overtones die away first, which is why a drum darkens as it rings.

where it lives, and how to reach me

Eigendrum is hosted at eigendrum.com. That is the address to link to and to cite; the older baselashraf81.github.io/eigendrum is a mirror that now redirects there.

For advertising or partnership enquiries, write to [email protected]. For anything wrong with the maths or the interface, an issue on the repository is better, because then the fix is public.

colophon

No build step and no application backend: the mesh, the solve and the audio all run on your own machine. The deployed site uses Vercel Analytics, Google Analytics and Google AdSense, which is what pays for the domain and keeps this free to use. The shape you draw lives in the address bar after the #, which browsers never send to a server, and analytics is configured not to record it. Details in the privacy notice. Set in Jost* by indestructible type*. After Kac, Can One Hear the Shape of a Drum? (1966); Gordon, Webb and Wolpert (1992); and Driscoll, Eigenmodes of Isospectral Drums (1997), whose coordinates the two Kac drums use.

Source, including the solver and the tests that check it against the closed-form spectra: github.com/BaselAshraf81/eigendrum

Free to use, with no account and nothing to install. If you would like to put something towards it, or would rather it were not ad-supported: ko-fi.com/baselashraf

联系我们 contact @ memedata.com