Choose a beat frequency and watch a model brain rhythm lock on when the beat is near its natural frequency. Educational toy, not medical advice; the real evidence is mixed.
The science
Two tones of slightly different frequency, fL in the left ear and fR = fL + Δf in the right, make a "binaural beat" of Δf Hz inside the head. Played on speakers the tones really add: cos(2πfLt) + cos(2πfRt) = 2cos(πΔf t)cos(2π(fL+Δf/2)t), a beat envelope.
Entrainment toy model. A cortical rhythm is modelled as a driven damped oscillator x'' + 2ζω0x' + ω0²x = ω0²F cos(ωt), ω = 2πΔf. Steady-state amplitude A(ω) = ω0²F / √((ω0²−ω²)² + (2ζω0ω)²). The graph is this resonance curve; the page integrates the ODE with RK4 for 30 s, measures the settled amplitude, and compares it with the formula.
Honest limits: the brain is not a single linear oscillator; this only shows the physics idea of resonance and entrainment. Research on binaural beats for relaxation or anxiety is small-scale and mixed - effects, where seen, are modest. This is an educational toy, not medical or therapeutic advice. Keep sound volume low.