# 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. ## Pattern A Kick on 1 and 9, snare on 5 and 13, closed hat on every odd step, at 16 steps. Voices and the onset threshold are in `fixtures/pattern-a.json`. ## Screenshot tolerance 8 levels, 98% of pixels. Timing is on the buffer. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | A small drum grid | Shown above the sequencer. | | `bpm` | Tempo | 120 | From 60 to 200. Tests also use 80 and 140. | | `steps` | Steps per bar | 16 | 8 or 16. | | `swing` | Swing | off | A documented delay on even steps, 16% of a step, when on. | | `count` | Count-in | off | One empty bar before the pattern, for a later jam. Tests usually leave this off. | | `kit` | Kit | box | Two shipped original sample kits, licensed in the repo. | ## 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/pattern-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/grid.png` | The 16-step fixture pattern at 120 bpm, playhead on step 5. | ## 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. A fixture pattern renders an offline audio buffer whose onset times and bar length match the grid, within 2 ms, including a swing case. UI tests paint and read back the pattern. Samples are original or permissively licensed. No audio hardware and no trademarked model name.