M2DX-Core

DX7 FM Synthesis Engine in Pure Swift

Welcome to the M2DX-Core support page.

M2DX-Core is a bit-accurate DX7 FM synthesis engine written entirely in pure Swift. It emulates the original Yamaha OPS chip using Int32 fixed-point arithmetic, providing the exact sound of the hardware synthesizer without any C or C++ code.


Features

Bit-Accurate Emulation

M2DX-Core uses Int32 fixed-point arithmetic throughout, matching the behavior of the original Yamaha OPS chip at the bit level. Every operator, envelope, and LFO calculation faithfully reproduces the hardware.

MIDI 2.0 Native

Built with native MIDI 2.0 support, M2DX-Core takes full advantage of per-note pitch bend, per-note expression, and high-resolution control data — enabling expressive playing not possible with MIDI 1.0.

Real-Time Safe

The audio processing path uses a lock-free architecture with no memory allocations on the audio thread, making M2DX-Core suitable for use in professional audio applications and AUv3 plugins.

Pure Swift

No C, no C++, no Objective-C bridging headers. M2DX-Core is written entirely in Swift, making it easy to integrate into any Swift or SwiftUI project as a Swift Package.


Integration

Swift Package Manager

Add M2DX-Core to your project using Swift Package Manager. In Xcode, go to File > Add Package Dependencies and enter the GitHub URL:

https://github.com/hakaru/M2DX-Core

Or add it directly to your Package.swift:

.package(url: "https://github.com/hakaru/M2DX-Core", from: "1.0.0")

Open Source

M2DX-Core is open source software released under the MIT License. Contributions, issues, and pull requests are welcome on GitHub:

github.com/hakaru/M2DX-Core


Contact

If you have questions or feedback, please contact us at:
support@hakaru.net