hi, my I have developed a module for my eurorack that generates clock impulses. To see how it works, here is a video of me explaining it : Arduino clock generator
but one line of the code is making a lot of trouble. interval0 = reverseDelay * (100 - swing); - when swing is 50 than everything is ok, but when it changes to anything else the calculations go to negative.
Here is the whole code but the part that is not working is in void bpmTick
I CANT POST THE CODE so it will be as an attachment