Your statement may sound educated, but you are about 300 years off in your attribution of Bach to medieval Germany.
1685- 1750......Baroque. His music is far more advanced than you may know. Have you ever analyzed a Bach fugue? Sheer genius.
Medieval or not, Bach still didn't have the education nor the tools to formally understand the math which may underlie his beautiful music. Under different circumstances, he might have been a brilliant mathematician, no doubt.