Commit graph

71 commits

Author SHA1 Message Date
monkey-w1n5t0n
1127c8aac9 fix: default to visual mode (20 outputs) and fix FlowField canvas resize
Change default outputMode from 'synth' to 'visual' in ml-store.ts so
FlowField particles render immediately on page load. Fix FlowField
component canvas initialization: create visualizer in ResizeObserver
callback (after layout) instead of in createEffect (before layout
settles), preventing the default 300x150 canvas size issue. Add window
resize listener as fallback. Update all 13 affected tests to expect 20
outputs (visual mode default) instead of 126 (synth mode).

Unblocks VAL-VIS-001, VAL-VIS-002, VAL-VIS-003.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 19:01:55 +02:00
monkey-w1n5t0n
b9e330beb4 feat(solidjs): implement fullscreen Canvas2D flow-field particle system driven by ML outputs
Transplant FlowFieldVisualizer from playground/js/ui/visualizer.js with TypeScript
types. Create SolidJS FlowField component with own rAF render loop, reactive to
output mode changes. Canvas resizes via ResizeObserver. Add 8 e2e tests covering
VAL-VIS-001 (particles render), VAL-VIS-002 (joystick changes flow), VAL-VIS-003
(canvas resizes with window).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 18:15:49 +02:00
monkey-w1n5t0n
3c4e45aa5d feat(solidjs): implement joystick component with pointer events, input store, and follow mode
Build touch/mouse joystick component that tracks drag position as [0,1]
coordinates. Implements:
- Input store (src/stores/input-store.ts) with joyX/joyY signals
- Joystick component (src/components/input/Joystick.tsx) with canvas
  rendering, pointer events, and follow mode toggle
- Input clamping for out-of-range values (NaN, Infinity, negative, >1)
- Follow mode badge with pulse animation
- 12 e2e tests covering VAL-JOY-001, VAL-JOY-002, VAL-JOY-005

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 17:51:05 +02:00
monkey-w1n5t0n
9887bf50c9 feat(solidjs): implement reactive inference loop with NaN-safe clamping and comprehensive e2e tests
- Add NaN/Infinity guard in MLStore.setInputs() — non-finite values map to 0.5 (center)
- Add 14 e2e tests covering VAL-ML-004 (different inputs → different outputs) and
  VAL-ML-005 (synchronous inference — getOutputs immediately reflects setInputs)
- Tests cover: position differentiation, sequential consistency, clamping verification,
  boundary values, NaN handling, bus emission, and determinism

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 17:34:34 +02:00
monkey-w1n5t0n
6fdc2985f9 feat(solidjs): implement ML store with dual WasmIML instances and dynamic output count
Create ML store wrapping dual WasmIML instances (imlJoy for joystick with
2 inputs, imlHand for hand tracking with 14 inputs) with warm-start weight
transfer on mode switch. Outputs stored as Float32Array signal. Mode switching
triggers MLP resize (visual=20, synth=126, midi-cc=8, audio-canvas=36).
Initial state: 0 examples, null loss, all outputs bounded [0,1].

Fulfills: VAL-ML-001, VAL-ML-002, VAL-ML-022

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 17:23:06 +02:00
monkey-w1n5t0n
4613cbbbde feat(solidjs): extract debug probe module with comprehensive e2e tests
Extract window.__nisps debug probe into its own module (src/probe/debug-probe.ts)
with typed DebugProbe interface. Probe is only exposed when ?debug=1 is present.
Add 17 Playwright e2e tests validating VAL-PROJ-005 and VAL-PROJ-006, including
method enumeration, smoke tests for all 15 methods, and undefined check without debug flag.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 16:42:15 +02:00
monkey-w1n5t0n
f3252008e5 feat(solidjs): implement reactive signal bus with wildcard matching
Add signal bus (src/bus/signal-bus.ts) with:
- Named topics using createSignal with equals:false for event semantics
- emit() triggers all subscribers even with identical data
- subscribe() returns unsubscribe function
- match() with wildcard patterns: * (single segment) and ** (multi-segment)
- Callable topic interface (topic() reads current value)

