title: Programming Musical Instrument Emulators?
body: <p>Can someone provide me information pertaining to programming musical instrument emulators. As an example, see <a href="http://www.youtube.com/watch?v=RhCJq7EAJJA" rel="nofollow noreferrer">here</a> (Smule's Ocarina app for the iPhone).</p>
  
  <p>I am to find sufficient 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)?</p>
  
  <p>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.</p>
  
  <p>Responses needn't be strictly related to ocarinas, though I wouldn't mind if they were.</p>