Here's what I came up (with a little help from ChatGPT) to reverse the functionality of the knobs when in Tempo Sync mode. It uses labels to output the values as text but I found that once I incorporated this with my Look and Feel I could hide the default values and just show the labels.
<script>
// Define a fallback for development mode
if (typeof window.DOMContentLoaded === 'undefined') {
window.DOMContentLoaded = function() {
console.log('DOMContentLoaded called (development fallback)');
};
}
document.addEventListener('DOMContentLoaded', function() {
// Call the function that will be defined in the HISE app
DOMContentLoaded();
});
</script>