Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d655f86
Grain 0.2.0-experimental (local test build): EDGE knob with CLMP, WRA…
noreply Nov 23, 2026
ff4b26d
Grain 0.2.0-experimental: EDGE selector bar with three positions
noreply Nov 23, 2026
2ba3b18
Grain 0.2.0-experimental: EDGE with four values (CLMP, WRAP, STOP, BNCE)
noreply Nov 23, 2026
ba03baf
Merge main into grain-0.2.0-edge
AForceTrulyEvil Nov 23, 2026
90cde9c
Grain 0.2.0-experimental: STOP ends the grain window at the edge, no …
noreply Nov 23, 2026
8f2cb39
Grain 0.2.0-experimental: documentation, release notes, captures and …
noreply Nov 23, 2026
4ebbb4c
Merge main into grain-0.2.0-edge (Grain 0.1.3); rebuild the 0.2.0 pac…
noreply Nov 24, 2026
434e56e
Merge main into grain-0.2.0-edge
AForceTrulyEvil Nov 24, 2026
9e99e9b
Grain 0.2.0: frame-costs.json as modules:generate writes it, which CI…
noreply Nov 24, 2026
c8dfc9b
Grain: a p-lock of POS moves one unit per detent and leaves the Part …
AForceTrulyEvil Nov 27, 2026
c576906
Grain: skip the FLEX reader's PCM copy while rendering grains (experi…
AForceTrulyEvil Nov 28, 2026
f220e7e
Grain: record the unit tests of the p-lock and recording fixes (unrel…
AForceTrulyEvil Nov 28, 2026
ccc650e
Grain: a p-lock of POS keeps the knob's eighths, in the step's lock b…
AForceTrulyEvil Nov 28, 2026
8bde438
Merge main into the Grain 0.2.0 branch (generated files rewritten by …
AForceTrulyEvil Nov 30, 2026
403bc20
Grain 0.2.0: declare the POLY8 conflict, release notes for the record…
AForceTrulyEvil Nov 30, 2026
6739aff
Grain 0.2.0: package rebuilt from this source (recording fix and POS …
AForceTrulyEvil Nov 30, 2026
1ac1e89
Grain 0.2.0: release notes in five lines
AForceTrulyEvil Nov 30, 2026
af8005b
Merge remote-tracking branch 'origin/main' into grain-0.2.0-release
AForceTrulyEvil Dec 1, 2026
4357b5c
Grain 0.2.0: unit results on the final package (frame cost, POS lock …
AForceTrulyEvil Dec 1, 2026
9cf6704
Grain 0.2.0: waveform view display update, package rebuilt (engine un…
AForceTrulyEvil Dec 1, 2026
0821a01
Merge remote-tracking branch 'origin/main' into grain-020-release
repeat98 Dec 2, 2026
cce9825
Grain 0.2.0: the owner's approval, with the medium-pattern exception
repeat98 Dec 2, 2026
c7bf84d
Grain 0.2.0: the test procedure record for the shipped package db1cb96a
repeat98 Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
13 changes: 6 additions & 7 deletions sdk/approvals/grain-build-approval.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"kind": "owner-approved-update",
"id": "grain",
"version": "0.1.3-experimental",
"version": "0.2.0-experimental",
"approvedBy": "repeat98",
"approvedOn": "2026-11-23",
"ownerStatement": "On 23 November 2026, repeat98 approved Grain 0.1.3-experimental (“I approve 0.1.3”), chose Flex's PTCH units, and after the unit runs on package 07b6e497 said “ok let's bring this update live”, with the waivers listed here.",
"reason": "Package 07b6e497b3513a7d9b1d32c278e26c0385d068e5d4a5dc2e1d96be04d916d865. 0.1.3 makes trig keys, CHROMATIC keys and MIDI notes play Grain's engine instead of plain Flex (the START flag 0x20 counts as the pool's audition only while the pool window is open on the selected track) and reads PTCH in Flex's units (60 an octave), in which stock locks CHROMATIC and MIDI notes. On the owner's MKII (OS 1.40C, development twin 95adb64b of base 0.8) five rolled-back trials showed no crash, stall, freeze or skipped track; the trig cases, the audition and the PTCH knob behaved as TESTING.md records. Nothing was heard: tuning by ear, a recorded CHROMATIC take, SCALE, a 0.1.2 project reloaded and the MKI are untested. The controls and screens are 0.1.2's, so 0.1.2's captures and tutorial stay. Worst-case chip timing and complete memory bounds remain unmeasured, as for 0.1.2.",
"retainedUiVersion": "0.1.2-experimental",
"sourceSha256": "24fad490769a6e8aaaabe34104956da5e1cb64a690367136a59db9682e874ccc",
"approvedOn": "2026-12-02",
"ownerStatement": "On 2 December 2026, repeat98 approved Grain 0.2.0-experimental (#2426) for release (“no let's bring it live”), after being told that it needs his approval record and his exception for the medium pattern (105.3 % of a frame), with the waivers listed here. On 30 November he had accepted CLMP as EDGE's default, as an exception, with release notes saying how WRAP restores projects saved with 0.1.2 or 0.1.3.",
"reason": "Package db1cb96a163450ce79cc9e361e4c41e94c431735d2df5d1139797cb4686cfe12. 0.2.0 adds EDGE (CLMP default, WRAP, STOP, BNCE), skips the stock FLEX reader's PCM copy while Grain renders its own voice (the site POLY8 also detours, so the two are listed as conflicts), fixes POS p-locks and halves the frame cost of a first instance (16.1 % from 33.3 %). On the author's MKI (OS 1.40C, development base 4c7eb79b) package 520215cb was measured with device:price --curve: admitted on the empty pattern, refused on the medium pattern at 105.3 %, which this approval waives as release-cost. The POS lock byte was checked by hand on 520215cb. db1cb96a differs from 520215cb only in the waveform view's display code; the frame cost and the lock test were not repeated on it. Not run: npm run test:procedure, an MKII, worst-case chip cycles and complete memory bounds.",
"sourceSha256": "1345af6db7462f990a5e930baabf8e77bd84914987a4334ed30ca1beadcf2b5a",
"waived": [
"current-build-hardware",
"chip-worst-case-cycles",
"complete-memory-bounds",
"release-documentation"
"release-cost"
]
}
2 changes: 1 addition & 1 deletion sdk/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
},
{
"id": "grain",
"version": "0.1.3-experimental",
"version": "0.2.0-experimental",
"addedAt": "2026-11-20T12:00:00Z"
},
{
Expand Down
2 changes: 1 addition & 1 deletion sdk/machines/octatrack/frame-costs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"bbd": {"first":0.7,"each":0.4,"rest":0,"points":[0.7,-0.1,0.4,0.7],"measured":"bbd 0.1.2-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02; owner's MKII; base 0.8 twin 27 479ad391; 8 s a reading; 2026-11-22"},
"euclid": {"first":3.7,"each":2.5,"rest":2.5,"points":[3.7,3.9,6.4,6.7],"measured":"euclid 0.1.5-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples; stock alone 79.4 %), picks on empty C02; base dce1d30e (0.8 twin); 8 s a reading; 2026-11-22 (npm run device:price -- --curve)"},
"everb": {"first":0.7,"each":0.2,"rest":0,"points":[0.7,0.8,1,-0.6],"measured":"everb 0.1.2-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples; stock alone 79.4 %), picks on empty C02; base dce1d30e (0.8 twin); 8 s a reading; 2026-11-22 (npm run device:price -- --curve)"},
"grain": {"first":33.3,"each":33.3,"rest":0,"points":[33.3],"measured":"grain 0.1.3-experimental on T1: C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (the scene FM Synth 0.1.5's curve used); picks on empty C02; Grain on T1, whose Flex slot holds a loaded 16-bit stereo sample. One instance: a second (T3, the other track with a loaded sample) was refused on 23 November and on T6/T7 Grain would render silence; owner's MKII; base 95adb64b (0.8 development twin, built from main 4035fdfa8); 8 s a reading; 2026-11-23 (evidence/frame-cost.json)","paused":4.7},
"grain": {"first":16.1,"each":8.6,"rest":0.4,"points":[16.1,24.7],"measured":"grain 0.2.0-experimental on T1 T3: A01 at 120 BPM, 16 steps, trigs on steps 1/5/9/13 of T1-T4, T6, T7: T1 and T3 Flex with a loaded 16-bit stereo sample (0.91 MB), T2 and T4 stock samples with time stretch off, T6 and T7 no sample, T5 and T8 empty; picks on empty A02; the author's MKI; package 520215cb; base 4c7eb79b (development base booted in RAM); 8 s a reading; 2026-11-30 (evidence/frame-cost.json)","paused":4.7},
"lofi2": {"first":1,"each":0,"rest":0,"points":[1,-1.5,-0.3,-1.3],"measured":"lofi2 0.1.1-experimental on T1 T3 T6 T7: Dev17 C04 at 126 BPM, trigs on steps 1/5/9/13 of T1-T4, T6, T7 (T2 and T4 play samples), picks on empty C02; owner's MKII; base 0.8 twin 28 053fd054; 8 s a reading; 2026-11-22"},
"mackity": {"first":0.9,"each":0.9,"rest":0,"points":[-1.8,-2.2,0.9,-2.9],"measured":"mackity 0.1.0-experimental on T1 T3 T6 T7: Project on the owner's development unit, bank C, Part 1 reloaded in RAM to its saved copy; picks on the empty C02, readings on C04 (trigs on steps 1/5/9/13 of T1-T4, T6, T7) at the project tempo; transport played by the tool; base development twin 8fd6d456 of base 0.8.1 (eb6679620d0c9ed7), the owner's MKII, OS 1.40C; 8 s a reading; 2026-11-25 (evidence/frame-cost.json)"},
"midiverb": {"first":2,"each":2,"rest":0,"points":[0.9,0.2,2.2,1],"measured":"midiverb 0.2.0-experimental on T1 T3 T6 T7: Dev17 bank C: C04 Part 2 (working = saved), picks on the empty C02, the curve on C04 (trigs on steps 1/5/9/13 of T1-T4, T6, T7), transport stopped; twin ed5474c6 of base 0.8.3 (main 80ea1e584); base development twin ed5474c6 of base 0.8.3 (main 80ea1e584), the owner's MKII, OS 1.40C; 8 s a reading; 2026-11-27 (evidence/frame-cost.json)"},
Expand Down
13 changes: 7 additions & 6 deletions sdk/octatrack/modules/grain/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Grain

Version 0.1.3-experimental · by A Force Truly Evil (@AForceTrulyEvil). The author played an earlier build on an MKI. The [test record](TESTING.md) identifies the build for each result.
Version 0.2.0-experimental · by A Force Truly Evil (@AForceTrulyEvil). The author played an earlier build on an MKI. The [test record](TESTING.md) identifies the build for each result.

## Overview

Expand All @@ -20,17 +20,18 @@ SRC (knobs A to F):
| POS | 0 to 127.8 | Where the grains are read: 0 is the start of the sample, 127.8 the end. Turned slowly it moves in eighths (41.0, 41.1, 41.2, 41.3, 41.5, 41.6, 41.7, 41.8, 42.0) and speeds up as you turn faster; a pressed knob jumps by seven. |
| SIZE | 0 to 127 | The length of each grain, on an exponential scale: 0 is 10 ms, 64 about 100 ms, 127 one second. |
| DENS | 0 to 127 | How often a grain is born. Low values leave gaps; 64 puts the grains one after another; 127 overlaps four of them (up to six sound at once). With MODE SYNC it picks the division of the bar: 1, 2, 4, 6, 8, 12, 16, 24, 32, 48 or 64 grains. |
| SPRY | 0 to 127 | How far each grain strays from POS at random: 0 keeps them all on POS, 127 spreads them up to half the sample either way. The sample is a ring: a grain born or reading past the end carries on from the beginning, and one going back past the beginning carries on from the end. |
| SPRY | 0 to 127 | How far each grain strays from POS at random: 0 keeps them all on POS, 127 spreads them up to half the sample either way. What happens when a grain reaches an edge of the sample is set by EDGE. |
| SCAN | -2.00 to +2.00 | A read head that runs through the sample from POS: 1.00 is the sample's own speed, negative runs backwards, 0.00 holds. It wraps round the sample and starts again from POS at every trig. |

SRC SETUP (knobs A to D):
SRC SETUP (knobs A to E):

| Knob | Values | What it does |
| --- | --- | --- |
| SHAP | NORM, TRI, PERC, SQR | The window of each grain. NORM a smooth bell: the grains melt into one another. TRI a triangle, a little more present in the middle. PERC an instant attack and an exponential fall to about -40 dB, so each grain is a tick or a pluck. SQR almost square, with short ramps: the grain keeps the sample's transients, like a stutter. |
| DIR | 0 to 127 | The share of grains that play backwards: 0 none, 64 half, chosen at random, 127 all. |
| PAN | OFF, 1 to 127 | A random pan for each grain, independent of where it was born. OFF at 0, the widest spread at 127. |
| MODE | RAND, SYNC | RAND: the grains are born freely, as DENS says. SYNC: they follow the project's tempo, and DENS picks how many fall in a bar. |
| EDGE | CLMP, WRAP, STOP, BNCE | What happens at the start and end of the sample. Turn several detents to change a value. **CLMP:** SPRY can't push a grain past an end. A grain that runs off one end carries on from the other. **WRAP:** the sample is a loop. A grain pushed or running off one end comes out of the other (as in 0.1.2). **STOP:** grains stay inside. SPRY can't push one past an end, and a grain that reaches an end stops there. **BNCE:** SPRY can't push a grain past an end. A grain that reaches an end plays back the other way. |

## Usage

Expand All @@ -43,7 +44,7 @@ SRC SETUP (knobs A to D):
1. Double-tap a track key, choose GRAIN in the machine list and press YES, then double-tap again and pick a Flex sample.
2. Put a trig on the track and play. Press SRC and turn POS: the grains move through the sample, and the waveform shows where. Turn SIZE down for a fine mist and up for long overlapping grains.
3. Turn SPRY up to scatter the grains around POS, and DENS up to thicken the cloud. Turn SCAN to let the read head run through the sample by itself.
4. Press SRC twice for SRC SETUP: turn PAN for a spread across the stereo field, DIR for a share of backward grains, SHAP to change the grain window, and MODE to SYNC to lock the grains to the tempo.
4. Press SRC twice for SRC SETUP: turn PAN for a spread across the stereo field, DIR for a share of backward grains, SHAP to change the grain window, MODE to SYNC to lock the grains to the tempo, and EDGE to choose what happens when a grain reaches the start or end of the sample.
5. Press SRC once more from SRC SETUP for the full-screen page, with a larger waveform and every value beside its name, for precise settings.
6. Press SRC again to leave the full-screen page. Press STOP to stop playback.

Expand All @@ -59,7 +60,7 @@ Everything else, menus, saving, loading, scenes, recording, MIDI and timing, is

## What a Part keeps

Everything Grain stores in a Part is a value stock's own power-on check accepts: PTCH as Flex's (64 is 0), SHAP and MODE in LOOP and RATE, POS's eighths in TSNS, and DIR and PAN in the track's unused NEIGHBOR bytes. A project opened without the module, or on a unit without it, keeps its banks and plays the track as Flex.
Everything Grain stores in a Part is a value stock's own power-on check accepts: PTCH as Flex's (64 is 0), SHAP and MODE in LOOP and RATE, POS's eighths in TSNS, EDGE in TSTR (0 to 3), and DIR and PAN in the track's unused NEIGHBOR bytes. A project opened without the module, or on a unit without it, keeps its banks and plays the track as Flex.

## Screens and audio

Expand All @@ -74,7 +75,7 @@ The author supplied a 45-second recording of Grain on their Octatrack MKI. They

## Compatibility and limitations

Grain uses a Modwerk base for Octatrack OS 1.40C and plays the selected track's Flex sample. Up to six grains can sound on each admitted track. An unreadable or loading sample plays silence. Replacing a sample during a note takes effect on the next trig. Sequencer trigs, trig keys, CHROMATIC keys and MIDI notes all play the grains, a note at its pitch (within PTCH's -12 to +12 semitones, as on Flex); only FUNC + YES in the sample pool plays the sample as a plain Flex, as a preview, until the track's next trig. POS parameter locks use whole numbers. Each grain plays 3 dB below full scale, so six long grains of a loud sample stay clean; raise the track volume if a single grain is too quiet. PTCH changed units in 0.1.3: Grain 0.1.2 stored semitones (-24 to +24), 0.1.3 reads Flex's units (5 a semitone), so a PTCH saved with 0.1.2 plays at a fifth of its transposition (+12 becomes +2.4): set it again. A SCALE in PROJECT > CONTROL > SEQUENCER (the scale quantizer that comes with FM Synth and Scale Quantizer) now steps in the same units as Grain; not tested on a unit.
Grain uses a Modwerk base for Octatrack OS 1.40C and plays the selected track's Flex sample. Up to six grains can sound on each admitted track. An unreadable or loading sample plays silence. Replacing a sample during a note takes effect on the next trig. Sequencer trigs, trig keys, CHROMATIC keys and MIDI notes all play the grains, a note at its pitch (within PTCH's -12 to +12 semitones, as on Flex); only FUNC + YES in the sample pool plays the sample as a plain Flex, as a preview, until the track's next trig. POS parameter locks use whole numbers. Each grain plays 3 dB below full scale, so six long grains of a loud sample stay clean; raise the track volume if a single grain is too quiet. PTCH changed units in 0.1.3: Grain 0.1.2 stored semitones (-24 to +24), 0.1.3 reads Flex's units (5 a semitone), so a PTCH saved with 0.1.2 plays at a fifth of its transposition (+12 becomes +2.4): set it again. A SCALE in PROJECT > CONTROL > SEQUENCER (the scale quantizer that comes with FM Synth and Scale Quantizer) now steps in the same units as Grain; not tested on a unit. EDGE (0.2.0): a project saved with 0.1.3 or earlier opens with EDGE on CLMP, so a grain that SPRY threw past an edge is now born on that edge instead of wrapping. Set EDGE to WRAP for the 0.1.2 sound, or to STOP for the 0.1.0 and 0.1.1 sound without the click.

## Tests and measurements

Expand Down
Loading
Loading