Piezo speaker volume control with proximity sensor

Hey tbaum, did you ever get the variable volume working?

I scavenged a liquid flowmeter out of a coffee maker, and found by blowing in it I could read the speed. Thought I'd make some sort of digital wind instrument, but can't figure out how to change the volume of my piezo without it sounding weird. Right now it's changing pitch based on the speed which is fun, but not quite what I was hoping.