document.getElementById('chordNames');
        
        try {
            const progression = new ChordProgression(
                parseInt(document.getElementById('root').value),
                document.getElementById('mode').value == "0" ? Mode.getMajorMode() : Mode.getMinorMode(),
                chordSequence
            );
            
            // Use the ChordProgression's getChordNames method directly
            const chordNames = progression.getChordNames();
            
            chordNames