n to get instrument name
    function getInstrumentName(lineId) {
        const instrumentNames = {
            'chords': 'Piano',
            'arpeggio': 'Harp',
            'bass': 'Bass',
            'top': 'Flute',
            'random': 'Tuba'
        };
        return instrumentNames[lineId] || lineId.charAt(0).toUpperCase() + lineId.slice(1);
    }

    // Add this function before createAllLineControls
    function createLineControls(lineType) {
        const section = document.createElement('div');
 