Div.innerHTML = "<h3>Chord Names:</h3><p>" + chordNames.join(" â†’ ") + "</p>";
        } catch (error) {
            chordNamesDiv.innerHTML = "<p style='color: red;'>Error parsing chord sequence: " + error.message + "</p>";
        }
    }

    // Add function to convert notes to Strudel pattern
    function notesToStrudelPattern(notes, lineType) {
        if (!notes || notes.length === 0) return '';
        
        // Get the pattern
        const pattern = document.getElementById(`${lineType.id}-p