config;  // Store current configuration
        createAllLineControls(config);
        
        // Then set all the values
        document.getElementById('root').value = config.root;
        document.getElementById('mode').value = config.mode;
        document.getElementById('bpm').value = config.bpm;
        document.getElementById('chordLength').value = config.chordLength;

        document.getElementById('chordSequence').value = config.chordSequence;
        
        // Update displays
        updateDis