= ''; // Clear existing controls
        
        Object.entries(config.lines).forEach(([lineId, settings]) => {
            const lineType = {
                id: lineId,
                name: getInstrumentName(lineId),  // Get instrument name instead of just capitalizing
                ...settings  // This spreads all settings including gateLength
            };
            const controls = createLineControls(lineType);
            container.appendChild(controls);
        });
    }

    // Helper functio