type = 'text';
        patternInput.id = `${lineType.id}-pattern`;
        patternInput.className = 'pattern-input';
        
        // Set default pattern based on line type
        let defaultPattern = '';
        switch(lineType.id) {
            case 'chords':
                defaultPattern = `${lineType.defaultK}/${lineType.defaultN} c 4`;
                break;
            case 'arpeggio':
                defaultPattern = `${lineType.defaultK}/${lineType.defaultN} > 4`;
                break;
       