Midi sync for cdj-800

Hi.

Yes, I've used the auto format now, and found it good. Thanks

It is much neater to use if(stuttermode), I shall do so from now on.

the four buttons are align, length, stutter, and dutycycle. Their states are read from pins 14 to 17 into the variables alignMode, stutterMode, lengthMode, dutyCycleMode.

The buttons mechanically latch on and off, and have an integral LED, attached to lengthLEDPin... etc

There is also a button on my rotary encoder used to activate values.

The idea is to choose a mode, eg length. the current value for length is then shown on the display. the length LED lights for user feedback.
an new value can be dialled in using the encoder, lengthLED flashes to show the parameter has changed.
the new parameter becomes active when the encoder button gets pressed.