# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Patch A An oscillator (saw, 220 Hz) into a low-pass at 1.2 kHz into a gain of 0.4, 2 seconds. Expected peak, RMS, and a coarse spectrum (energy below/above 1.2 kHz) are in the envelope file. Tolerances: peak 10%, RMS 10%, onset 5 ms. ## Screenshot tolerance 8 levels, 98% of pixels. Audio checks are on the buffer, not the image. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | A small rack | Shown above the patch bay. | | `sample_rate` | Sample rate | 44100 | 44100 or 48000. Tests run both. | | `keyboard` | On-screen keys | on | A two-octave keyboard that posts notes into the patch. | | `scopes` | Show a scope | on | A small waveform after the last module. | | `rack` | Starting rack | voice | voice is a documented oscillator-filter-gain patch. empty is a blank bay. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `fixtures/patch-a-env.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `fixtures/patch-a.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/rack.png` | A small rack with a fixture patch cabled across the modules. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. Offline renders of fixture patches match documented waveform or spectrum envelopes, with tolerances. Note-on and note-off are checked in the buffer, not against a speaker. No audio hardware, no MIDI device, and no network are required.