This demonstrates how BBC BASIC can simultaneously output both music and graphics, without needing any libraries. The buffering provided by the SOUND statement ensures that the timing of the music isn't affected by the graphics output. The program requires BBC BASIC for SDL 2.0 but could easily be adapted for BBC BASIC for Windows (preferably using the HQSOUND library for best results). The source code is here.
https://www.youtube.com/watch?v=Kqqm4iCl2Ag