I have play commands in my QB application like this:
PLAY "MSe8f#4f#8f#8g8a8b4.a4.g4.f#4.o0b8o1e8e8e4d8e2."
I'd like to convert these somehow into something modern applications could use. Any thoughts? I'm currently messing around with the application in FreeBasic.
You can convert your Play strings into WAV files with a tool like this (C code):
Compile with gcc:
Test file, JingleBells.txt:
Run:
Enjoy listening to JingleBells.wav!
This QB play formatted string contains musical notes and duration symbols that could be converted into MIDI commands and then packaged in a midi file format. You may have to add more detailed timing and relative volume information based on some defaults.
MIDI is still considered a current format with zillions of tools and devices currently supporting it.
There's not an easy way to do this in Qbasic. You would basically need to write a modern sound driver. You'll need to do something more hackish, like using Audio Hijack (or similar PC app) or even this $0.85 cable.
The "modern applications" way to play music would be to use .mid files I guess. FreeBasic includes support for music through fmod library. So you could convert the music to .MID files format, using MIDI Tracker or something like that.