Build “Surface”, a first browser instrument for sorbus.app. Intent Create a quiet, exploratory musical instrument in which a person rotates and zooms a real three-dimensional fractal, then listens to a laser scanning its visible surface. Let them change between Mandelbulb, Mandelbox and Menger sponge examples, vary each formula, and choose either the view or a rectangular patch to scan. Aim for evolving ambient melody and polyphonic harmony, not random notes or a prerecorded soundtrack. Geometry and drawing Use WebGL 2 / GLSL distance-estimated ray marching. Keep one shared implementation of each field, the camera ray and the hit criterion. Compile that same source into the visible renderer and a tiny floating-point picking pass. Read the actual hit position, surface normal, orbit/fold feature and hit residual from the GPU. Reject misses and nonfinite values. Use a finite, stated iteration/step budget and adaptive render resolution. Do not call the numerical surface mathematically exact or claim that these established fractals are new discoveries. Interaction Provide drag/orbit rotation, wheel and two-finger zoom, keyboard rotation/zoom and Reset view. Use optical magnification or an equally robust camera policy that avoids accidentally flying inside a distance field. A “Choose an area” mode lets the user draw a rectangle directly on the image; keep that region in view coordinates as the object turns. Resetting to the whole view must be easy. Clearly indicate when a beam misses the surface. Surface-to-melody method Move a continuous Lissajous scan across the chosen rectangle. Sample the actual visible hit, not screen colour. Blend object-space height, surface direction and fold/orbit information into a bounded scalar. Low-pass interpolate this contour over about 400 milliseconds, quantize at note onsets to a user-selected root and scale, and limit adjacent melodic leaps. Map object-space horizontal position to stereo pan, surface direction to brightness and depth to gentle velocity changes. A ray miss is a rest. Give the scan speed and note rate independent controls. Polyphonic harmonizer Build simultaneous diatonic voices from the same scale and current melody degree: melody only, open fifths, triads, sevenths and ninths. Use audible, independent synthesized voices with soft attacks/releases, subdued detuning, filtering, stereo placement and diffuse stereo reverb. Bound polyphony and retire old voices gently. Include volume, reverb, root and scale controls. Sound begins only after a user gesture. Stop, hidden-tab and graphics-failure handling must release sound reliably. Exact spatial coupling For every note event, preserve the very same XYZ float triplet read from the GPU together with its scheduled AudioContext onset. Pass that position back to the GLSL renderer. Evaluate the glow/ripple by distance from this object-space point; never fake it with a cursor flash or a global screen pulse. Earlier pulses must remain attached to their sampled surface positions when the view rotates. Render a beam ending at the same hit, with depth occlusion. Drive pulse age from the audio-output clock using getOutputTimestamp where supported, with a documented latency fallback. A display frame is not sample-accurate, and a floating-point ray hit has numerical tolerance: explain these limits honestly. Sorbus presentation Use a dark forest-green workbench, pale paper typography, fine rules, restrained botanical/copper light and a large living sculpture. Avoid generic dashboard styling, neon spectacle and decorative controls that do nothing. Keep controls understandable, labelled, responsive and keyboard usable. Explain the mapping in a short optional disclosure. Link back to Sorbus and the live listening page. Delivery Implement a standalone static webpage first, with no changes to Scrawqi’s installed app or the existing live stream/comments. No microphone permission, accounts or external audio samples are needed. Save this reusable prompt with the source. Verify the three shapes, rotation/zoom, region picking, actual GPU hit residuals, musical scale/chord invariants, bounded voices, audio stop/restart and coordinate identity between note events and shader pulses. Visually inspect the page and test real browser sound. Publish to sorbus.app/fractal/ using its established hosting, preserving existing site content, and add a small discoverable link.