ntById('chordLength').value);
        const root = parseInt(document.getElementById('root').value);
        const modeValue = parseInt(document.getElementById('mode').value);
        const chordSequence = document.getElementById('chordSequence').value;
        
        // Update project data
        ensureProjectData();
        projectData.root = root;
        projectData.mode = modeValue;
        projectData.chordSequence = chordSequence;
        projectData.bpm = bpm;
        projectData.chordDuration = b