Jump to content


Photo
- - - - -

Encoder #9


  • Please log in to reply
2 replies to this topic

#1 novski

novski

    MIDIbox Addict

  • Members
  • PipPip
  • 144 posts
  • Locationswitzerland

Posted 22 July 2012 - 20:32

HI
I have a problem with al encoders witch are over number 8. It seams that the speed_devider doesn't take affect.
I have 40 assigned Encoders on SR 5-14. For a testing purpose i made 2 encoders send the same over the same routine.

ENC_VPOT_SPEED_MODE 2
ENC_VPOT_SPEED_DIVIDER 2

Increasing one detent on #4 sends this:
[288601.981] [IN1 ] Chn 1 CC# 64 V: 65
[288602.030] [IN1 ] Chn 1 CC# 64 V: 67

Increasing one detent on #9 sends this:
[288543.475] [IN1 ] Chn 1 CC# 64 V: 65
[288543.518] [IN1 ] Chn 1 CC# 64 V: 65

does anybody have an idea what i'm doing wrong?

Edited by novski, 22 July 2012 - 20:33.


#2 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,426 posts
  • LocationGermany

Posted 22 July 2012 - 21:15

Does this posting belong to your MM firmware modifications?

If yes, it would really make sense if you would add your questions to a single thread, instead of starting new threads on each new question, because for somebody who doesn't follow your history, it's difficult to determine how to help you.
Not to forget how somebody should understand your question when he reads this posting in 2..3 years (it will be almost impossible to find the other postings)

So, if you mean the MM firmware modification: the ENC_*_SPEED_* definitions are used in mm_vpot.c, search for MM_VPOT_Init(), this function has to be extended.

Best Regards, Thorsten.
Posted Image Buy TK a Beer Disclaimer: buying TK a beer gets you absolutely nothing in return likesuchas firmware enhancements, technical advices and MIDIbox troubleshooting assistance.

#3 novski

novski

    MIDIbox Addict

  • Members
  • PipPip
  • 144 posts
  • Locationswitzerland

Posted 23 July 2012 - 06:11

True.
Im sorry for that.

It works now. Thanks Thorsten.

Midibox MotorMix v2, Core8

void MM_VPOT_Init(void)
{
  unsigned char i;

  // request update of all LEDring patterns
  display_type = 0x00;
  ledring_update_req = 0xff;

  for(i=0; i<41; ++i)
    MIOS_ENC_SpeedSet(i, ENC_VPOT_SPEED_MODE, ENC_VPOT_SPEED_DIVIDER);

  MIOS_ENC_SpeedSet(41, ENC_JOGWHEEL_SPEED_MODE, ENC_JOGWHEEL_SPEED_DIVIDER);

}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users