mwg API
    Preparing search index...

    Interface MusicScene

    everything the composer needs, as plain data a save or a share link can hold

    interface MusicScene {
        bars: number;
        id: string;
        key: number;
        mood: MusicMood;
        seed: number;
        tempo?: number;
        tension: number;
        voices: number;
    }
    Index
    bars: number

    length in 4/4 bars, 2 to 64

    id: string

    names the scene; it is mixed into the seed so two scenes with one seed still differ

    key: number

    tonic as a pitch class, 0 (C) to 11 (B)

    mood: MusicMood
    seed: number
    tempo?: number

    beats per minute; derived from mood and tension when omitted

    tension: number

    0 (relaxed) to 1 (urgent): faster, denser, more repeated low notes

    voices: number

    most notes sounding at once, 1 to 8: 3 writes for a 3-voice SID or YM chip