Gondwana.Audio.Midi 2.6.1

dotnet add package Gondwana.Audio.Midi --version 2.6.1
                    
NuGet\Install-Package Gondwana.Audio.Midi -Version 2.6.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Gondwana.Audio.Midi" Version="2.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Gondwana.Audio.Midi" Version="2.6.1" />
                    
Directory.Packages.props
<PackageReference Include="Gondwana.Audio.Midi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Gondwana.Audio.Midi --version 2.6.1
                    
#r "nuget: Gondwana.Audio.Midi, 2.6.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Gondwana.Audio.Midi@2.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Gondwana.Audio.Midi&version=2.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Gondwana.Audio.Midi&version=2.6.1
                    
Install as a Cake Tool

Gondwana.Audio.Midi

Gondwana.Audio.Midi adds MIDI playback to the Gondwana Game Engine using MeltySynth and the Gondwana.Audio.NAudio backend.

It synthesizes .mid / .midi files with an embedded SoundFont and registers those formats with the NAudio reader registry so MIDI resources can be loaded through the normal AudioResourceManager API.

Features

  • MIDI playback (.mid, .midi)
  • embedded General MIDI SoundFont
  • software synthesis through MeltySynth
  • integration with Gondwana.Audio.NAudio
  • normal Gondwana AudioResource playback controls after loading

Installation

dotnet add package Gondwana.Audio.Midi

Gondwana.Audio.Midi depends on Gondwana.Audio.NAudio, which provides the Windows audio output pipeline.

Usage

Configure the NAudio backend and register MIDI readers before loading MIDI resources:

Engine.Instance.UseNAudio();
Engine.Instance.InitializeMidiAudioFormats();

Then use the common audio manager:

var music = Engine.Managers.AudioResources.LoadFromFile(
    "theme",
    "assets/theme.mid");

music.IsLooping = true;
music.Play();
  • Gondwana — core engine and backend-neutral audio contracts
  • Gondwana.Audio.NAudio — Windows desktop audio backend used by MIDI playback
  • Gondwana.Audio.Browser — browser/WASM audio backend; MIDI synthesis is not currently provided there

Documentation

License

MIT

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.6.1 94 10/8/2026
2.6.0 147 9/17/2026
2.5.2 149 7/26/2026
2.5.1 136 7/19/2026
2.5.0 146 7/9/2026
2.4.3 177 6/16/2026
2.4.2 140 6/11/2026
2.4.1 155 6/9/2026
2.3.0 146 5/19/2026
2.2.4 155 5/9/2026
2.2.3 143 5/5/2026
2.2.2 136 5/3/2026
2.2.1 142 4/30/2026
2.2.0 151 4/29/2026
2.1.2 172 4/25/2026
2.1.1 162 4/20/2026
2.1.0 142 4/20/2026