ls();
    }

    // Example piece configurations
    const pieces = {
        simpleMajor: {
            root: 60,
            mode: 0,
            bpm: 120,
            chordLength: 8,
            noteProportion: 0.8,
            chordSequence: "1,4,5,1",
            lines: {
                chords: { 
                    active: true, 
                    pattern: "1/4 c 4",
                    octave: 0,
                    gateLength: 0.8,
                    defaultK: 1,
                    defaultN: 4