Add bits of listening code for portaudio based on https://github.com/bejayoharen/guitartuner