OP-XY Grains
Firmware for OP-XY (Teenage Engineering)
Granular sample engine for the OP-XY on the stock sampler page, with a screen that draws each grain over the sample's waveform, six presets and controls for position, scan, grain size, density, spread, chords and window shape, built on the Open-XY SDK.
by mmockett

Brick risk. Flashing this carries a known, documented risk of damaging the device.
- Distribution
- Build from source yourself
- Requires stock
- 1.2.1
- License notes
- The README says Grains takes ideas, not code, from the Oi, Grandad! machine and Elektron's Tonverk Grainer. The repository holds source, tests, presets and screenshots, with no OP-XY OS file or sample. Builds link the engine into a modified copy of the user's own OP-XY OS.
- Source
- github.com https://github.com/mmockett/OP-XY-Grains
- Homepage
- github.com https://github.com/mmockett/OP-XY-Grains#readme
- machines
- synth-engine
- sampler
- granular
- sdk
Description
Grains plays one loaded sample across the keyboard like the stock sampler, but reads it as grains. Page one holds position, scan speed, grain size and density, and page two holds spread, a chord setting, the grain window and a mode of cloud, sync to the tempo or evenly overlapped, each also with a backwards variant. Holding Shift, the encoders edit the stock sampler's start and end markers and gain. The OP-XY's own envelopes, LFOs, filter and effects apply on top, and the screen follows the track's amp envelope. All notes share 64 grains at once, and a note that has to give some up fades them over about 6 ms. The screen draws each grain at its read position and pitch. It opens on a six-second sample of its own, rendered from the author's Wane machine, which a sample loaded over it replaces. The README calls it experimental. It says Grains plays on an OP-XY running OS 1.2.1 and targets SDK 1.10, and gives one on-device capture of v1.2.0's render callback at 3.09% of the stock block budget for its default settings, graphics excluded, with heavier settings costing more. Its screen preview was rendered on a computer. The Open-XY machine catalog lists it at v1.1.0, and v1.2.0 and later build from source until the catalog entry moves.
Install notes
Check out the Open-XY SDK's staging branch beside this repository, run its tests on the machine, then build with sdk.py against your own stock 1.2.1 os.ldr and install the build's candidate files as the SDK's build guide describes, which ends with writing the OS from the device's boot menu. Command-line builds carry no presets, so copy this repository's presets folder to the device's content/presets/grains. The SDK's authors say a faulty image may not be recoverable, and the stock update restores the original.
Version history
| Version | Date | Notes |
|---|---|---|
| v1.2.1 | 2026-11-06 | Git tag; no GitHub release page. Costs less in its busiest audio blocks with the same output. |
| v1.2.0 | 2026-11-05 | Git tag; no GitHub release page. Opens on a built-in sample, adds a waveform strip, Shift editing of the sampler's markers and gain, and follows the track's amp envelope. Targets SDK 1.10. |
| v1.1.0 | 2026-11-01 | Git tag; no GitHub release page. Adds the six presets, draws the grain window on the screen and follows SDK 1.8's final sample overview. |
| v1.0.0 | 2026-10-29 | Git tag; no GitHub release page. |