Solved

vb.net euclidean math

Posted on 2016-09-25
2
64 Views
Last Modified: 2016-09-25
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.




ex1e1e2
0
Comment
Question by:PeterBaileyUk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
ste5an earned 500 total points
ID: 41814618
It don't see the connection to Euclides. You just do an even distribution:

Number of buttons / Number of buttons to highlight = Step widtht

Then divide your button position by that step width and round the result. This gives you the possible highlight positions. There are 3 possible highlight patterns for 16/7:

Capture.PNG
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 41814629
I will see if i can write a function to do it. thank you.
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question