diff --git a/docs/TEST_PROCEDURE.md b/docs/TEST_PROCEDURE.md index a598ddb57f..326c5629d5 100644 --- a/docs/TEST_PROCEDURE.md +++ b/docs/TEST_PROCEDURE.md @@ -112,6 +112,7 @@ The steps, their order and the record are the same on every machine. Each step r | 11, 12 | by hand, then the submitter | the same | the same | - **Rytm unit steps** run only with `--link`, in a scratch project with REMOTE CTRL armed on a development base ([LINK.md](../sdk/machines/analog-rytm-mkii/LINK.md)). The RAM boot writes nothing to the flash and restarts the unit, so on a contributor's unit say so and get their OK first; their power cycle brings the flashed base back. Cases live in [`tools/cases//`](../sdk/machines/analog-rytm-mkii/tools/cases/README.md) and may change the saved state ([TEST_RUNNER.md](../sdk/machines/analog-rytm-mkii/TEST_RUNNER.md)); a module without them records step 7 as not run until they are written. +- **Digitakt II** has no link yet, so a base release covers steps 6 to 10 by hand: USB and Overbridge with the base installed, a long session and headroom measured on the unit ([RELEASE_TESTS.md](../sdk/machines/digitakt-ii/RELEASE_TESTS.md)). - **A base on another machine** is tested on an image linked from its development base with the set it is tested beside: link it with `--module` for each and pass it as `--package`, or the runner links the base alone. `--target emulator` is the Octatrack's session switch; elsewhere the emulator is step 5. ## The layers diff --git a/sdk/machines/digitakt-ii/RELEASE_TESTS.md b/sdk/machines/digitakt-ii/RELEASE_TESTS.md new file mode 100644 index 0000000000..cb294f4f63 --- /dev/null +++ b/sdk/machines/digitakt-ii/RELEASE_TESTS.md @@ -0,0 +1,88 @@ +# Digitakt II: release tests a unit runs by hand + +The [test procedure](../../../docs/TEST_PROCEDURE.md)'s steps 6 to 10 need a USB link, and the Digitakt II has none yet ([GOAL.md](GOAL.md)). So a base release, and a module that adds sound-chip work, runs these three tests by hand on the exact image named by its SHA-256: + +1. USB and Overbridge with the base installed. +2. A long session. +3. Headroom, measured on the unit. + +They prove what they measure on the unit that ran them, nothing else. "Not run" is a valid result. Write down what you saw, and keep what a tester reports labelled as reported. + +## Before you start + +- **A scratch project.** Make a copy of a real project, and back up the unit with Elektron Transfer first. Recovery is the stock OS over MIDI DIN (FUNC + TRIG 4 at power-on), so check you can do it before flashing anything ([machine.json](machine.json)'s `recovery`). +- **The test project** (keep it outside Git, beside your stock OS file): + + | Pattern | What it holds | For | + |---|---|---| + | A01, quiet | one track, a sustained sample, one trig | clicks and dropouts heard over silence | + | A02, medium | a trig every four steps on six tracks, two of them long samples | the long session | + | A03, busy | all sixteen tracks, a trig on every step, every track's FX knobs and both sends up, the filter envelope at full depth | headroom and the long session | + | A04, short | four steps, trigs on two tracks | pattern changes landing at a pattern's end | + + When the image carries modules, put each one on at least one track of A02 and A03: a machine on a track, a filter type on a track, an effect lit on every track. On A03, the set's worst case means every voice that can use it does (for example a filter type on every track, eight effect slots busy). +- **A computer** with Elektron Transfer and Overbridge, a DAW or recorder that can record the unit's USB audio and send MIDI, and `python3` with `numpy` for the click scan. + +## 1. USB and Overbridge with the base installed + +The base does not touch USB, but it runs beside it: its code and memory sit with the OS's, and its sound-chip work shares the block with USB audio. So test every USB mode the unit offers (SETTINGS > SYSTEM > USB CONFIG: Overbridge, Audio/MIDI, MIDI), on the stock OS first and then on the image, with the same steps: + +1. Connect, and check the computer sees the unit in that mode. +2. **MIDI** (every mode): notes from the computer play a track, the unit's clock drives the DAW's tempo, and turning a knob on the unit sends its CC. +3. **Audio** (Audio/MIDI and Overbridge): record the main output for one minute of A02 over USB, and play audio from the computer into the unit's USB input. +4. **Overbridge** (Overbridge mode): the plugin connects, shows the parameters of the active track, follows a knob turned on the unit, and streams the separate track outputs. Record two of them with the main output for a minute. +5. **Transfer**: it connects, lists the samples, and sends one sample to the unit. +6. Unplug the USB cable while A02 plays, wait five seconds and plug it back in. The unit keeps playing, and the computer finds it again. + +Pass: everything works as it did on stock, and the click scan (below) finds no click or dropout in any recording that the stock run didn't show. Record the mode, the step and what you saw. Don't test the OS upgrade over USB on a contributor's unit here: that is a flash, and only the unit's owner does it. + +## 2. A long session + +One hour on the image, in Overbridge mode with the main output recorded over USB (in Audio/MIDI mode if Overbridge isn't available): + +1. Play A02 for 15 minutes, then A03 for 15 minutes, then chain A01-A04 (each repeating twice) for 15 minutes, then back to A02. +2. While it plays, every few minutes: + - turn the filter, amp and FX knobs on several tracks; + - mute and unmute tracks; + - change a track's filter type, and a machine on a track; + - with linked voices, change VOICES on a lead and play chords from the keys; + - send notes and CCs from the computer. +3. Twice, stop and do SAVE PROJECT, load another project, and load this one back. +4. At the end: SAVE PROJECT, power cycle, load the project, and play A02 again. + +Pass: no freeze, reset or stuck note, the screen responds throughout, every setting comes back after the reloads and the power cycle, and the recording scans clean. + +The click scan works on any WAV the recorder wrote: + +``` +python3 -B scripts/octatrack-clicks.py TAKE.wav --channels 0,1 +``` + +Use `--grid` with the pattern's step length on a pattern of short drums, so the trigs' own onsets aren't counted. A long sample or a sustained sound on A01 shows clicks that drums hide. + +## 3. Headroom, measured on the unit + +The sound chip's budget for modules (`DT2_SHARC_BUDGET`, 60,000 instructions a block for now) rests on an assumption that hasn't been measured. It assumes a real cycle costs 1.13 to 1.41 emulator instructions, so that stock at its busiest uses 58-72 % of a block ([the effect slot's record](../../../docs/verification/2026-11-25-digitakt-ii-fx-slot.md#cost-and-memory)). This test measures the real figure, and the budget is set again from it. + +**The ladder.** Several images, each the image under test plus a load routine on the sound chip that spends a fixed number of cycles every block, K: a counted loop of single-cycle instructions with nothing else in it. K steps through 120,000, 160,000, 200,000, 240,000, 280,000 and 320,000. The routine is development-only and never part of a release. It is not in the repository yet: it comes with the combined build, as a development base's test effect with a fixed count. + +1. Flash the image with no load routine. Play A03 for one minute, recorded over USB. That is the reference. +2. Flash the middle of the ladder (200,000), and play and record A03 the same way. +3. If it plays clean, go up the ladder; if it breaks up (clicks, dropouts, a stuck sound, the screen freezing), go down. Two or three flashes find the last clean step. At the first sign of breakup, stop playing and flash the next image; if the unit doesn't respond, power cycle it, and use recovery if needed. +4. Repeat the last clean step and the first bad step once each, to make sure the boundary holds. + +The last clean K is the headroom H, in cycles, with stock at its busiest and the image's modules at their worst case. Stock's real cost in that block is then 666,667 − H cycles. Over the emulator's 342,016 instructions for the same scene, that gives the real factor. Without modules, the budget becomes 0.85 × 666,667 − (666,667 − H) = H − 100,000 cycles: the 15 % margin stays free. A set of modules costs the difference between its H and the base-only H. That difference is the figure to compare with the cost the packages declare. + +Pass for a release: with the release's own set at its worst case, H is at least 100,000 (the 15 % margin). A set that leaves less has declared too low a cost, or the budget is too large. + +## The record + +Put the results in the release's verification record, one table per test: + +- the image's full SHA-256; +- the unit, its OS (1.17) and the USB mode; +- each step and what you saw; +- each recording's scan summary; +- for headroom, every ladder step you ran with its result, and the H you found. + +A step not run stays in the table as "not run", with the reason. Once the Digitakt II has a USB link, these tests become the test procedure's steps 6 to 10 on that link, and this page shrinks to what only a person can judge.