Send a MIDI message without user interaction (using a custom module)

You said here that: the usual way to trigger something in the custom module with a widget is
to send an osc message, and catch it in the custom module's oscOutFilter function.

In the documentation (screenshot)


oscInFilter in my custom module looks like this:


    oscInFilter: function(data) {

        if (data.host === 'midi' && data.port === 'SKiano-C') {
            
            var [channel, control, value] = data.args.map(x=>x.value)
            
            if (control > 63 && control < 74) {
                
                var digit = 73 - control,
                    msb = value >> 4,
                    val = value & 0xF
                
                if (msb >> 2) val += '.'
                if (!(msb & (1 << 1))) val = ''

                // digit -> digit
                // val -> digit's value 
                
                // assuming 10 text widgets with incrementing preArgs 
                receive('/timecode', digit, val)

                return
                
            }
            
        }


        return data
        
    }
    
}


Maybe I need to understand how this code works with the 10 text widgets.
I'll be back when I figure it out.