Reversed Vpots

Guido

2012-05-07 18:31:46

Hi,

I have the project on it s last journey. I have vpots that send this..

3) V-Pots

V-Pots send its data using delta valus.

Format: b0 4p vv

where p is the V-Pot number and vv is the delta value.
p can be anything from 0 to c. This is just a linear mapping of the
V-Pots from left to right. That means, when p equals c then the 'scroll'-
V-Pot has been operated.

vv denotes the delta value.
If vv>40 then delta=vv-40.
If vv<40 then delta=-vv.
vv never seems to equal 40.

I was able to obtain deltas as high as 2d (by turning the knobs real
fast).

I am sending this..

Translator 0.106: Ch 1 Vpot
Options: stop=false
Incoming: MIDI B0 40 mm
Outgoing: MIDI B0 10 mm

The leds want to see this...

B0 3x vv : pan display, x=0..7, vv=1..17 (hex) or so

I am doing this..

Translator 1.88: Ch 1Vpot Leds
Options: stop=false
Incoming: MIDI B0 30 pp
Outgoing: MIDI B0 10 pp


-------------------------------------

I works now but reversed.. i tried this, from reading the bomes forum...

ranslator 0: Invert CC
Options: stop=false
Incoming: MIDI B0 30 pp
Rules:
oo=127-pp
Outgoing: MIDI B0 10 oo

or some combo thereof and ..no joy, Any help appreciated. I want to get this done so i can post the project here.

Guido

DvlsAdvct

2012-05-07 21:43:52

If you want to reverse the MIDI message the rules have to be

Code: Select all

ranslator 0: Invert CC
Options: stop=false
Incoming: MIDI B0 30 pp
Rules:
pp=pp*-1
pp=pp+127
Outgoing: MIDI B0 10 pp
Make sense?

Guido

2012-05-07 22:50:31

Hi,
Thx DA for your response. I tried that rule and it went the correct direction, but now the values go by too fast. I mean as i trn the pot a little the pan knob in my daw goes too wuickly to max.

It almost makes sense to me but..not completly yet.
I dont understand what they mean by "delta" values....

Format: b0 4p vv

where p is the V-Pot number and vv is the delta value.
p can be anything from 0 to c. This is just a linear mapping of the
V-Pots from left to right. That means, when p equals c then the 'scroll'-
V-Pot has been operated

vv denotes the delta value.
If vv>40 then delta=vv-40.
If vv<40 then delta=-vv.
vv never seems to equal 40.

That is what im sending from.

Guido
Ps I now have about 200 translators in each preset..am I hitting any kind of functional limit?

Guido

DvlsAdvct

2012-05-07 23:01:35

when you turn the knob, what signal gets sent? Like, when you hit Capture or Listen in the translator what gets sent?
I'm guessing that the delta value is simply the velocity, or what would otherwise be referenced as pp. They are just using vv as the local variable. Mind you, that's a guess.

It's probably referencing 40 as the hex code for the decimal 64, meaning 40 is the middle of the knob. So if you turn the knob up it probably equals something greater than 64 in decimal, whereas if you turn it down it's lower than 64, correct?

Guido

2012-05-08 01:28:41

Hi DA,
i didnt realize i had u here. thanks.

Here is a dump of me turning the Vpot 1 knob....



Turned Vpot 1 Clockwise slow to fast

