Author Topic: midi control with relative message  (Read 555 times)

jluc

  • Newbie
  • *
  • Posts: 23
    • View Profile
midi control with relative message
« on: January 27, 2022, 02:15:23 PM »
hello mario

I gladly use a midi controller to remote the patch 34 parameters, for example.
It works perfectly but I would like to know if with infinite encoders it is possible to send a relative message (+1 to controller X instead of an absolute value) and that it is understood by gecho, in order to avoid jumps during manipulation. So far, I have not found the right message to send.
thank you
jluc

mario

  • Administrator
  • Full Member
  • *****
  • Posts: 194
    • View Profile
Re: midi control with relative message
« Reply #1 on: January 27, 2022, 03:46:39 PM »
Hi Jean-Luc,

For the infinite encoders the recognized format can be 3 or 6 bytes, if your controller sends 3 byte messages then you can use this for increment/decrement:

b0-xx-01 / b0-xx-7f

and in the case of 6-byte messages, it is:

b0-xx-40-b0-xx-3f / b0-xx-40-b0-xx-41

(xx = knob number).

I have two controllers with infinite encoders - Traktorino and Worlde Mini (which looks like a clone of Arturia Minilab, not sure if it sends the same messages). So Gecho was only tested with these two. I hope you can configure it to work well with your controller! 8)

Cheers,
Mario



jluc

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: midi control with relative message
« Reply #2 on: January 27, 2022, 06:23:55 PM »
Ok thank you for your answer.
I use a doepfer pocket dial controller, 16 endless rotary encoders, old but works quite well.
I had tried this type of message (B0-XX-01 & B0-XX-7F) but it does not work for me.
What I see in the terminal with the handy channel 3121 is ok but when I try to control the parameters in patch 34 for example, the values change to min or max depending on whether h01 or h7F is sent.
If I manipulate the buttons a little quickly, I manage to obtain intermediate values but it's very random and chaotic. Would there be a problem during the midi setup ?
it's not a big inconvenience, the control of the parameters already works well with absolute values and i can already do things by arranging with memories.
thanks again
jluc

mario

  • Administrator
  • Full Member
  • *****
  • Posts: 194
    • View Profile
Re: midi control with relative message
« Reply #3 on: January 27, 2022, 09:53:49 PM »
Ah sorry you're completely right, I haven't noticed that the encoder is not working properly in the 3-byte message mode because the controller which I used has 14 potentiometers and only one encoder so maybe I just never assigned a function to it where it was obvious that it only goes between min and max values.

So the logic needs to be expanded as currently Gecho cannot tell a difference between 3-byte message from potentiometer, which can also returns the same max and min value, and 3-byte message from encoder. But it is easy to make this work, we simply need to look at whether any other values are transmitted in between; if yes, it's a potentiometer and we will parse the values as absolute, and if not, it's an encoder and we will parse the messages as increments by 1.

For now you'd need to send 6-byte messages to make this work, but looks like your controller does not support it?

I'll make sure that this is fixed in the next fw update, thank you for reporting the problem!

jluc

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: midi control with relative message
« Reply #4 on: January 28, 2022, 07:26:47 AM »
OK, thanks. Indeed, my device does not know sent 6 bytes. It can send 3 or 9 but not 6! it's not a drama.
It's also that the type of message for the encoders has never really been integrated into the midi standard and everyone has its own trick.
have a good day
jluc
« Last Edit: January 28, 2022, 07:30:45 AM by jluc »