I'm interested in, and trying to find information on, the topic of programming musical instrument emulators. As an example, see http://www.youtube.com/watch?v=RhCJq7EAJJA (Smule's Ocarina app for the iPhone).
However, I'm not finding much information on this topic. Running with the ocarina app as an example, how are the individual notes produced? Since the results are based on strength of breath and which "holes" are held down, some of it must be handled programmatically, but is the whole sound generated programmatically or would it use a sound sample on the back-end and modify that (or those, if multiple samples are used)?
Are there any resources on this topic? All of my searches come up with information on how to play music (just standard audio) or how to make music (in music editing software), but none on how to do what is shown in that video.
Responses needn't be strictly related to ocarinas, though I wouldn't mind if they were.