Original test fixture, generated September 25, 2026. Live desktop Chromium results, gate -40 dB, transpose 0: Minimum 40 ms: 26 notes. Minimum 100 ms: 15 notes. Minimum 400 ms: 0 notes. Counts are observations, not real-music accuracy scores. """Generate our own synthetic test, not a real-music accuracy benchmark.""" import math import struct import wave from pathlib import Path dest = Path(__file__).resolve().parents[1] / 'dist' / 'examples' dest.mkdir(exist_ok=True) rate = 44100 sequence = [60, 62, 64, 65, 67, 69, 71, 72] * 2 samples = [] for note in sequence: hz = 440 * 2 ** ((note - 69) / 12) for i in range(round(rate * .16)): t = i / rate envelope = min(1, t / .01, (.16 - t) / .02) samples.append(.42 * envelope * math.sin(2 * math.pi * hz * t)) samples.extend([0] * round(rate * .04)) with wave.open(str(dest / 'short-melody.wav'), 'wb') as output: output.setparams((1, 2, rate, len(samples), 'NONE', 'not compressed')) output.writeframes(b''.join(struct.pack('