Wire bus into App.tsx, expose as window.__nispsBus for tests.
10 e2e tests covering all bus behaviors (VAL-PROJ-004).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 16:29:09 +02:00
monkey-w1n5t0n
7337e8eaed feat(solidjs): set up Vite + SolidJS project with WASM inference
- Vite config with COOP/COEP headers for SharedArrayBuffer
- SolidJS app renders at root URL without JS errors
- WASM ML engine loads and inference returns 126 bounded [0,1] outputs
- Debug probe (window.__nisps) exposed only with ?debug=1
- TypeScript strict mode with complete type coverage
- Playwright e2e tests (8 tests) for VAL-PROJ-001/002/003
- WasmIML TypeScript port from playground/js/nisps/nisps-wasm.js
- Dataset TypeScript port with FIFO ring buffer and sample weighting

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-04-07 16:17:08 +02:00
chriskiefer
ecacfb9d0c memlib 2026-03-18 16:30:19 +00:00
chriskiefer
5d38e36e0e memlib 2026-03-07 15:14:53 +00:00
chriskiefer
1af45be168 midi sync 2026-03-06 10:04:30 +00:00
chriskiefer
9906cbd154 i2c refactor and speed up 2026-03-05 22:25:21 +00:00
chriskiefer
16a38fbb66 refactor storage, no longer need node.hs 2026-02-25 16:57:02 +00:00
chriskiefer
6707781b3b phase offset 2026-02-25 16:30:52 +00:00
chriskiefer
9498f77278 midi routing from audio app 2026-02-22 12:41:09 +00:00
chriskiefer
dd78891783 start of break|| 2026-02-22 11:39:27 +00:00
chriskiefer
b8a7a6a9a1 memory storage modes 2026-01-13 17:20:19 +00:00
chriskiefer
75166e85d8 bypass toggle colours 2025-12-10 17:35:48 +00:00
chriskiefer
ec02ff68f1 xiasri and CS 2025-12-10 16:40:28 +00:00
chriskiefer
bb1e6de3df xiasri latest, and channel strip changes for 4D input 2025-12-10 16:40:00 +00:00
chriskiefer
b853326ab6 xiasri, channelstrip 2025-11-28 14:59:36 +00:00
chriskiefer
faf704fe7a refactor 2025-11-24 11:29:59 +00:00
chriskiefer
0626f4aa14 modes 2025-11-23 15:48:34 +00:00
Andrea Martelloni
b63f77bb27 Revert "Censored MacOS files"
This reverts commit a21f06760f.
2025-11-12 10:25:30 +00:00
Andrea Martelloni
a21f06760f Censored MacOS files 2025-11-12 10:06:28 +00:00
chriskiefer
fca7b90f58 rc2 2025-11-06 17:59:31 +00:00
chriskiefer
abbe22029a NISPS rc1 2025-11-06 14:59:29 +00:00
chriskiefer
baa859617d midi output improvement 2025-11-05 16:49:06 +00:00
chriskiefer
fd516c30a0 cmsis and screen switching 2025-11-05 09:22:05 +00:00
chriskiefer
e03416c770 fixed loading and saving 2025-11-05 08:35:42 +00:00
chriskiefer
a085f4874b view order 2025-11-04 17:35:24 +00:00
chriskiefer
66ff5b756c voice space selectotr 2025-11-04 13:26:08 +00:00
chriskiefer
4e3145c385 version 2025-11-04 12:26:42 +00:00
chriskiefer
1adff3b18b -ve reward decay 2025-11-04 11:42:52 +00:00
chriskiefer
96cd070bc6 voice updates 2025-11-03 17:36:26 +00:00
chriskiefer
1408a238b5 activations 2025-10-30 20:35:28 +00:00
chriskiefer
3234a2f884 pre-switch to different RL 2025-10-28 12:16:20 +00:00
chriskiefer
4159e05f4c setvisible bubble 2025-10-20 15:16:30 +01:00
chriskiefer
a833a5843c xy view, graphs in rl stats 2025-10-20 14:18:21 +01:00
chriskiefer
6ad19d58c6 memlp 2025-10-15 21:22:54 +01:00
chriskiefer
9d41d1318b paf upgrades 2025-10-15 17:48:26 +01:00
chriskiefer
3315d7512f audioopts 2025-10-15 10:15:04 +01:00
chriskiefer
7457bf894a tidy up 2025-10-13 16:54:26 +01:00
chriskiefer
b682b63b62 set sys clock 2025-10-13 16:54:01 +01:00
chriskiefer
31ff23ee51 using latest memllib 2025-10-13 16:39:14 +01:00
chriskiefer
3c5c751935 general RL updates 2025-09-18 15:34:08 +01:00
chriskiefer
326790b32a RL change 2025-09-17 10:54:53 +01:00
chriskiefer
29b8eb4a05 tidy and help screen 2025-09-17 10:53:54 +01:00
Andrea Martelloni
afd542ee86 Fixed performance problem 2025-09-08 13:17:35 +01:00
Andrea Martelloni
c1ce9f1fc9 RL changes to integrate display 2025-09-08 12:21:31 +01:00