 function ensureProjectData() {
        if (!projectData) {
            projectData = new GoldenData();
            // Initialize with current DOM values
            projectData.root = parseInt(document.getElementById('root').value);
            projectData.mode = parseInt(document.getElementById('mode').value);
            projectData.chordSequence = document.getElementById('chordSequence').value;
            projectData.bpm = parseInt(document.getElementById('bpm').value);
            projectData.chordDur