Link to home
Start Free TrialLog in
Avatar of PeterBaileyUk
PeterBaileyUk

asked on

vb.net euclidean math

I have a vb.net forms windows app. I have 16 buttons representing the steps of a sequencer.
I would like to mimic the attached. if the user selects 16 we see 16 if they choose 8 we only see 8. after that the euclidean math should tell me the buttons to illuminate. the embedded drawings explain better.

so the user enters the total steps and then the fills and the buttons illuminate.

I can deal with the button behaviours and combo's. I dont know how to use the maths euclid function to get the results I need i.e which buttons to illuminate based on the euclidean algorhthm.




User generated imageUser generated imageUser generated image
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PeterBaileyUk
PeterBaileyUk

ASKER

I will see if i can write a function to do it. thank you.