If I understand correctly, you are using Bela to read values from Trill and send MIDI to the host, where the sound generation actually happens, is that correct?
In this case, you need the program running on the host to receive the pitch bend range RPN and to be able to understand it. I have no knowledge or understanding of what you are using on the host. Something that seems worth checking here is that if the host misses the messages that come in 5 seconds after the patch starts (which is expected, as the host will take some time to open and start reading from the midi device after the Bela has booted), it will be as if you didn't see them. Try replacing [delay 5000] with a [metro 1000] , so that these controls are sent to the host once every second. That should take care of it.
Also, you should not rely on the ctlout messages going out in any specific order: ordering in Pd has to be done explicitly via a trigger message, e.g.:
