Is there an app for the iPhone 4 that tells the pitch of a note through an audio input? Does anyone know of an app for the iPhone that can analyze sounds and tell us what pitch the sound is?

For example, if i had that app running and i go to the piano and play some notes, it should be able to tell me what notes they are.
Garageband can do this. Open a new (or existing) project and add a new "real" track with no effects. On the bottom edge of the window you´ll see a LCD-like window which usually displays the current time or measure in the track; depending on which version of Garageband you´re using, you can now either use the up-/down-arrows to switch to the tuner (tuning fork symbol) or click on the tuning fork symbol directly to select the tuner. Every sound that is picked up by your Mac´s microphone will now be displayed as note (with off-pitch)