00043311 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043328 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043329 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043329 17 -- B0 40 41 1 --- CC: Pedal (Sus
0004332A 17 -- B0 40 42 1 --- CC: Pedal (Sus
00043340 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043341 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043341 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043342 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043343 17 -- B0 40 42 1 --- CC: Pedal (Sus
00043343 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043358 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043359 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043359 17 -- B0 40 41 1 --- CC: Pedal (Sus
0004335A 17 -- B0 40 42 1 --- CC: Pedal (Sus
0004335B 17 -- B0 40 43 1 --- CC: Pedal (Sus
00043370 17 -- B0 40 44 1 --- CC: Pedal (Sus
00043371 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043372 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043372 17 -- B0 40 42 1 --- CC: Pedal (Sus
00043373 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043374 17 -- B0 40 42 1 --- CC: Pedal (Sus
00043374 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043388 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043389 17 -- B0 40 41 1 --- CC: Pedal (Sus
00043389 17 -- B0 40 41 1 --- CC: Pedal (Sus
0004338A 17 -- B0 40 41 1 --- CC: Pedal (Sus
0004338B 17 -- B0 40 42 1 --- CC: Pedal (Sus
0004338B 17 -- B0 40 41 1 --- CC: Pedal (Sus
000433A0 17 -- B0 40 41 1 --- CC: Pedal (Sus
000433A1 17 -- B0 40 43 1 --- CC: Pedal (Sus
000433A1 17 -- B0 40 01 1 --- CC: Pedal (Sus
000433A2 17 -- B0 40 41 1 --- CC: Pedal (Sus
000433A3 17 -- B0 40 43 1 --- CC: Pedal (Sus
000433B8 17 -- B0 40 41 1 --- CC: Pedal (Sus
000433B9 17 -- B0 40 41 1 --- CC: Pedal (Sus
000433B9 17 -- B0 40 41 1 --- CC: Pedal (Sus


Turned Vpot 1 CClckwise slow to fast


00023D3A 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D3B 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D3C 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D3C 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D3D 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D3E 17 -- B0 40 02 1 --- CC: Pedal (Sus
00023D3E 17 -- B0 40 02 1 --- CC: Pedal (Sus
00023D52 17 -- B0 40 02 1 --- CC: Pedal (Sus
00023D53 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D54 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D54 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D55 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D56 17 -- B0 40 06 1 --- CC: Pedal (Sus
00023D6A 17 -- B0 40 04 1 --- CC: Pedal (Sus
00023D6B 17 -- B0 40 04 1 --- CC: Pedal (Sus
00023D6C 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D6C 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D6D 17 -- B0 40 02 1 --- CC: Pedal (Sus
00023D6E 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D6E 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D82 17 -- B0 40 03 1 --- CC: Pedal (Sus
00023D83 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D83 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D9B 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023D9C 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023DB3 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023DB4 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023DCB 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023DCC 17 -- B0 40 01 1 --- CC: Pedal (Sus
00023DCC 17 -- B0 40 02 1 --- CC: Pedal (Sus
00023DE3 17 -- B0 40 01 1 --- CC: Pedal (Sus


Looks to me like one way its vv=1..to maybe 6? And the other is 41 to 47 or so?

EDIT then it must have somethin to do with what the mcu receives /sends? ....
---------------------------------------------------------------------
The leds want to see this...

B0 3x vv : pan display, x=0..7, vv=1..17 (hex) or so
x= Vpot #
-------------------------------------------------------------------o

Thx DA ..sorry i may have missed u.
Guido

DvlsAdvct

2012-05-08 02:09:48

It's no worries. :)

So what it's doing is sending just above 40 (in hex) up and just about 0 down.

What you can go is set a rule for each direction, so it would look something like this

Code: Select all

Translator 1: Reverse Pot
Incoming Message: B0 40 pp
Rules:
If pp>64 then Goto "Up"
If pp<64 then Goto "Down"
Label "Up"
pp=pp-64
Exit Rules, execute outgoing action
Label "Down"
pp=pp+64
Exit rules, execute outgoing action
The advantage in how they did it is you can easily reverse these signals and make the messages work exactly the same.

Let me know if that works before we worry about the outputs.

Guido

2012-05-08 17:14:57

Howdy,

Oh man when i read ur response a light went off about these rules..im starting to get it..i told u i was dense.

IT WORKS U WONDERFUL PPL U!!!

Im speechless..i have to work for about 4 hrs and then I will be back..omg ...Thank you!!!!!!! If either u or Florian ever get to Hollywood fla...pls look me up ..u have my email.. and dinners on me! I live close to the Seminole Hard Rock Casino..

Guido

EDIT It works both ways! I dont know why but the feed back from the MCU moves the leds on the vpot perfectly! Now i go to real life work..thanks again for ur support and an amazing program! BB

Hey it even know s im a "power user"..what a compliment. And sry for long post..the info i read about the work with the "magic flute" for disabled ppl..facinating!

DvlsAdvct

2012-05-08 18:57:11

Great to hear, man. :) Keep us up to date. If you get any working templates please don't hesitate to share them with the community.

Guido

2012-05-09 06:54:03

Hi,
Oh you will hear from me!^^ The sysex disply..but i figure id give u guys a day off^^

Below is what i have working so far..thx again

Guido
Attachments
D8b-Hui-MCUConvertorV1.bmtp
(43.84 KiB) Downloaded 428 times