Generate sound programmatically and use iPhone's accelerometer to control it.