How can I change the pitch of a buzzer using a PING))) sensor?

 I am trying to make it so that when I move my hand closer to the PING sensor, the pitch of the buzzer becomes higher.  I don't care about the distances or pitches because I can edit, I just can't write codes. Thank You

Jayefuu7 years ago
What microprocessor are you using? If you're using an arduino this page has everything you need to know. If it's not an arduino I'm sure you can mix up what's on that page to get what you need.