Receive different kinds of clock signals, and convert, multiply or divide them.
In addition to the plugin hosts internal clock and a free running or synchronized timer source, both MIDI clock messages and MIDI note/CC messages can be used as both input and output.
Using MIDI note or CC messages as clock pulses comes closest to the clock and synchronization pulses used in some hardware synthesizers. With additional apps or hardware it is for example possible to use these pulses to create click tracks or clock pulses that can be used for Eurorack or other gear.
Credits first
This script was inspired by, and the code is based on “MIDI Clock Tool” from @wim-number37 on Patchstorage. Thank you Wim!
Features
• Use the hosts clock, a free running or synchronizable timer, MIDI clock, CC or note messages as clock source.
• Output MIDI clock, CC or note messages to other apps or hardware.
• MIDI channel and note or CC value can be freely configured.
• By default only Note ON and CC messages with value 127 are generated. But it is possible to send additional Note OFF and CC messages with value 0 after an adjustable delay.
• Convert between these different clock types.
• Change clock speed through either frequency division (more accurate) or synchronization (allows speed multiplication).
• Measure and display the BPM rate of these various inputs and outputs.
• Follow incoming MIDI start/stop messages, or trigger these messages manually.
• Trigger MIDI start/stop messages on the beat of the outgoing pulses.

Hello
I try to adapt your script to my needs . But too complex for my old brain.!!
I have 2 AUM IPad Pro synced to my BK7 arrangeur with AUdioBus.
I preselect Performance , Style and Tonality with a script . But now I need to send the right Tempo to BK7…The more I read the midi implementation Manuel of BK7, the less I understand!..I tried sysex…Only start/stop goes on.
I would appreciate some advices and howto ….
Thanks for your help.
Here A screen shot
I do not know what the BK7 is, but I am assuming you mean the Roland BK-7m. I do not own such a device, but this link explains how to set it up so that it can receive MIDI clock:
https://support.roland.com/hc/en-us/articles/201971469-BK-7M-Using-an-External-MIDI-Clock
Then you need to send MIDI clock from this script or any kind of clock source to the arranger to get it synced.