tnx for reply:) Do i eliminate rotary encoder if i chose to use joystick? …
Well, not really. You can use the joystick as an additional controller for whatever parameter(s) you want, but you still need the Encoder for the Control-Surface (if you have one).
I’m not a programmer(!!!) so it’s better if you get info about the stuff yourself, but I 'll tell you what I did (it should be reproducable though, with no guarantee):
This is for using two pots on the J5 of the core-module with MBSID v1.7.
take the main.asm file in the MBSID 1.7 source directory and add the following code
;; initialize ain
   movlw   2         ; use 2 pots
   call   MIOS_AIN_NumberSet
   call   MIOS_AIN_UnMuxed   ; don't service multiplexer interface
   movlw   7
   call   MIOS_AIN_DeadbandSet
to initialize the unmultiplexed AIN on J5. It’ s actually alomost there because the 6th LFO uses the AIN, so search for “#define ENABLE_AIN_LFO_WAVEFORM 1” and set it to 0, else you’ll initialize the AIN twice. Then search for “USER_AIN_NotifyChange” at the end of the file and insert the code to send the pot-values to CCs whenever the pot-values change. Like that:
USER_AIN_NotifyChange
   ;; get 7-bit value of pot #00
   movlw   0x00
   call   MIOS_AIN_Pin7bitGet
 Â
   ;; forward value to the CC handler
 Â
   ;; it expects: CC parameter number in WREG
   ;; CC parameter value in MIOS_PARAMETER1, so:
 Â
   movwf   MIOS_PARAMETER1   ; save 7-bit value in MIOS_PARAMETER1
   movlw   0x14      ; control CC #14h == Osc 1/2/3 Finetune
   call   SID_CCIN_Set   ; call function
  ;; get 7-bit value of pot #01
   movlw   0x01
   call   MIOS_AIN_Pin7bitGet
 Â
   ;; forward value to the CC handler
Â
   ;; it expects: CC parameter number in WREG
   ;; CC parameter value in MIOS_PARAMETER2, so:
  Â
   movwf   MIOS_PARAMETER2   ; save 7-bit value in MIOS_PARAMETER2
   movlw   0x2E      ; control CC #2Eh == Cutoff
   call   SID_CCIN_Set   ; call function
   return         ; and exit AIN handle
You can use other CCs here, whatever parameter you like. The list comes with the source code.
Then compile it, convert it to sysex, upload it and you’re done.
:)Â p-cord.
P.S. I know that my code mods aren’t the smoothest way to do that by far, but it worked for me and I can’t do it any better …;)