Problems with rules Midi Clock

Hi, I'm trying to pause a tick for Tap Tempo derived from Midi Clock every 4 beats, but I do something wrong in scripting:

 

// timing if g0<1 then Goto "1st Trigger" if g0<23 then Goto "Ignore" if g0>23 then Goto "Trigger" // 1st Label "1st Trigger" g0=g0+1 h0=h0+1 exit rules, execute Outgoing Action // ignore Label "Ignore" g0=g0+1 exit rules, skip Outgoing Action // Trigger Label "Trigger" if h0>7 then Goto "reset" if h0>4 then Goto "noclick" if h0<5 then Goto "click" exit rules, skip Outgoing Action // Trigger VARI Label "noclick" g0=1 h0=h0+1 exit rules, skip Outgoing Action // clicker Label "click" g0=1 h0=h0+1 exit rules, skip Outgoing Action // reset Label "reset" h0=0 exit rules, skip Outgoing Action

 

What is there going wrong, I can't find the mistake?

// timing
if g07 then Goto “reset”
if h0>4 then Goto “no”
if h0

Maybe I missed it but I don’t see where you ever set g0 back to 0. So you will never get more than one “1st Trigger”.

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

 

In the version above were different bugs, but g0 ist set to 1 under the label \"click\", because I needed the first impuls for a click too.
I’ll send the version which works for me now, but I’d like to solve it in the other version too…

This is, what i wanted to do:

g0=g0+1
if g0==1 then Goto “A”
if g0==24 then Goto “A”
if g0==48 then Goto “A”
if g0==72 then Goto “A”
if g0==192 then Goto “B”
exit rules, skip Outgoing Action

Label “A”
exit rules, execute Outgoing Action

Label “B”
g0=0
exit rules, skip

What do you want to happen if g0=23?

OK, try this file. The translator “Debug Me” is yours.

 

I fixed two lines. Both have comments above the fixed line with what it was and *** in the line.

// was >23 *****
if g0>=23 then Goto “Trigger”

// clicker
Label “click”
g0=1
h0=h0+1
// was skip outgoing action ***
exit rules, execute Outgoing Action

I used a timer to simulate the MIDI clock. A simple note on message with velocity set to h0 to see the ticks.

 


Attachments:
1540558396485_tick-debug-2018-10-26.bmtp

Hi, I’m trying to pause a tick for Tap Tempo derived from Midi Clock every 4 beats, but I do something wrong in scripting: clicker counter timing if g01 then Goto 1st … Many problems encountered when using PCs to record music are caused by MIDI or audio data not being delivered on time, or by its flow being interrupted.

Hi and welcome to the Bome community!

I’m not sure exactly what you are trying to do but every 1/4 note would be 24 clicks so if you have 4/4 timing and you don’t want to pause it would be 4*24 or 96 ticks. if you want to drop a single click tick you should suppress output of the tick for every count of 96. If you want to pause a full quarter note beat for every measure then you should suppress clock ticks every 72 ticks for 24 ticks.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz