Config(pieces.simpleMajor);
        }, 0);
    });

    // Get values for a line type
    function getLineValues(lineId) {
        const values = {
            active: document.getElementById(`${lineId}-active`).checked,
            pattern: document.getElementById(`${lineId}-pattern`).value,
            volume: 0.8,  // Default volume
            octave: parseInt(document.getElementById(`${lineId}-octave`).value),
            gateLength: parseFloat(document.getElementById(`${lineId}-gateLength`).value)
   