RULES FOR OUTGOING COMMANDS

pjbridger

2010-11-29 17:53:11

Hi Guys,

Just started using bomes and love it!

i am trying to create a rule which will state that for every 10 identical incoming midi commands only one keystroke is output.

as i am new to bomes this is kind of a struggle

can anyone help me?

thanks

PJ

Attigo

2010-12-04 20:25:35

Hi,

I just replied to your first post, but this is a little more specific...

To do this, you need to track how many times a message is received with a Global Variable and some clever rules...

Code: Select all

Translator 0: Counter
Incoming: MIDI 90 00 oo
Rules:
  if oo==127 then Goto "Counter"
  exit rules, skip Outgoing Action
  Label "Counter"
  ga=ga+1
  if ga>=10 then ga=0
  if ga!=0 then exit rules, skip Outgoing Action
Outgoing: Keystroke: T 

This counts the ON presses of an example Note, 90 00 7F. On the 10th press, the rules allow the Keystroke output and reset the variables, allowing the process to repeat.

I have tested it, and it works, so any problems, give me a shout...

Scott

pjbridger

2010-12-05 18:00:44

Hi Scott,

Thanks so much for the reply,

I have entered the rule but i am having problems,

the controller i am using is a constant CC stream from a controller (the OCZ NIA Brainwave reader)

so the command comes up like this

translator 1 - B0 14 24, - outgoing: T

translator 2 - B0 14 40, - outgoing: 2

i tried to ammend the code by changing the oo ammount to pp and 127 to 24,

its still not quite working

anything i can do

thanks again

PJ

Attigo

2010-12-05 18:37:42

24 is a HEX value, the rules only understand Decimal, so instead of 24, you should have 36...

See if that helps!!

Scott