(12-22-2022, 08:14 AM)johnno56 Wrote: I am some-what familiar with the sound command and its parameters. My question is: How does QB64pe generate the tones? Does it have some kind of library of tones or some other method in generating the tones or perhaps accesses the hardware (sound card) directly? Just curious...
Cheers to you all in "Down Under" ...
I hope you could settle for one voice at a time. It's as Vince said if you'd like to play chords.
I was going to propose this certain QBPlay. There are two totally-different options. One I saw in source code for Purebasic long ago, and the other is on Github but it's a Windows application that creates wave files out of a "PLAY" string.
I have been checking out a few music programs (called "trackers") that emulate the manipulation of the FM chip of Soundblaster Pro or such other ancient soundcard. However they are clunky to use, for those of us not used to music production, or for someone like me who is not used to such severe constraints. One program is called Adtracker II which was started as project around 2017. It's available for 32-bit Linux (enable "multilib" mode on 64-bit) and Windows. It's not available for 64-bit Windows. (Careful, links below aren't "https"):
http://adlibtracker.net/downloads.php
Another program was written entirely with QuickBASIC v4.5 called BeniTracker that I discovered in the ancient Pete's site. It relies a lot on "CALL INTERRUPT" and other things which means it cannot be ported to QB64 as it is.
http://petesqbsite.com/downloads/sound.shtml
http://www.petesqbsite.com/downloads/bt18.zip