memlnaut-nisps/manifold/src/modes/generated/breakor_schema.ts

596 lines
11 KiB
TypeScript
Raw Normal View History

// AUTOGENERATED — do not edit. Source: schemas/modes/breakor.json. Run `bun run codegen/generate.ts` to regenerate.
import type { ModeSchema } from './types';
export interface BreakorParams {
readonly kick_ratio0: number;
readonly kick_ratio1: number;
readonly kick_ratio2: number;
readonly kick_pmul: number;
readonly kick_poff: number;
readonly kick_amp0: number;
readonly kick_amp1: number;
readonly snare_ratio0: number;
readonly snare_ratio1: number;
readonly snare_ratio2: number;
readonly snare_pmul: number;
readonly snare_poff: number;
readonly snare_amp0: number;
readonly snare_amp1: number;
readonly tom_ratio0: number;
readonly tom_ratio1: number;
readonly tom_ratio2: number;
readonly tom_pmul: number;
readonly tom_poff: number;
readonly tom_amp0: number;
readonly tom_amp1: number;
readonly lowtom_ratio0: number;
readonly lowtom_ratio1: number;
readonly lowtom_ratio2: number;
readonly lowtom_pmul: number;
readonly lowtom_poff: number;
readonly lowtom_amp0: number;
readonly lowtom_amp1: number;
readonly rim_ratio0: number;
readonly rim_ratio1: number;
readonly rim_ratio2: number;
readonly rim_pmul: number;
readonly rim_poff: number;
readonly rim_amp0: number;
readonly rim_amp1: number;
readonly hat_ratio0: number;
readonly hat_ratio1: number;
readonly hat_ratio2: number;
readonly hat_pmul: number;
readonly hat_poff: number;
readonly hat_amp0: number;
readonly hat_amp1: number;
readonly ophat_ratio0: number;
readonly ophat_ratio1: number;
readonly ophat_ratio2: number;
readonly ophat_pmul: number;
readonly ophat_poff: number;
readonly ophat_amp0: number;
readonly ophat_amp1: number;
readonly perc_ratio0: number;
readonly perc_ratio1: number;
readonly perc_ratio2: number;
readonly perc_pmul: number;
readonly perc_poff: number;
readonly perc_amp0: number;
readonly perc_amp1: number;
}
export const BreakorSchema: ModeSchema = {
mode_id: 'breakor',
engine_id: 'breakor',
ml: {
input_channels: [
'joy_x',
'joy_y',
'joy_z',
'joy_w',
],
input_size: 4,
hidden_layers: [
10,
14,
18,
],
output_size: 56,
default_spread: 0.6,
},
params: [
{
name: 'kick_ratio0',
label: 'Kick Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_ratio1',
label: 'Kick Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_ratio2',
label: 'Kick Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_pmul',
label: 'Kick Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_poff',
label: 'Kick Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_amp0',
label: 'Kick Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'kick',
},
{
name: 'kick_amp1',
label: 'Kick Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'kick',
},
{
name: 'snare_ratio0',
label: 'Snare Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_ratio1',
label: 'Snare Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_ratio2',
label: 'Snare Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_pmul',
label: 'Snare Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_poff',
label: 'Snare Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_amp0',
label: 'Snare Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'snare',
},
{
name: 'snare_amp1',
label: 'Snare Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'snare',
},
{
name: 'tom_ratio0',
label: 'Tom Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_ratio1',
label: 'Tom Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_ratio2',
label: 'Tom Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_pmul',
label: 'Tom Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_poff',
label: 'Tom Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_amp0',
label: 'Tom Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'tom',
},
{
name: 'tom_amp1',
label: 'Tom Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'tom',
},
{
name: 'lowtom_ratio0',
label: 'LowTom Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_ratio1',
label: 'LowTom Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_ratio2',
label: 'LowTom Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_pmul',
label: 'LowTom Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_poff',
label: 'LowTom Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_amp0',
label: 'LowTom Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'lowtom',
},
{
name: 'lowtom_amp1',
label: 'LowTom Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'lowtom',
},
{
name: 'rim_ratio0',
label: 'Rim Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_ratio1',
label: 'Rim Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_ratio2',
label: 'Rim Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_pmul',
label: 'Rim Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_poff',
label: 'Rim Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_amp0',
label: 'Rim Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'rim',
},
{
name: 'rim_amp1',
label: 'Rim Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'rim',
},
{
name: 'hat_ratio0',
label: 'Hat Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_ratio1',
label: 'Hat Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_ratio2',
label: 'Hat Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_pmul',
label: 'Hat Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_poff',
label: 'Hat Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_amp0',
label: 'Hat Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'hat',
},
{
name: 'hat_amp1',
label: 'Hat Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'hat',
},
{
name: 'ophat_ratio0',
label: 'OpenHat Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_ratio1',
label: 'OpenHat Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_ratio2',
label: 'OpenHat Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_pmul',
label: 'OpenHat Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_poff',
label: 'OpenHat Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_amp0',
label: 'OpenHat Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'openhat',
},
{
name: 'ophat_amp1',
label: 'OpenHat Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'openhat',
},
{
name: 'perc_ratio0',
label: 'Perc Ratio 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_ratio1',
label: 'Perc Ratio 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_ratio2',
label: 'Perc Ratio 2',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_pmul',
label: 'Perc Phasor Mul',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_poff',
label: 'Perc Phase Off',
min: 0,
max: 1,
default: 0,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_amp0',
label: 'Perc Amp 0',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'perc',
},
{
name: 'perc_amp1',
label: 'Perc Amp 1',
min: 0,
max: 1,
default: 0.5,
curve: 'linear',
group: 'perc',
},
],
voice_spaces: [],
feat: curve truth, DriverConfig, real telemetry, engine benchmark Four items from one workflow, committed together because their build and CI wiring genuinely interleaves — nisps/CMakeLists.txt, run-all-tests.sh and ci.yml each carry hunks from two of them, and the stage renumbering (1/5 -> 1/6) touches every line. Splitting would produce commits that do not build, which is worse than a commit that does four things and says so. S26 part 2 — the curve declaration now matches reality. params[].curve stays the mode-wide DEFAULT; a voice_spaces entry may now be {name, curve_overrides} declaring only the slots where THAT voice space deviates. The 6 modes with one voice space are byte-identical. The values were derived MECHANICALLY by a new codegen/curve-audit.ts that models the four idioms a p[N]*p[N] regex misses (alias form, memlcelium's implicit-counter sq() lambda, loop-generated indices, smooth_params_), inlines helpers, and RAISES rather than guessing when it cannot reduce an expression. A drift gate cross-checks 1179 (voice space x param) slots against engine source on every run and was proved to fail loudly on three drift classes. Application stays in the engine: nisps/engines, nisps/pipeline and nisps/core are untouched, generated output is pure insertion (755 insertions, 0 deletions), and the rebuilt nisps.wasm was byte-identical. S4 / 7.2 — firmware reads the active mode's driver config at mode start, and mic/line is real. My brief assumed the engine owns this; the code disagreed and the code was right. sound_analysis_midi's EngineT is NoOpEngine — the mic lives on a separately-composed AnalysisEngine member — so engine-level wiring would have compiled, passed every gate, and left the one mic mode on line input. Hence a mode-level seam defaulting to engine().driver_config(). Separately, DriverConfig's defaults (line_level 0, output_volume 1.0) had drifted from memllib's actual 3/0.8 because nothing had ever read them; wiring them as-is would have made every silent mode louder and its line input maximally insensitive — a behaviour change disguised as plumbing. Now pinned by a test. Also: GetSysClockSpeed() panic()s on unsupported sample rates and runs on the first line of setup(), so sample_rate needed a fallback ahead of clock setup. CI's firmware env list gains soundanalysismidi — it is the only mic variant and nothing else compiles that path. Plan 5e — telemetry is real. A loss_history C-API entry across the full 5-layer chain lets the browser read the per-iteration loss the core already records. The audit named one fabrication site; there were two — wasm-iml.ts's synchronous train() published lossHistory: [loss] as well. A third, ctx.loss, was not merely dead but actively synthetic (fallbacks of prev * 0.82 and a literal 0.5, rendered by nothing) and is deleted. The firmware buffer stays untouched, per the L25 call. EngineApi.lossHistory() reads spine state rather than the MLP handle, because trainAsync() fits on the worker's mirror net and the handle would give a subtly-wrong second answer. Plan 5f — engine throughput is measurable. One source compiled twice (CMake natively, emcc for WASM) so the targets compare directly and no WASM export is added. Sequencers are driven into a working state, and every row prints its own working-state evidence so a number produced by an idle engine is visible rather than plausible. Reports, never asserts: a wall-clock threshold on shared hardware is meaningless or flaky, same call as the firmware size job. ALIGNMENT: the telemetry defect is deleted (built, not deferred); the performance defect is rewritten to what is actually left — these are HOST numbers, and nothing measures the RP2350 at 150 MHz, which is the target the mission's constraint is about. Q4 (memllib ownership) and Q5 (legacy feedback modes) are closed. Corrections to my own earlier claims, both found by agents contradicting the brief: manifold/ONBOARDING.md was NOT "now accurate" — its primitives list still named five deleted primitives and cited a seededGradient() that does not exist. And the parity harness misses the sequencer engines because it runs 128 frames while their sequencers evaluate every 400-500 samples, NOT because all-params-0.5 fails to trigger them (it does trigger: 0.5 maps to ratio 2, firing three times per bar). The fix is a longer window, not different params. Gates: run-all-tests.sh ALL GREEN — 4/4 ctest, parity PASS, lint clean, curve drift 1179 slots ok, 39 e2e (was 33). Firmware: 5 envs built including the mic variant.
2026-07-21 22:02:23 +02:00
curve_overrides: [],
ui: {
primary_input: 'xy_pad',
show_voice_space_selector: false,
show_synth_visualizer: false,
},
};