Glass. The bowl is a thin elastic shell of revolution: a Bézier meridian with wall thickness tapering from the stem to the rim. Love's strain–displacement relations give membrane and bending energy for each circumferential order n. These are discretized along the meridian with C¹ Hermite-cubic finite elements in all three displacements, clamped where the bowl meets the stem, and solved as a generalized eigenproblem. Nothing is hard-coded: frequency ratios, mode shapes, and how much the rim moves sideways versus radially all come from the solve. A free cylinder reproduces the ring-bending formula to within 0.3%.
Water. The water is treated as inviscid, incompressible potential flow inside the true inner bowl shape. Its surface is a pressure-release boundary (at audio frequencies, gravity and surface tension are negligible). The added mass comes from Ritz minimization of the fluid's kinetic energy, which matches the analytic Bessel-series answer for a cylinder to within 0.4%. The wet modes are then re-solved in a basis of dry modes. That's why the pitch falls slowly at first and then steeply as the water nears the rim.
Water strip. Each height on the strip is a pitch on a log scale. The page has already solved the full wet model at 45 fill levels, denser near the brim where the pitch moves fastest. It inverts that pitch-versus-fill curve to pour exactly enough water, interpolating mode by mode in between. Mode shapes are kept sign-continuous, so the glass keeps singing while you pour. In the sound engine each mode's stiffness glides over about 12 ms, so the pitch bends the way it would if water really slid up the wall. Like a theremin, but the hand moves water rather than air.
Losses. Each mode loses energy four ways: internal friction in the glass (loss factor η of the material); sound radiation, from the exact cylindrical-harmonic radiation resistance applied strip by strip up the bowl; viscous Stokes boundary layers where the water slips along the moving wall; and a small loss through the stem.
Finger. Your fingertip is a pad with measured shear stiffness and damping (about 1 N/mm and 1.5 N·s/m), dragged around the rim. Pad and glass meet through a velocity-weakening friction law, solved implicitly every 10 µs: they stick whenever the force needed for zero slip stays below μ·FN, and slip otherwise. The skin also damps the rim's radial and axial motion. That damping is what drags the standing wave around with your finger: the radial node locks under the fingertip. Nobody tells it what pitch to sing. The stick–slip cycle finds the (2,0) mode because that mode has the most rim motion per unit of loss. If you press too hard or move too slowly, the skin itself chatters and squeaks. Dry skin grips harder the faster it slides, so it only scuffs. An oily finger slips with almost no velocity weakening, so nothing happens.
Sound. Each mode's radiated power, combined with its cos nθ directivity, gives the pressure at two virtual microphones in front of the glass (the bottom of the screen). As the pattern turns with your finger, a fixed listener hears the characteristic slow wah. A 0.03% asymmetry splits each mode pair, which produces the beating real glasses have.