Made in QBasic, for DOS.
I haven't managed to get this working correctly in DOSBOX, because it uses the PC Speaker and I'm not sure it is emulated correctly.
A QB64 build is included for users of modern windows.
Source code is also included, for the curious :-)