Toggle led on a roland f 100 mkii foot controller

Yes, this has been quite an experience and I’m sure other users in the future will benefit from reading through the progression. I’m glad it is finally working for you!

Steve Caldwell
Bome Customer Care


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

HI a steve ! As i am trying to understand and calculating a rule result, I have come to a detail that I am unable to follow relatively to the global variable Ga…if we look at the equation calculation below (ga=ga^tt) = 39 we have to assume that ga=7…But I don’t see where this value is transferred to Ga… it does not appear anywhere in the rules … Could you explain this detail to me where it comes from, what am i missing…

1: RULE 0.6:7 expression: (pp=pp-14) = 4
2: RULE 0.6:14 expression: (tt=2<<pp) = 32
3: RULE 0.6:15 expression: (ga=ga^tt) = 39
4: RULE 0.6:19 condition satisfied: if pp>3 then rr=37
5: RULE 0.6:19 assignment: (if pp>3 then rr=37) = 37
6: RULE 0.6:21 assignment: (tt=pp) = 4
7: RULE 0.6:28 condition satisfied: if rr==37 then tt=tt<<4
8: RULE 0.6:28 expression: (if rr==37 then tt=tt<<4) = 64
9: RULE 0.6:37 condition satisfied: if rr==37 then qq=ga>>5
10: RULE 0.6:37 expression: (if rr==37 then qq=ga>>5) = 1
11: RULE 0.6:40 assignment: (ss=rr) = 37
12: RULE 0.6:42 expression: (ss=ss+qq) = 38
13: RULE 0.6:44 expression: (ss=ss%128) = 38
14: RULE 0.6:46 expression: (ss=128-ss) = 90
1: MIDI IN [iRig PRO I/O MIDI IN]: F0 41 00 29 12 12 00 6E F7 (pedal 5) PP=4
2: MIDI OUT [iRig PRO I/O MIDI OUT]: F0 41 00 29 12 25 01 5A F7 (PUT THE LED OF PEDAL 5 ON)

Thanks a lot !!! Regards !

Is this rules that I wrote or did you modify them. Rule 0.6.14 does not look right. Typically it would be something like

tt=1<pp 

for setting a bit position.

If you point me to the original translators and rules I provided, I can explain them in more detail. Most of these rules are also covered in my post on bit mapping.

You will really need to be able to understand those concepts in order to create rules for you needs.

It might be helpful to understand binary numbers and how they work, which are also discussed in the referenced post.

Steve Caldwell
Bome Customer Care


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

Steve Caldwell
Bome Customer Care


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

hi Steve, Thanks for your help… here is the code that you had originally written to me…(FC100-Sysex-Pedal-2022-09-22) Unfortunately it did not work correctly… By activating the pedals 5,6,7,8 the state of activation of the leds was shifted…Pedal 5 activated led 6 , pedal 6 activated led 7 etc… pressing pedal 5 sends control code 5, pedal 6 cc#6, pedal 7 cc# 7 and pedal 8 send nothing…I managed to make it work by modifying (in Modifications) some values… now it works… Thanks to help me understanding this new world for me…have a nice day !!

modifications.bmtp (2.9 KB)

FC100-Sysex-Pedal-2022-09-22.bmtp (2.9 KB)

Great, I’m glad you were able to figure it out!

Steve Caldwell
Bome Customer Care


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