How would I go about extracting the frequencies and times I would need to create one of these scripts using Audacity? It seems like a fairly rudimentary request, I’m sure it’s possible. I just don’t want to spend hours sifting through documentation and cramming knowledge I don’t need in order to get to what I do. The end just wouldn’t justify the means.
Have you looked at Audacity’s tone choice on the generate menu?
You can choose the frequency and duration of the tone. If you know O Fortuna well enough, I’d guess you can at least approximate it and then plug those numbers into your script.
Analysing the frequencies in a piece of classical music is an extremely complex task.
This shows the frequencies in just one single piano note:
What you need is to know the “fundamental frequencies” (the base frequencies without any harmonics) of the notes in the tune (melody).
The easiest way to find these frequencies is to either find the tune written out (musical notation), or ask a musician to tell you what the notes are.
The frequencies can then be looked up on this chart: http://www.phy.mtu.edu/~suits/notefreqs.html