Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for a MIDI solution
#19
(09-03-2023, 11:26 AM)SagaraS Wrote: There must be a solution how to use Windows' own MIDI system in such a way that it is used as I have described. But not that a sound font is integrated into the EXE.
That's not a good solution.
I disagree. Using a custom soundfont is a better cross-platform solution. It gives you complete control over how your MIDI music sounds on Windows, Linux and macOS. Now, if you do not care about Linux and macOS (that QB64-PE supports), then that's another story.

@DSMan195276 and I have had detailed discussion on supporting OS specific MIDI APIs that do not use soundfont here Add MIDI support to _SNDOPEN() · Issue #115 · QB64-Phoenix-Edition/QB64pe (github.com). We may add a cross-platform version of this using an abstraction library like RtMidi (https://github.com/thestk/rtmidi) in the future. Unfortunately, stuff like this takes time.

Having said that, I did put together a Windows-only QB64-PE library that does exactly what you need at the moment. I.e., it loads a MIDI file from a buffer and plays it using the Win32 WinMM MIDI streaming output APIs. You can find the example here: a740g/WinMIDI-Player-64: Win32 WinMM MIDI player & library for QB64-PE (github.com). The API section has a terse API doc. and the NOTES section has my notes. The library itself can be found here: a740g/Toolbox64: A740g's collection of libraries for QB64-PE (github.com).

Cheers!
Reply


Messages In This Thread
Looking for a MIDI solution - by SagaraS - 09-02-2023, 07:17 PM
RE: Looking for a MIDI solution - by bplus - 09-02-2023, 07:35 PM
RE: Looking for a MIDI solution - by SMcNeill - 09-02-2023, 07:41 PM
RE: Looking for a MIDI solution - by SMcNeill - 09-02-2023, 07:43 PM
RE: Looking for a MIDI solution - by DSMan195276 - 09-02-2023, 08:22 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 12:40 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 12:43 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 01:27 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-03-2023, 01:37 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 01:52 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 02:22 AM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 02:36 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 09:30 PM
RE: Looking for a MIDI solution - by grymmjack - 09-06-2023, 12:07 AM
RE: Looking for a MIDI solution - by SMcNeill - 09-03-2023, 02:33 AM
RE: Looking for a MIDI solution - by DSMan195276 - 09-03-2023, 03:09 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-03-2023, 03:13 AM
RE: Looking for a MIDI solution - by MasterGy - 09-03-2023, 06:48 AM
RE: Looking for a MIDI solution - by grymmjack - 09-03-2023, 02:18 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 11:26 AM
RE: Looking for a MIDI solution - by a740g - 09-03-2023, 12:09 PM
RE: Looking for a MIDI solution - by grymmjack - 09-03-2023, 02:27 PM
RE: Looking for a MIDI solution - by SagaraS - 09-03-2023, 06:37 PM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-05-2023, 04:40 PM
RE: Looking for a MIDI solution - by grymmjack - 09-06-2023, 12:10 AM
RE: Looking for a MIDI solution - by mnrvovrfc - 09-06-2023, 07:05 AM



Users browsing this thread: 24 Guest(s)