Metabolism: rule program, song-driven life, tribe VMs; M2.7 design (strains & allegiances, living wells)
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
Reference in New Issue
Block a user