Hi, something like the attached should work.
Notes are started by the Song Start MIDI command. We set the clock count to 0 with global variable ga, and the run state to 1 with global variable gb.
We count the timing clock and send a note-on every 24th occurrence (timing clock is sent at 24 per quarter note).
With the same logic we send same note-off with a 50msec delay
In both cases we only send the note messages if we are in the run state (gb==0)
We wait for a Song Stop MIDI message to set the run state to 0. If additional clocks are sent after that, we no longer send MIDI note messages.
The second preset, I just used for testing. It has a timer with up arrow starting and down arrow stopping the timer and the timer just sends clock signals (in this cases to my Mac IAC port) which I monitor for input of Midi Clock messages.
For you, you should set the aliases as follows (when prompted)
Timing Clock Source – Set this to the port you are monitoring for timing clock input.
Metronome Output – Set this to your pl2
Note that for the test case preset, you cannot use a Bome Virtual Port for both input and output as Bome Virtual Ports are one way only. One side of the connection needs to be a non-MT Pro application. This is why I used my IAC Port for this test (sending and receiving MIDI clock in the MT Pro application). On Windows, this would work with loopMIDI, loopBE, or MIDI Yoke.
You can change the note number and the timing of the note-off messages in the note messages if you wish.
Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz