I’d like to control a digital console mute channel with my computer keyboard.
The mute is midi controlable via a choosen cc. When the cc vlue = 127, the channel is muted, when the cc value is less than 127, it’s unmuted.
I already achived to do that with 2 different keystroke. But I’d like to use the same keystroke for muting and unmuting.
I had the idea to do something like that : if CC value = 127, output 126 … And if the CC value = 126, output 127.
But I would need to put the cc value in a variable ! And when using keystroke incoming, no variable appears ! And also, I would need to check the value of this particular cc on this particular midi output. So, I really don’t know how to do. HELP !
Thanks a lot !
Marked as spam
Sh…t ! When cubase is the active application, shortcut like W (A) doesn’t work ! Cubase don’t allow other application shortcut working unless there is the windows as part of the shortcut. And when using the windows key, it becomes a mess since all windows shortcuts use it !
Yep, Windows issue, you will need to find another shortcut key.
Hi, the below example shows toggling of the global variable ga.
If you look at the rules
This is the same as
if pp==1 then ga=0
if pp==0 then ga=1
Then we check the value of ga and if it is 0 we leave it alone and if it is 1 we change the local variable qq to 127
on output we send the local variable qq.
Marked as spam
Did this help?
Yeah ! Many thanks ! The xor logical gate… I’m not a computer programmer… But I work in automation of big industrial machines, so I get the concept. Excellent. Thanks again ! Just one question : how this command works : ga=ga^1, since the variable ga has not been assigned to anything, why does its value changes when I enter my keystroke ?
ga is a global variable. All global variables are guaranteed to be value of 0 at project start.
Thank you ! I already have the pdf manual openned ! And indeed, I used another global variable in the same way. I finnally achieved my goal : I first press on the windows key, then I’ve got one second before the start menu closes itself for typing my key stroke. It works pretty well :
Glad to have been of help! Could you mark this thread as resolved?
Please log in to post a topic
(this is your bome account, not the old forum account):.