Play SMF (Standard MIDI File) on Unity.
- Open UPM: "Window/Package Manager"
- Click "+" button at the top left
- Select "Add package from git URL" and paste following URL:
https://github.com/bmpq/unity-midi.git?path=/Assets/UnityMidi
A pure C# MIDI library (C# Synth Project) worked well on Unity with slight modifications. This repository contains the modified library and example codes to play an SMF using OnAudioFilterRead.
Using natively supported MIDI APIs will achieve better quality. The following may be useful references.
- C# Synth Project: The MIT License
- pathetique-2.mid: Public domain