Problems with rules Midi Clock

Martin Knott

2018-10-25 22:45:48

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?

Martin Knott

2018-10-25 23:03:22

comment

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

Steve-Bome Forum Moderator

2018-10-26 06:50:51

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

 

Martin Knott

2018-10-26 09:54:25

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

Steve-Bome Forum Moderator

2018-10-26 14:33:44

comment

What do you want to happen if g0=23?

Steve-Bome Forum Moderator

2018-10-26 14:54:14

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:

tick-debug-2018-10-26.bmtp