I am working on a random beat generator and one of the things it does is randomly select the BPM (beats per minute) from a database in between 50 and 200 BPM.
The starting BPM of the files will always be 100 no matter what. I need to find a simple formula to get the percentage of what the new BPM will be from the starting 100.
- If the new randomly selected BPM is 200 it would be $100 + 100\% = 200$.
- If the new randomly selected BPM is 150 it would be $100 + 50\% = 150$
- If the new randomly selected BPM is 50 it would be $100 - 50\% = 50$
How do I find the percentage? The values I will always have are:
- starting BPM = 100
- new BPM = $y$
- percentage = $x$