The following should be what you are looking for.
Assign the aliases "My Controller" to your incoming and "My Destination" to your outgoing respectively.
I did this with one translator using raw midi input and output. I often do this to reduce the number of translators required.
The MIDI CH will only increment on note-on. The note-off will follow the same channel as the last note-on so the way it is currently designed is for one note playing at a time.
Here are the rules with comments:
// look for note on or note off. I and with )xE0 and if not 128 it is not a note
// It is not a note message
if rr!=128 then exit rules, skip Outgoing Action
// abort if not coming in on MIDI ch 1 - Mask only looking at the MIDI CH part
if rr!=0 then exit rules, skip Outgoing Action
// if note-on, then increment channel counter mask Channel 144 (0x90) is note-on
if rr!=144 then skip next 2 rules
// rotate back to MIDI CH 1 when on MIDI CH6 (remember MIDI ch is 0 based)
if gt>5 then gt=0
// re-assemble status byte for output with new
// MIDI channel Status byte OR'd with MIDI CH