New codebase for OmniMIDI, completely rewritten from scratch using code laid down through various tests in the Shakra branch.
Two reasons; the old code was too bloated, and I wanted to completely move the new release as far away from it as possible.
This code has been written completely in C++, instead of taping random code on top of the already unstable C code from OmniMIDI v1 (pre 15.0). This will get rid of all the issues that have been plaguing the old branch so far, while also making the code more readable by normal human beings. I became unable to read my own code in there...
I feel like I should probably get to know C++ more, before moving to Rust. A Rust rewrite is not out of the question though! Maybe someday.
Here are the main differences:
- v2 is pure C++ code. (Duh!)
- Written with modularity in mind, to allow other developers to take full advantage of it (Modules support!) and...
- ... support for more operating systems other than Windows, and more architectures other than i386 and AMD64, thanks to a built-in implementation of TinySoundFont! (Both a WinRT ARM32 and Linux AMD64 release have been tested internally so far.)
Here's what available with OmniMIDI v2 so far.
- ✔️ Driver (Uh...)
- ✔️ Support for Windows and Linux
- ✔️ Modular synthesizer system, with built-in support for:
- ✔️ BASSMIDI (With support for WASAPI, ASIO and DirectSound)
- ✔️ FluidSynth
- ✔️ XSynth
- ❌ Events parser overrides (change note length, ignore events etc...)
- ✔️ Support for hot reload of settings or SoundFont lists
- ❌ MIDI Feedback feature
- ✔️* Blacklist system
- ✔️ Audio limiter (anti-clipping)
- ✔️ WinMMWRP support
- ❌ Configurator
- ❌ MIDI channel mixer
- ✔️ Debug window
This guide will help you set up your environment and compile OmniMIDI v2 from source.
- Xmake
- A GCC C++ compiler (MinGW or Clang)
- Git
-
Install Xmake
You can install Xmake by following its online guide: https://xmake.io/mirror/guide/installation.html
-
Download the compiler
Download either MinGW or Clang, then extract and place it somewhere accessible (e.g.,
F:\Compilers\MinGW
) -
Clone the repo
Clone the repo somewhere on your device:
git clone https://github.com/KeppySoftware/OmniMIDIv2.git
-
Prepare the project
Open a terminal on the newly cloned repo, and navigate to the project's directory:
cd OmniMIDI
Then prepare the project for the compile process, and compile it.
Replace with the full path to your compiler's SDK:xmake f -m release --sdk=<pathtosdk> xmake
-
Test the build
Test the build against something that can use it (WinMM under Win32, ALSAMIDI under Linux, KDMAPI for both).
If you're under Linux, and you want to test the newly created build against a KDMAPI test app, remember to export the build's directory as a valid library loading path, by calling
export LD_LIBRARY_PATH=$PWD
in the terminal.
Keppy's Direct MIDI API, introduced in OmniMIDI v1, will continue to be supported in OmniMIDI v2.
I will make sure old applications will still be able to communicate with v2, but it will definitely be deprecated in favor of a better API implementation with a better name. To be continued...
Stop asking. No.