fy updateControls to use the global state
    function updateControls() {
        updateMusicState();
        // Rest of updateControls remains the same
    }

    // Modify play() to use the new note property access
    function play() {
        if (!audioContext) initAudio();
        
        if (!instrumentsLoaded) {
            console.warn('Instruments not loaded yet');
            return;
        }
        
        ensureProjectData();  // Create projectData if needed
        
        const bpm = pars