Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 34 additions & 0 deletions sdk/drafts/fract-machine/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
[
{
"version": "0.1.7-experimental",
"date": "2026-11-27",
"changes": [
"Allows the single FRACT owner on any audio track T1\u2013T8, including both DSP cores.",
"Keeps the two-grain engine and saved Part format; exact-build qualification is in progress."
]
},
{
"version": "0.1.6-experimental",
"date": "2026-11-27",
"changes": [
"Uses two overlapping grains with the existing POS, SIZE, REVS, SPRD, SHPE, PTCH, PAN and SRNG controls.",
"Retains saved Part compatibility; the texture and output level change from the three-grain prototype.",
"Remains an unlisted candidate while full hardware qualification is completed."
]
},
{
"version": "0.1.5-experimental",
"date": "2026-11-27",
"changes": [
"Reduces work during SIZE and PAN modulation, shortest Hann grains and waveform drawing while preserving sample output and controls.",
"Remains an unlisted draft; USB-audio stress still fails and release qualification is incomplete."
]
},
{
"version": "0.1.4-experimental",
"date": "2026-11-26",
"changes": [
"Declares a measured 40% CPU budget for the three-grain machine.",
"Prepares FRACT for Modwerk base 0.8.2.",
"Remains an unlisted draft while hardware qualification is completed."
]
},
{
"version": "0.1.3-experimental",
"date": "2026-11-25",
Expand Down
24 changes: 17 additions & 7 deletions sdk/drafts/fract-machine/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# FRACT source draft

Version 0.1.3-experimental · author @ex1010
Version 0.1.7-experimental · author @ex1010

Two live readers retain the 128-byte/three-slot Part ABI. One FRACT owner may use
any T1-T8. Development125c passed the four-format matrix and a 122-second active
MAIN+CUE USB case without new guarded render skips. It also passed T1/T5 and
12 Part-transition checks. This remains an unpublished candidate: released-base
audio, full qualification and the human stage are pending. See [current evidence](release/hardware-20261127-iteration18.md).

## Overview

FRACT is a three-grain sample track machine. POS moves through the sample from
FRACT is a two-grain sample track machine. POS moves through the sample from
left to right; SIZE expands the grain span around that center and wraps at the
sample edges. It uses native FLEX for pitch and voice playback. This replaces
the earlier FX2/SPACE proposal in the consolidated draft submission #926.
Expand Down Expand Up @@ -33,13 +39,16 @@ and bounded pitch editor. Defaults below are the saved values.
| SETUP A | PAN | 0 | Random grain stereo width; 0 keeps both channels balanced. |
| SETUP C | SRNG | FULL | Spread range: FULL source, or LOCAL capped at 88,200 source frames. |

Three grains overlap at fixed maximum density. Finite AMP envelopes silence the
The overview shows the whole sample's amplitude envelope. A steady-level tone
can appear as a solid band; changes in amplitude remain visible.

Two grains overlap at fixed maximum density. Finite AMP envelopes silence the
voice; INF sustains. Disabled SETUP slots are not user controls. There is no
active SPACE processor or FX2 effect.

## Usage

On a compatible private paired build, select one track T1–T4, open SRC SETUP and
On a compatible private paired build, select one track T1–T8, open SRC SETUP and
choose FRACT. Open its sample browser and select a loaded FLEX-pool sample.
Return to MAIN for POS/SIZE and the remaining controls. Only one FRACT owner is
admitted at a time. These controls are present in the tested private candidate;
Expand All @@ -54,7 +63,7 @@ this source draft cannot be installed from the public configurator.
## Compatibility and limitations

Target OS is Octatrack 1.40C. The registry has eight audio-track slots; the
current FRACT admission policy allows one owner on T1–T4 only. This is an
current FRACT admission policy allows one owner on T1–T8. This is an
intentional private prototype limit, not eight simultaneous instances.

START dispatch from #1029 is merged. The inherited native-FLEX reader fix is
Expand All @@ -64,8 +73,9 @@ the author completed the short physical check on base `9b3ba417` with a private
paired FRACT build; USB confirmed that exact base and module set after power-on.
See TESTING.md for identities, reported observations and limits. No active catalogue entry or public package exists. The earlier 0.1.1 candidate has the 6 November functional hardware report in
TESTING.md. The historical 0.1.2 candidate has a named-build functional hardware report.
Current 0.1.3 is relinked for released base0.8.1 and has updated shared page
controls; current-build hardware, timing/stress and qualification remain pending.
Current 0.1.6 targets released base0.8.2 and declares a 40% CPU budget after
physical four-format measurements found the implicit 12% charge insufficient.
The current development125c matrix observed at most33.5added mean points; see [the named hardware record](release/hardware-20261127-iteration18.md). Full qualification and first-release approval remain pending.

Historical 0.1.1 results remain in TESTING.md. The historical 0.1.2 candidate's Part and
project reload, lifecycle and cold boot are scoped in
Expand Down
39 changes: 38 additions & 1 deletion sdk/drafts/fract-machine/TESTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
# FRACT testing

## Current preparation — 25 November 2026
## Current 0.1.7 observations — 27 November 2026

**Expanded stage1 failed:**9973new guarded skips across the dense FM Synth/Mini Verb/activeUSB4 quartet trial;1new skip at9.445seconds with FRACT plus a private fixed20channelUSB companion. Both stopped/undone; see [failure receipt](release/expanded-failures-20261127-iteration18.json). The earlier standalone4channel results do not cover these loads. Two-reader optimization is under investigation; no full pass or release approval.

One FRACT owner may now use any T1–T8; two live readers and the Part ABI are unchanged. The actual admission function passes all eight owners, 64 exclusion pairs, invalid tracks and Part immutability checks. Ten module tests, 52 SDK cases (four historical skips), nine runtime cases and seven probe cases pass. macOS and isolated Linux release packages are byte-identical. See [the exact-build record](release/qualification-20261127-iteration18.md).

Development125c on base46 passed fixed T1/T5 and 12 Part checks, the 2400-operation control soak, all eight single-owner track picks, 20 four-format windows and 122 seconds of active MAIN+CUE four-channel USB stress with no new guard skips. CPU FULL refusals before refreshed native playback, CPU warning notes and failed probe attempts are retained. Private89411 timing is separate from normal125c. See [the hardware report](release/hardware-20261127-iteration18.md).

**Full stage1 remains incomplete.** The procedure's price step was a false success with a misidentified filename; its partial rest data are not a valid curve. A correctly named single-owner repeat is recorded separately. Exact public f806/base24e install/integrity/Undo passed45seconds; released-base audio, remaining lifecycle/companion cases, listening, exact-version Keep/reboot and first-release approval remain pending. No waiver is granted.



Shared SDK checks are separate contributions: #2283 removes stale reconstruction constants; #2294 checks the declared live-reader count. The qualification worktree includes those corrections, where the 52 SDK cases and nine runtime cases pass. On unmodified main the old checks reproduce their hardcoded three-reader/nine-copy failures; the module-only draft intentionally leaves shared gates unchanged and waits for those PRs to merge.

## Historical0.1.6 two-reader adoption —27 November2026

Native inputs are committed at `0de973642fbd33e28f46de8f310419f74458dd5e`. [Exact-build preparation](release/qualification-20261127-iteration17.md) names release8c96 and development9b86. The normal development package passed20four-format windows (maxmean addition33.5points vsprice40),122.233s active MAIN+CUE4chUSB stress with22control windows/guard0→0,12settledPart transitions, and allowedT1–T4/second-owner refusal checks.

**Full stage1 remains incomplete.** The fixed procedure failed its mandatoryT5pick and onePart4transition. The unchanged policy permits one owner onT1–T4; the missedPart4cause is not established. MIDIsoak, full companion matrix, released-base audio, listening and persistence remain pending. TwoCPU>=90%/1s notes and digital-recording uncertainties are retained in [the hardware report](release/hardware-20261127-iteration17.md). NoKeep/NORwrite/waiver/releaseapproval.

The source has two live readers and unchanged128-byte/three-slot storage. The varying-envelope fixture retained108columns. F16M/BENCH has the same constant peak in all108bins, so its full envelope is a rectangle; initial sparse sampling gives the temporary toothed preview. This does not alter samplePCM. Original8Parts and28CFfiles were verified on restoration; independent final readback confirmed base0.8.2,normal,emptyinventory/missing and unchanged confirmedNORslots. All ownedlinks are closed and the queue is free.

## Historical0.1.5 —27 November2026

The iteration11 three-reader twin failed active4chUSB (+4trial skips); the later small-span three-reader variant failed with+9. See [historical hardware record](release/hardware-20261127.md). Those results remain scoped to their old packages.

## Historical 0.1.4 hardware result — 26–27 November 2026

**Stage 1 failed.** Unlisted0.1.4 corrects the declared CPU price to40; its
separately named development build completed the four-format measurement matrix
but skipped renders under parameter locks, LFOs and USB audio on both 20- and
4-channel layouts. See the [named-build report](release/hardware-20261126.md).
The unit, original project and card files were restored; owned links are closed.
Performance must be fixed and stage 1 repeated before user listening/Keep/reboot.
The released-base package itself remains physically untested. No first-release
approval, module Keep or physical reboot is claimed for this build.

## Historical preparation — 25 November 2026

Unlisted `0.1.3-experimental` is prepared from released main/base 0.8.1.
Normal package SHA-256 `c56e79076b170e76c53f46286a3d31aa8d8c51f9d52070836b1ca75fa37f8e29`,
Expand Down
6 changes: 3 additions & 3 deletions sdk/drafts/fract-machine/build_private.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def compile_source(args, base, work):
'-fno-unwind-tables', '-fomit-frame-pointer', '-ffunction-sections', '-fdata-sections',
'-Wall', '-Wextra', '-Werror', '-DOG_MACHINE_PROTOTYPE',
'-DOG_MACHINE_START_EXTENSION', '-DOG_NATIVE_STAGE_ONE', '-DOG_MACHINE_BASE_BOUND',
'-DOG_MACHINE_GRAIN_ONLY',
'-DOG_MACHINE_GRAIN_ONLY', '-DOG_MACHINE_ALL_TRACKS',
*['-I' + str(p) for p in includes]]
run = lambda argv: subprocess.run(list(map(str, argv)), check=True, capture_output=True)
sources = [DRAFT / (n + '.c') for n in
Expand All @@ -117,8 +117,8 @@ def compile_source(args, base, work):
objects = []
for source in sources:
obj = work / (source.stem + '.o')
# The bounded packet renderer is a frame hot path. Other units use Os.
optimize = ['-O2'] if source.stem == 'render' else []
# Packet adaptation and grain mixing both run in the frame interrupt.
optimize = ['-O2'] if source.stem in ('render', 'grain') else []
run([args.cross + 'gcc', *flags, *optimize, '-I' + str(work), '-c', source, '-o', obj])
objects.append(obj)
m68k_codegen.check_mcf54455(objects, args.cross + 'objdump')
Expand Down
51 changes: 51 additions & 0 deletions sdk/drafts/fract-machine/chunk.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* Shared chunk implementation: native render inlines it; the external
* entry retains the same validation and behavior for other callers. */
#ifndef FRACT_MACHINE_CHUNK_H
#define FRACT_MACHINE_CHUNK_H
#include "machine.h"
#include "grain.h"
#include "sizes.h"
#include "cpu_profile.h"

static inline __attribute__((always_inline)) int og_machine_chunk_inline(unsigned track, const OgSource *source,
const OgMachineControls *controls, int32_t *audio,
unsigned count) {
if (track >= 8 || count - 1u >= 64) return OG_MACHINE_IGNORED;
if (!source || source->frames - 1u >= 44860416u || source->slot >= 128 ||
!source->identity || (source->bytes != 2 && source->bytes != 3) ||
(source->channels != 1 && source->channels != 2) || source->little) {
og_machine_leave(track);
return OG_MACHINE_IGNORED;
}
if (!controls || !audio) return OG_MACHINE_IGNORED;
if (og_owner < 8 && og_owner != track) return OG_MACHINE_BUSY;

unsigned density = controls->density;
unsigned forwards = controls->forwards;
uint8_t params[OG_PARAMS] = {
og_densities[density > 127 ? 127 : density],
controls->size, controls->position, controls->scan, controls->spread,
controls->pan, controls->shape,
(uint8_t)(127 - (forwards > 127 ? 127 : forwards))
};
uint32_t identity = source->identity ^ (source->slot << 24);
if (og_owner == 8 || og_state.identity != identity)
og_reset(&og_state, identity);
og_owner = track;
og_state.pitch = 0;
og_state.spread_mode = controls->local_spread == 1;

/* The endpoint cache is local to this chunk, just as in source.c. */
OgSource src = *source;
src.join_mode = src.frames >= 2048;
#ifdef OG_MACHINE_CPU_PROFILE
uint32_t at=og_cpu_clock();
#endif
og_engine(&og_state, &src, params, audio, count);
#ifdef OG_MACHINE_CPU_PROFILE
og_cpu_grain_end(at,count);
#endif
return OG_MACHINE_RENDERED;
}

#endif
Loading
Loading