(06-14-2023, 08:19 AM)RhoSigma Wrote:Just this alone is HUGE! I've been wanting an out-of-the-box SOUND command where one can easily select the waveform, volume, panning, etc., literally for years. This opens up so many possibilities for me - many thanks to the QB64PE team!
- #347 - Audio enhancements. - @a740g
- Updates miniaudio to v0.11.17, which adds support for Apple AIFF and AIFC audio formats. So, we get those too.
- PLAY has been extended to:
- Select waveforms @n (square = 1, sawtooth = 2, triangle = 3 (default), sine = 4, noise = 5).
- Adjust volume ramping Qn (0ms to 100ms).
- SOUND has been extended to use the following syntax:
- SOUND frequency#, duration#[, volume#][, panning#][, waveform&]
Question: are there any tutorials or examples of the new audio features?
(06-14-2023, 01:01 PM)a740g Wrote:Even without multi-channel I'm very excited to give these features a go.(06-14-2023, 12:36 PM)mnrvovrfc Wrote: The additional functionality to SOUND is great, but it's destined to do only one-channel sound. One still has to work for multichannel playback with _SNDRAW and the like. ON PLAY() was never supported by QB64. This is just a reminder for the ambitious ones.Muli-channel SOUND is a planned feature. This update just lays the foundation for that to happen. If things go as planned, we might even implement custom waveforms.
See this issue report: Amiga BASIC like `WAVE` and `SOUND` improvements · Issue #187 · QB64-Phoenix-Edition/QB64pe (github.com)
The ON PLAY() stuff would surely be a nice-to-have feature. But that is not on our roadmap yet. Please feel free to add it to the QB64-PE GitHub issue tracker.
But when you do add multi-channel, QB64PE will be a great tool for creating music applications.
I haven't been following the releases to closely for some months, so I need to do more digging and see what else has been added. I saw mention of `Hively Tracker` and `TinySoundFont`, and am curious what that's all about. Does QB64PE have a built in tracker for music? Any MIDI support? I have some catching up to do.
Again, any links to some good examples of any or all of these audio features would be great.
Thanks again guys, great work!