onst element = document.getElementById(id);
            if (!element) {
                console.warn(`Could not find element with id: ${id}`);
                return;
            }
            element.addEventListener('change', function() {
                updateTimeAndProgression();
                updateControls();
                if (id === 'root' || id === 'mode' || id === 'chordSequence') {
                    updateChordNames();
                }
            });
        });

        // Add input event