Some checks failed
check / check (push) Has been cancelled
First commit of the repo. Contents beyond the v0.1 simulator and layout: - Full Pico 2 W firmware (firmware/app, drivers, engine port, host test). - BANK page and 404 mode A/B removed; learned pads play exactly what was learned. - 404/MiniFreak renamed to KIT/SYNTH throughout (jacks, code, sim, docs, layout labels; wiring rebuilt). - ROLL returns to page select after a re-roll; a freshly learned track turns on. - LCD contrast 66. - ROOT and SCALE pages: 21 scales, AUTO = the seed picks; global and sticky. Intended music change: the scale table grew from 8 to 21 and AUTO picks from all of them, so every seed's scale changed. Vectors regenerated with npm run vectors, plus new key-override cases. Flash record is now version 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
638 B
C
16 lines
638 B
C
/* Settings in the last flash sector: slots, learned pads, BPM, generator, root, scale, synth channel and octave,
|
|
plus the current seed and track on/off (as app.js keeps them). Erasing a sector stalls both cores for tens of
|
|
milliseconds, so main.c only saves while stopped. */
|
|
#ifndef SEEDBOX_STORAGE_H
|
|
#define SEEDBOX_STORAGE_H
|
|
|
|
#include "app.h"
|
|
|
|
typedef struct { uint8_t used, gen; uint32_t seed; uint32_t salts[2]; } slot_t;
|
|
|
|
void storage_defaults(live_t *L, slot_t *slots);
|
|
int storage_load(live_t *L, slot_t *slots); /* 1 if a valid record was found */
|
|
int storage_save(const live_t *L, const slot_t *slots);
|
|
|
|
#endif
|