Does anyone have any QB64 / QuickBasic / QBasic code to generate a WAV file, specifying various sound synthesis parameters like waveform (sine, triangle, square, sawtooth, white noise, etc.), ADSR (attack / decay / sustain / release), as well as pitch/frequency and volume, (bonus would be generating a stereo sound file, controlling the pan position), and then play back 2 or more of the sound files simultaneously?
Also it would be useful to append one WAV file to the end of another.
This would be useful for sound effects for games as well as music applications.
I've found the WAV file specification (still digesting) but it is a little daunting!
http://www.topherlee.com/software/pcm-tu...ormat.html
https://docs.fileformat.com/audio/wav/
https://m.youtube.com/watch?v=udbA7u1zYfc
https://www.videoproc.com/resource/wav-file.htm
https://www.fastmetrics.com/support/wav-file/amp/
http://www.thescarms.com/vbasic/tone.aspx
https://www.vbforums.com/showthread.php?...e-wav-file
https://www.vbforums.com/showthread.php?...a-wav-file
https://docs.microsoft.com/en-us/previou...0(v=vs.85)
https://www.vbforums.com/showthread.php?...a-wav-file
https://forums.codeguru.com/showthread.p...g-wav-file
https://forums.codeguru.com/showthread.p...-WAV-Files
https://rochars.github.io/wavefile/
https://gist.github.com/asanoboy/3979747
https://morioh.com/p/bced3b76866e
https://codereview.stackexchange.com/que...script-es6
https://blog.logrocket.com/audio-visuali...avascript/
https://www.tutorialspoint.com/read-and-...thon-wave#
https://ourcodeworld.com/articles/read/1...javascript
https://learningsolutionsmag.com/article...er-s-guide
https://onestepcode.com/modifying-wav-files-c/
https://codingdiksha.com/build-a-wav-fil...avascript/
Also it would be useful to append one WAV file to the end of another.
This would be useful for sound effects for games as well as music applications.
I've found the WAV file specification (still digesting) but it is a little daunting!
http://www.topherlee.com/software/pcm-tu...ormat.html
https://docs.fileformat.com/audio/wav/
https://m.youtube.com/watch?v=udbA7u1zYfc
https://www.videoproc.com/resource/wav-file.htm
https://www.fastmetrics.com/support/wav-file/amp/
http://www.thescarms.com/vbasic/tone.aspx
https://www.vbforums.com/showthread.php?...e-wav-file
https://www.vbforums.com/showthread.php?...a-wav-file
https://docs.microsoft.com/en-us/previou...0(v=vs.85)
https://www.vbforums.com/showthread.php?...a-wav-file
https://forums.codeguru.com/showthread.p...g-wav-file
https://forums.codeguru.com/showthread.p...-WAV-Files
https://rochars.github.io/wavefile/
https://gist.github.com/asanoboy/3979747
https://morioh.com/p/bced3b76866e
https://codereview.stackexchange.com/que...script-es6
https://blog.logrocket.com/audio-visuali...avascript/
https://www.tutorialspoint.com/read-and-...thon-wave#
https://ourcodeworld.com/articles/read/1...javascript
https://learningsolutionsmag.com/article...er-s-guide
https://onestepcode.com/modifying-wav-files-c/
https://codingdiksha.com/build-a-wav-fil...avascript/