MIDI keybord Button (CC) to SysEx with specific values

  • Q&A Forum
  • MIDI keybord Button (CC) to SysEx with specific values
0
0
Novation sl mk3 (CC)-> (SysEx) PLG150AN (Yamaha an1x)

I want to assign to button on my novation sl mk3 a sysex with specific values: 00, 01, 02, and 05.

press button once – 00, still press – 02 e.t.c

 

What I need  in rules ?

Attachments:
Marked as spam
Posted by (Q&A Forum: 1, Answers: 3)
April 13, 2019 1:54 pm
117 views
0
Private answer

Actually, that is much easier.
I added a new preset and use the global variable ge for the current value.

I disabled the old preset instead of deleting it (in case you ever need it later)

 

See attached.

Marked as spam
Posted by (Q&A Forum: 41, Answers: 3384)
April 14, 2019 8:00 pm

Actually you might want to change the value of ge in the translator to 5 instead of 0 if you want the first value to be zero when you press that button.

Once you change it in the rules, either hit ESC or restart the project to change it’s value.

( at April 14, 2019 8:03 pm)
0
Private answer

maybe this video will finally clarify my idea

 

https://yadi.sk/i/XU0R6ferrh455A

Marked as spam
Posted by (Q&A Forum: 1, Answers: 3)
April 14, 2019 7:45 pm
0
Private answer

THANK YOU

This is very useful script for my  future tasks. But…

I need everything easier.

original AN program when VCO1 button is pressed sends only 4 exact values {specific values: 00, 01, 02, 05 and then again 00}

accordingly, when i press the button on sl keybord first time to the PLG150AN board should go 00 value.

when i press the button on sl keybord second time to the PLG150AN board should go 01 value.

when i press the button on sl keybord third time to the PLG150AN board should go 02 value.

when i press the button on sl keybord fourth time to the PLG150AN board should go 05 value.

when i press the button on sl keybord fifth time to the PLG150AN board should go again 00 value.

Marked as spam
Posted by (Q&A Forum: 1, Answers: 3)
April 14, 2019 7:39 pm
0
Private answer

Hi,

Try this.

I also have CC59 as a decrement button.

This involves the use of a timer “SysEX”.

When you push and hold CC58 (value =127), it starts a continuous timer after setting either increment or decrement (global variable ga)

The timer adds (or subtracts) the ga from the current value of your target variable (global variable gc) and then outputs the Sysex with the new value of gc.

The timer fires continuously at the rate of global variable gd (currently set to 500ms or 1/2 second).  The timer gets killed when releasing the button thereby stopping the output.

I also set up a separate pair of translators for CC59 to decrement the output values of the Sysex.

 

We make sure in the timer never exceeds the value of 127 or is lower than 0.

We also set a timer running flag (gb) to 1 when we start the timer, to prevent from starting it again if it is already running. When we kill the timer, we set it back to gb back to 0.

Another thing that I usually do is to document and set all global variables in  the rules of a translator called “Init Global Variables”.  This translator is fired by timer Init which I set to fire when the project is opened or I hit my computer ESC key. Global variables are always guaranteed to be 0 when open a project but I set everything there anyway to document and keep track of what I’m using.

I also use the Init Timer to kill the SysEx Timer. This way I can ensure it is always killed when hitting the ESC key.

 

 

 

Marked as spam
Posted by (Q&A Forum: 41, Answers: 3384)
April 13, 2019 6:31 pm

Note the typo on my outgoing sysex message. You will need to fix that
F0 F3 should be F0 43

( at April 13, 2019 8:12 pm)

Was this helpful?

( at April 14, 2019 6:11 pm)
0
Private answer

first screen – PLG150 original program send a sysex to PLG board (screen 3) (on output tab)

on screen 2 – Novation sl button CC (on input tab)

Marked as spam
Posted by (Q&A Forum: 1, Answers: 3)
April 13, 2019 1:57 pm