@ulrik Thanks. Putting the Message.sendToMidiOut inside both the functions did the trick. I think in the former version we had it in a sinegenerator chainelement. now i put it directly in a new project into the Mainelement Midiprocessor. Hope this makes sense.
Thanks for the info about ableton and reaper. Will be helpfull in the future! And generally thanks to both of you for helping out!
All the best