mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
Comment-only (the built image is byte-identical). 112 files written new for JIANT FM (GEN gen.c / gen_tables.c / gen_track.c / song_dice.c, fugue.c, sing_ext.c, ui_euclid.c, ui_scene.c, the STEMS and probe Android apps, the video tools, JIANT's tests and tools, web/emu/stems.js) carried "SPDX-License-Identifier: GPL-3.0-only" and no copyright line: they now say "Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant)". Checked against Felucca's fork base like the previous commit; tests/fm6_env_compare.c (msfa envelope as ported in fm6_core.c) and web/emu/gen_bench.mjs (lines of the emulator's test) are left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
22 lines
1.2 KiB
C
22 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-3.0-only */
|
|
/* Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */
|
|
static int split_storage_test(void)
|
|
{
|
|
int bad=0; uint32_t sig;
|
|
const uint8_t conf[8]={1,13,0,1,255,1,9,60};
|
|
reset();memset(split_cfg,0,sizeof split_cfg);
|
|
memcpy(split_cfg,conf,sizeof conf);
|
|
bad += check("SPLIT: write actual NOR flash", !project_save(0));
|
|
memset(split_cfg,0,sizeof split_cfg); project_load(0);transport_req=0;
|
|
bad += check("SPLIT: project restores both keyboards and octaves", !memcmp(split_cfg,conf,sizeof conf));
|
|
sig=autosave_sig();split_cfg[0]=0;
|
|
bad += check("SPLIT: edits change autosave signature",sig!=autosave_sig());
|
|
memset(split_cfg,0,sizeof split_cfg);project_capture(&proj_scratch);
|
|
bad += check("SPLIT: legacy payload without KS decodes OFF",proj_pack(&proj_wire,&proj_scratch) && proj_import(&proj_scratch,&proj_wire,sizeof proj_wire) && !proj_scratch.split[0]);
|
|
memcpy(split_cfg,conf,sizeof conf);project_capture(&proj_scratch);
|
|
proj_scratch.split[2]=NTRK;
|
|
bad += check("SPLIT: invalid destinations refuse serialization", !proj_pack(&proj_wire,&proj_scratch));
|
|
memset(split_cfg,0,sizeof split_cfg);
|
|
return bad;
|
|
}
|