Blowing harder or softer does not change the pitch in a trumpet. It alters the volume. Changing the aperture of the lips changes pitch. Well, that and pressing different combinations of valves which lengthen/shorten the overall length of tube the "buzzed" sound the lips make have to travel. With a sax, blowing harder equals faster moving air across the reed, which can cause the reed to vibrate faster, ie.higher in pitch. One learns how to control this by applying the right pressure, again, with the lips, on the reed.
Where the mic differs from any real horn analogy is that it only hears sound pressure. It doesn't have any indication of how fast your blowing wind is traveling, unlike a reed or brass instrument's mouth piece. The wind would be noise, which is a combination of many many many pitches playing at the same time, not a single pitch. Look up 'white noise' and 'pink noise' online to get a sense of what I mean. If you were to hum or whistle, then you could do some FFT analysis on the incoming sound and detect a pitch. With just wind though, all you can detect is the pressure, or volume of the wind.
Back when Yamaha first introduced their breath adapter for use with the DX7 line of instruments (circa 1986?), all it would control is the volume of the sound. Pitch was still controlled via the keys. You could pretty easily duplicate the attacks/sustains/vibrato (amplitude vibrato, not pitch) of a real breath-based instrument.
Now, having said that, there are plenty of different ways to tell your app which pitch to play. Smule's ocarina and trombone app use buttons/sliders on screen. You could also try detecting changes in rotation/elevation of the iphone to make a sort of theremin where the attack/volume of the note is controlled by blowing into the mic.
Good luck, whatever you end up doing!
|