Make switch button as toggle button

hi…
i need to assign a midi CC to a vst control that only had a bypass function (switch to OFF), in other forum they told it is possible to assign for switch ON function with same midi CC as long as it set min and max value to it. this the link btw : IK Multimedia • Foot controller takes 2 presses to toggle

how can i do it in MT? plz ur enlighment needed, thanks

The attached will take CC of any value in and toggle note 64 out for each CC received. It doesn’t matter the value of the incoming CC.

CC-Any-Value-In-Note-Toggle-Out.bmtp (1.0 KB)

I hope this is what you were looking for.

Steve Caldwell
Bome Customer Care


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

ok, thanks steve… ill try it tonight.
but is it set Midi CC as incoming? my controller only send midi sysex and PC btw…is it matter?? thanks

Just set you incoming message to match the SysEX and it should work fine.

Steve Caldwell
Bome Customer Care


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

ok… ill try it so… do my understandingbouy this correct steve? ithe point is i need to produce outgoing midi CC, same CC but has two value (0 and 127) for turn ON n OFF? Correct Me If Im Wrong (CMIIW) plz, thanks

hi steve… ill try modifying ur attachment, but it wont work. i set my incoming as sysex : F0 42 30 60 08 4E 00 F7
in rules i set the 13-14th digit(10) as var pp for outgoing 3-4th digi tCC value and15-16th (F7) digit as qq for 5-6th digit CC… but itd just wont wotk as i expected… this MIDI thing are driving me nuts… but seems i cant stop thinking bout it. lol

abd what is ga anyway?

Hi, can you show me a log of what SysEx messages are being sent upon

  • Pedal Press
  • Pedal Release

Steve Caldwell
Bome Customer Care


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

ok…sonehow i think i got it right now… thsnks for ur project above i can have min max for one CC by pressing same knob.
but nw heres another chalenge… i want this only execute when pp is>=10, but if pp<10, i just want the incoming nidi (PC n Sysex) be as outgoing als, no chsnge needed. Switch2toogle 4AT5.bmtp (1.1 KB)

sorry… hetrs the logs :

11: MIDI IN [Focusrite USB MIDI]: C0 14
12: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
13: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00
14: MIDI IN [Focusrite USB MIDI]: C0 14
15: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
16: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F
17: MIDI IN [Focusrite USB MIDI]: C0 14
18: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
19: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00
20: MIDI IN [Focusrite USB MIDI]: C0 14
21: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
22: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F
23: MIDI IN [Focusrite USB MIDI]: C0 14
24: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
25: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00
26: MIDI IN [Focusrite USB MIDI]: C0 14
27: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
28: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F
29: MIDI IN [Focusrite USB MIDI]: C0 14
30: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7
31: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00
32: MIDI IN [Focusrite USB MIDI]: C0 18
33: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
34: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F
35: MIDI IN [Focusrite USB MIDI]: C0 18
36: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
37: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00
38: MIDI IN [Focusrite USB MIDI]: C0 18
39: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
40: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F
41: MIDI IN [Focusrite USB MIDI]: C0 18
42: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
43: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00
44: MIDI IN [Focusrite USB MIDI]: C0 18
45: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
46: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F
47: MIDI IN [Focusrite USB MIDI]: C0 18
48: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7
49: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00
50: MIDI IN [Focusrite USB MIDI]: C0 1C
51: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
52: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
53: MIDI IN [Focusrite USB MIDI]: C0 1C
54: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
55: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00
56: MIDI IN [Focusrite USB MIDI]: C0 1C
57: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
58: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
59: MIDI IN [Focusrite USB MIDI]: C0 1C
60: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
61: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00
62: MIDI IN [Focusrite USB MIDI]: C0 1C
63: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
64: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
65: MIDI IN [Focusrite USB MIDI]: C0 1C
66: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
67: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00
68: MIDI IN [Focusrite USB MIDI]: C0 1C
69: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
70: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
71: MIDI IN [Focusrite USB MIDI]: C0 1C
72: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
73: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00
74: MIDI IN [Focusrite USB MIDI]: C0 1C
75: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
76: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
77: MIDI IN [Focusrite USB MIDI]: C0 1C
78: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
79: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00
80: MIDI IN [Focusrite USB MIDI]: C0 1C
81: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
82: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F
83: MIDI IN [Focusrite USB MIDI]: C0 1C
84: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7
85: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00

Here you go.

The first translator handles SysEX where incoming value is 0x14 (decimal 20) and toggles CC1
I use gb as the global variable to toggle.
The second translator toggles CC2 with the incoming value of 0x18 (decimal 24)
I use gc as the global variable to toggle.
The third one passes through anything else untouched. We make sure it is not 20 or 24 first.

SysEX to CC-Toggle.bmtp (1.4 KB)

Steve Caldwell
Bome Customer Care


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

That should do it.

dorry… just woke up. ill try it yonight steve, thanks

OK, let us know.

Steve Caldwell
Bome Customer Care


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

finally… after a few adjustment in third translator… once again on of my problem solved, thanks to u steve n of course this mighty MT
tho to b honnest i still cant get the pricipal knowledge of global variable since there were very less information bout it… such as whats fhe rule of gb==1? where it written? how? all i can just assumed that its for something had. done. :smiley

Hi the operators (== != etc) and rules are all in the manual, however if you don’t speak English it might be difficult for you.

You can also get to your manual by F1 or through the help menu of MT Pro.

I’m glad you got it working!

Steve Caldwell
Bome Customer Care


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

well ok, true itsnot my native language… but with all technolgy these day english shouldnt be major problem for me. all i knew from manual its just theres global n local parameter… but thr global one is less information then local one, such as what it stand for? whats affect for or related with?
anyway heres bad news nou this topic, i did manage producing CC from Sysex, but when i try to limit it whit rules its only affect if rr>16. its just keep producing CC even if rr=00, so i have to make adjustment on my vst (thats means have to limiting the scope of my vst) only for this script work.
FYI i just set one translator with this so if controller send sysex that not in threshold, i expect incoming==outgoing( nochange at all) .
i more prefer to set treshold with range/between operator tho, but i cant find it in manual how to do iy so i just use operator > or < .
in oyher case steve, i try to convert sysex from rotated knob but syill cant get scale right
Can u help me with this? thanks 4 ur enlighment

So your SysEX messages have a different value depending on knob or fader rotation?

Just take the value of the knob into a local variablefrom the SysEX like this.

Take this message
F0 42 30 6D 08 4E 00 1C F7

Lets say 1C is the variable from above. Change the incoming to:

F0 42 30 6D 08 4E 00 pp F7

Now you have the local variable pp to work with.

// Discard ranges you don’t care abount

if pp<0x01 then exit rules skip outgoing action
if pp>0x1c then exit rules skip outgoing action
// If you get here you know the variable is >=1 and <0x1c

// Then use the global variable in pp to determine what you want to do with it.

Steve Caldwell
Bome Customer Care


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

ok thanks… ill try iy tonight.
just to b confirmed:

1.this is the suggestion for scalling sysex rotated knob to CC:
F0 42 30 6D 08 4E 00 pp F7

Now you have the local variable pp to work with.

2.this is the suggestion for limitating sysex to CC toogle :
/ Discard ranges you don’t care about

am i right??? thanks again

Maybe but it might be that you only want one value so that when it crosses over that value the toggle happens.