n => {
            button.disabled = show;
        });
        if (show) {
            document.querySelector('.button-group').insertAdjacentHTML('beforeend', 
                '<span id="loading-text"> Loading sounds...</span>');
        } else {
            document.getElementById('loading-text')?.remove();
        }
    }

    // Function to create all line controls
    function createAllLineControls(config) {
        const container = document.getElementById('line-controls');
        container.innerHTML 