I mocked up a quick JS canvas page that varies the bar width and I do indeed hear the tone changing:
I also put some ideas on the Github Readme including using feedback from the microphone to calibrate a width->pitch mapping to play music using your screen.