This isn’t an answer, but too long to be a comment. The real challenge with doing this is that consonance isn’t a strictly mathematical concept, but also a psychological and cultural one. Mathematics can answer the questions of how objects vibrate and what their resonant frequencies will be, but how these frequencies get interpreted is up to the listener.
For instance, a minor sixth has a frequency ratio of 8:5 in just intonation and a major sixth has a ratio of 5:3, both of which are fairly simple fractions. However, if you go back to medieval times, both of these were considered dissonant harmonies to some degree. The modern perception of this interval is very different, which suggests that this is not a question that math can really answer, unless it’s simply the case that we are more accustomed to more tension between sounds nowadays.
Going further, the idea of simple fractions between frequencies giving rise to consonant sounds goes back to the Greeks. The physical origins are clear; it comes from the fact that the resonant frequencies of a plucked string are whole number multiples of the base tone. However, there are cultures whose musical traditions do not lean so heavily on plucked strings. For instance, the overtones of a Djembe are much closer to the square roots of the Dirichlet eigenvalues of a disk, which are the zeroes of Bessel functions. (The lowest frequency comes from a different effect and is not determined by the drum head.)
For Djembe music, it doesn’t make sense to think of consonance in terms of simple fractions between frequencies, although there are certainly different tones that come from the instrument.