Metabolism: rule program, song-driven life, tribe VMs; M2.7 design (strains & allegiances, living wells)

This commit is contained in:
Dejvino
2026-10-28 10:07:05 +01:00
parent 16f4b4a805
commit f939351689
28 changed files with 3199 additions and 601 deletions
+4 -4
View File
@@ -20,8 +20,8 @@ const BANK = resolve(HERE, '../..', 'flow-state/test/songs');
function grow(name, seed, seconds = 45) {
const wav = decodeWav(readFileSync(resolve(BANK, `${name}.wav`)));
const song = buildSong(analyse(mono(wav.channels), wav.sampleRate), seed);
const run = new Run(song, { fps: 30, seed, width: 240, height: 135 });
run.simulate();
const run = new Run(song, { fps: 30, seed, width: 240, height: 135, field: 48, genesis: 0 });
run.simulate(45);
return { world: run.world, song };
}
@@ -54,7 +54,7 @@ test('fingerprint distances: songs farther than seeds', () => {
});
function growSong(song, seed) {
const run = new Run(song, { fps: 30, seed, width: 240, height: 135 });
run.simulate();
const run = new Run(song, { fps: 30, seed, width: 240, height: 135, field: 48, genesis: 0 });
run.simulate(45);
return { world: run.world, song };
}