I'd like to write a simple keyboard program that plays in Just Intonation. I'm an experienced programmer, but I've never delved into writing an instrument before. In my (admittedly naive) thinking, one way to do this is to record my own sounds at a set of frequencies, and then trigger them when different keys are struck.
However, I am wondering what tools/apis/languages are out there that will let me programmatically generate and play tones, at any given frequency?
I'm language agnostic, but something that I could use on OSX or ubuntu would be ideal.