Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd class MillisBpmConverter #1100
Conversation
Update fork with latest commits of upstream
I added class MillisBpmConverter, that handles the conversion between units of measure for time intervals. These units of measure are Beats Per Minute (BPM) and the milliseconds between two beats (two quarter notes to be precise).
This class contains three methods:
int millisToBpm(long millis)which converts a time interval expressed in milliseconds to a time interval expressed in beats per minute.long bpmToMillis(int bpm)which converts a time interval expressed in beats per minute to a time interval expressed in milliseconds.void main(String[] args)which is used to start the program and contains an example of usage for the class.Also I noticed and fixed an empty if statement inside class "Abecedarian". I know it's not my class, so if you want me to remove this "fix", please let me know.