0
votes
1answer
48 views

Minimizing error in user-entered series of timestamps representing musical beats

I've got an app in which the user taps a key to the beat of a music to mark out measures. If a song has a tempo of 120, for example (500ms / beat), the human-entered values might look like this: $$u ...
6
votes
2answers
824 views

How do you determine the closest whole number ratio for a given real number?

I've been messing around with formulas for musical notes (trying not to read anything that would help me unless I get stuck) and currently I'm at a point where I'm trying to get a function that ...