hi Sub3OneDay,
i have put the OSC Listener in a text widget and the reciever in your fuction but it didnt work, also put the reciever in the oscInFilter but also didnt work. i have put my last try in the code.
Can you help me were i must put the reciever?
module.exports = {
oscInFilter:function(data){
var { address, args, host, port } = data
////----------------------------------------------------------------------------------------------------///////////////
// MCU test area here //
////----------------------------------------------------------------------------------------------------///////////////
if (host === 'midi' && port === 'MCU_To_OSC' && address === '/sysex') {
//Check incoming sysex data and use if it contains the lcd text
if (args[0].value.includes("f0 00 00 66 14 12")) { // sysex header for mackie lcd text
let sysExVal = args[0].value
//Use the function getTrackName to do all the cool stuff to get the fullTrackName
let fullTrackName = getTrackName(sysExVal)
//Strip out the trackMapTag from the full name
//limitatation - track tag has to be in the last 6 characters of the name
//To avoid complications also strip off the square brackets
trackMapTag = (fullTrackName.substring(fullTrackName.length - 6));
trackMapTag = trackMapTag.replace('#', '')
if (fullTrackName) {
receive('/EDIT', 'text_1', {value: fullTrackName})}
}
}