https://www.unix.com/attachments/programming/7840d1568033336t-my-first-perl-incarnation-audio-oscillograph-alsa-whstle_cpaturepng?s=2b445f43d247a8f73474313b0196366e