Triggering, the same midi type... multiple times in series

hi…
i am using a DJ program which uses button presses, to change the divisions in beatjumping… it uses the 127 number to trigger between the divisions..
im wanting a way of triggering the button once… but carry out x5 button midi presses in series, it would also be useful if i could use any midi type in a chained sequence with added timings etc… for use in Djay scenario’s
any help in making a translator for this… i would be very grateful
thanks in advance

HI,

The attached project should get you started.

Translator 1.0 handles the incoming trigger and uses ‘Perform’ in the rules to handle mouse clicks with delays. Here are the rules:

// First paramter is button number
// Second paramter is outgoing delay
// if already running
if ga==1 then exit rules, skip Outgoing Action

Perform "Button",0,0
Perform "Button",1,50
Perform "Button",2,100
Perform "Button",3,150
Perform "Button",4,200

Perform calls translators 1.1 and the rules there tell the mouse coordinates to move to and click and the desired delay.

// First parameter is button number
// Second paramteter is delay (in ms)
// debug if not zero
zz=0
if zz!=0 then pp=pp*100
if oo>4 then Log "Invalid button %oo%"
if oo>4 then exit rules, skip Outgoing Action
if oo<0 then exit rules, skip Outgoing Action
// button 0 screen coordinates
if oo!=0 then skip next 2 rules
qq=100
rr=100
// button 1
if oo!=1 then skip next 2 rules
qq=200
rr=100
// button 2
if oo!=2 then skip next 2 rules
qq=300
rr=100
// button 3
if oo!=3 then skip next 2 rules
qq=400
rr=100
// button 4
if oo!=4 then skip next 2 rules
qq=500
rr=100
// set no longer running
if oo==5 then ga=0

//debug if not zero (no outgoing action)
if zz!=0 then Log "Log mouse click at x=%qq% y=%rr% with delay of %pp%"
if zz!=0 then exit rules, skip Outgoing Action

Here is the outgoing action of translator 1.1

And the project file.

Trigger-Multiple.bmtp (2.7 KB)

This tutorial shows the use of perform in rules.

Steve Caldwell
Bome Customer Care


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

wow thank you steve i’ll give that a test!!

hi Steve… thats works great!!
thanks for your invaluable help!!

1 Like

Glad to help!