Rhythm is just counting. Pitch is just frequency.
Audio engineers visualize sound waves using Graphs and manipulate frequencies using Logarithms.
Pythagoras discovered the math behind musical harmonies over 2,500 years ago.
Decibels (volume) are measured on a Logarithmic scale.