# One click, then music The entrance now follows one experiment: move the right wall, read its delayed copy, include the other five surfaces, then apply those very same copies to a synthesized melody. No network audio, microphone request, dependencies, or automatic playback. The response can be saved as an actual WAV filter. The complete original entrance is byte-preserved at `measure.html`, SHA256 `54db09db1d8fc590f3ec492830414fadebf816894d513cab59f18aa99a5297ce`. Its DSP and microphone implementation are unchanged. The E2E runner now opens that filename. Use a localhost server or HTTPS for the microphone; the new experiment runs from `file://`. ## Geometry → response Source `(1,2,1.5)` m, default ear `(7,4,1.5)` m. Width 8–18 m, depth 6 m, height 3.2 m. Point source/receiver, speed 343 m/s, positive pressure reflection coefficient `sqrt(1-alpha)`, where alpha is frequency-independent **energy** absorption. Reflect the source across a plane and measure straight-line distance to the ear. The line intersects the plane at the physical bounce point; its unfolded distance equals the two-segment reflection path. For direct distance `d0` and reflected distance `di`: ``` relative_delay_i = (di-d0)/343 pressure_gain_i = sqrt(1-alpha) * d0/di ``` Direct arrival is time 0 and amplitude 1. This removes the common travel time and normalizes by the direct amplitude at the current ear position; it does not model changing overall source/ear loudness. Default: `d0=sqrt(40)`, right-wall `di=sqrt(260)`, extra delay 28.5713 ms, relative pressure 35.0823%. Display rounds to 6.3 m, 16.1 m, +28.6 ms, 35.1%. Exactly six **single-bounce** paths are included. Higher-order paths can arrive before a distant single-bounce path; the six are not claimed to be the first six arrivals chronologically. No diffuse tail, diffraction, phase-changing/frequency-dependent surfaces, air absorption, stereo head model or physical-room accuracy claim. No RT60 or treatment estimate is inferred from this new model. Arrivals coincident within 1e-12 s add their pressures in the chart. Default far/near paths coincide at distance `sqrt(72)` and each have pressure 2/3, so the combined spike is 4/3. The chart adjusts its vertical ceiling to include that sum. Horizontal scale stays 0–100 ms so moving a wall visibly moves its arrival. The dropdown supplies readable, keyboard-accessible inspection of every arrival group; selected horizontal paths are highlighted on the same plan. Floor and ceiling paths leave the top view. ## Response → audio `echo-model.js` supplies geometry, fractional arrival deposition, sparse convolution, click/melody generation, and WAV encoding. `echo.js` uses those exact taps in both the chart and playback. Each fractional-sample delay distributes pressure between adjacent samples; this is linear interpolation, with some high-frequency attenuation, not a bandlimited fractional delay. The chart depicts the continuous geometric arrival; the WAV contains the discrete approximation. The audible click is a 2 ms windowed 1.8 kHz burst; it is not an ideal all-frequency impulse. The downloadable response corresponds to a single unit sample. The melody is six decaying harmonic notes synthesized locally. Web Audio receives the fully calculated float buffer; no `ConvolverNode` normalization or separate loudness normalization is used. Both direct and room versions use the same fixed gain 0.16. Reflections legitimately change their loudness and spectrum. Changing geometry/material stops stale audio; rapid plays replace the prior source, and returning from another page can reopen a closed context. WAV: 48 kHz, mono signed 16-bit PCM, impulse response at the same 0.16 gain. There is no microphone recording in the download. A convolution reverb should have automatic IR normalization disabled if reproducing this gain literally. ## Verification From this folder: ``` python3 verify-echo.py sh run-tests.sh python3 -I e2e.py ``` The first uses existing Chrome, numpy and websocket-client, with remote URLs blocked; it installs nothing. Scratch and screenshots stay in `.browser/`. Its independent Python geometry oracle checks 600 worlds including plane intersections and equal specular angles. Its independent numpy convolution checks 32 random cases at 8/44.1/48/96 kHz. Actual dry/wet browser buffers are cross-checked with an FFT convolution; real download bytes are decoded as PCM. Pointer, keyboard, phone/desktop layouts, clipping, absorption extremes, runtime exceptions and the preserved measurement entrance are checked too. Original DSP tests and simulated-microphone E2E remain useful regression evidence, not proof of microphone accuracy in a physical room or subjective audio quality. No physical listening test or real-room measurement was performed in this unattended run. No claim of measured learning outcomes. ## Sources - [Pyroomacoustics room simulation documentation](https://pyroomacoustics.readthedocs.io/en/pypi-release/pyroomacoustics.room.html): image sources, impulse responses and convolution; richer models for late scattering. - [MathWorks image-source example](https://www.mathworks.com/help/audio/ug/room-impulse-response-simulation-with-image-source-method-and-hrtf-interpolation.html): mirrored-source geometry for specular reflections. - [MIT Signals and Systems, convolution lecture](https://ocw.mit.edu/courses/6-003-signals-and-systems-fall-2011/3c5d1ec5efbca4bcf46cdf5a1cca3518_MIT6_003F11_lec08.pdf): an impulse response completely describes a linear time-invariant system. These support the model and scope. The moving-wall → response → music progression is this page's educational synthesis, not a new acoustics method. Research checked 2026-10-26.