Const
Bump when the composer's output for a given scene changes, so a save can tell its music is no longer reproducible.
import { MUSIC_GENERATOR_VERSION } from '@datamoc/mwg/music';const saved = { scene: { id: 'harbour', seed: 7 }, generator: MUSIC_GENERATOR_VERSION };console.log(saved.generator === MUSIC_GENERATOR_VERSION); // true while the same music comes out Copy
import { MUSIC_GENERATOR_VERSION } from '@datamoc/mwg/music';const saved = { scene: { id: 'harbour', seed: 7 }, generator: MUSIC_GENERATOR_VERSION };console.log(saved.generator === MUSIC_GENERATOR_VERSION); // true while the same music comes out
Bump when the composer's output for a given scene changes, so a save can tell its music is no longer reproducible.