Author Topic: SOUNDS - a ton of QB64 / QuickBasic examples collected from the Web (WIP) (v2.0)  (Read 3073 times)

0 Members and 1 Guest are viewing this topic.

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
To help learn about how to make sound effects and music in QB64, I went through a bunch of QB programs found online, and collected the sound routines in a single program with a menu to browse through the list and try each. Each sound function contains the original program name as part of the function name.

It also includes a primitive note-taking feature so if you find a sound you like, you can save the function name and a comment about it to a notes file (same file name as the EXE but with a .TXT file extension.)

Maybe this can help some aspiring programmer learn about making sounds in QB64.

I also listed the names of each program the sound routine came from, along with the URL found at, and the name of the programmer when available (I was able to identify most of them).

If anyone has any cool sound code to add, feel free...

Enjoy.

PS I included it as a ZIP because for some reason when I try to paste the code inside code blocks, I get an HTTP error 500 (see screenshot).
* qb64_sound_examples_2-00.zip (Filesize: 36.42 KB, Downloads: 222)
qb64-forum-code-block-http-error-500.jpg
* qb64-forum-code-block-http-error-500.jpg (Filesize: 27.6 KB, Dimensions: 478x398, Views: 113)
« Last Edit: January 27, 2022, 05:56:03 pm by madscijr »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Well this might be interesting, been meaning to play around with sounds.

Thanks @madscijr

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
Well this might be interesting, been meaning to play around with sounds.
 @madscijr

I think a couple of yours are in there as well! (Hope you don't mind! Credit is given!)

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Awesome, you used some of mine too! Thanks! :D

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
Awesome, you used some of mine too! Thanks! :D

Thank you, for writing the code and putting it out there for people to enjoy and learn from.

I learn best from examples, and really had no clue how to do sounds in QB. It's not like on a Commodore 64 which had a SID chip with different waveforms, filters, channels, etc. I'm really just beginning to learn.
I would like to be able to make sounds like you could with the SID, and easily manipulate all the parameters.
The Web audio API has even more features. I'd like to see similar audio capability from QB64 to match the graphics capability.

Anyway thanks again.
« Last Edit: January 28, 2022, 03:28:27 pm by madscijr »