Midibox SID asm file Question

Okay, going through all the pin assignments.

What the devil is with this:

<code>

;; additional CS encoders

;;        SR  Pin  Mode

ENC_ENTRY  3,  0,  MIOS_ENC_MODE_DETENTED2 ; Osc delay/transpose/assign #1

ENC_ENTRY  3,  2,  MIOS_ENC_MODE_DETENTED2 ; Osc attack/finetune/assign #2

ENC_ENTRY  3,  4,  MIOS_ENC_MODE_DETENTED2 ; Osc decay/portamento/assign #3

ENC_ENTRY  3,  6,  MIOS_ENC_MODE_DETENTED2 ; Osc sustain/release/assign #4

ENC_ENTRY  3,  8,  MIOS_ENC_MODE_DETENTED2 ; Osc release/pulsewidth/assign #5

</code>

It says that there is a 8th pin for that SR? Looking at it I believe that it’s showing only even because encoders take two pins to function. So I think this ASM is implying that this is a 10 pin encoder. It says there are only 8 pins though… correct?

Interesting, this is a definition error in the encoder table, because the “OSC Release” encoder should be assigned to SR4, Pin 0 (and 1)

Due to some magic 3,8 leads to the same assignment as 4,0

(ok, replace “magic” by “sr*8 + pin” ;-))

I changed the source code to:

[tt]

ENC_ENTRY  4,  0,  MIOS_ENC_MODE_DETENTED2   ; Osc release/pulsewidth/assign #5

[/tt]

Best Regards, Thorsten.

I always thought this was intentional and meant to be a joke - seriously  :slight_smile:

Apparently I don’t understand my own jokes anymore :wink:

Best Regards, Thorsten.

I guess it makes me lame for thinking this might be a bug!

All roads lead to Rome.  ;D

LOL!