NAudio.Midi 3.1.1-preview.1

Prefix Reserved
This is a prerelease version of NAudio.Midi.
There is a newer version of this package available.
See the version list below for details.
dotnet add package NAudio.Midi --version 3.1.1-preview.1
                    
NuGet\Install-Package NAudio.Midi -Version 3.1.1-preview.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="NAudio.Midi" Version="3.1.1-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NAudio.Midi" Version="3.1.1-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="NAudio.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 NAudio.Midi --version 3.1.1-preview.1
                    
#r "nuget: NAudio.Midi, 3.1.1-preview.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 NAudio.Midi@3.1.1-preview.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=NAudio.Midi&version=3.1.1-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=NAudio.Midi&version=3.1.1-preview.1&prerelease
                    
Install as a Cake Tool

NAudio.Midi

Nuget

MIDI support for NAudio. Dual-targets net9.0 (cross-platform: the MIDI event model and file reader/writer) and net9.0-windows10.0.19041.0 (adds WinRT live MIDI I/O on Windows).

What's included

  • MidiFile for reading Standard MIDI Files (SMF)
  • MidiEventCollection and MidiEvent hierarchy (NoteEvent, NoteOnEvent, ControlChangeEvent, PatchChangeEvent, TempoEvent, TimeSignatureEvent, MetaEvent, SysexEvent, …)
  • MidiFileWriter helpers to produce MIDI files from a MidiEventCollection
  • Enumerations for General MIDI patches, drum notes, controller numbers, etc.
  • Windows only: WinRTMidiIn / WinRTMidiOut — live MIDI input and output backed by the WinRT Windows.Devices.Midi API (present only in the net9.0-windows build; the cross-platform net9.0 build omits them)

What's not here

Sending or receiving live MIDI through the legacy winmm-backed MidiIn / MidiOut uses the Windows Multimedia API and lives in the NAudio.WinMM package. (The WinRT-backed WinRTMidiIn / WinRTMidiOut above are the modern alternative and ship here.)

See the NAudio documentation site for tutorials and the full API reference, or the GitHub repository for full documentation and tutorials on working with MIDI files and events.

License

MIT.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows10.0.19041 is compatible.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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 (16)

Showing the top 5 NuGet packages that depend on NAudio.Midi:

Package Downloads
NAudio

NAudio is an open source .NET audio library — playback and recording, file readers and writers, MIDI, DSP and effects, plus the core Windows audio backends (WASAPI, Media Foundation and WinMM). ASIO, DMO/DirectSound and WinForms support are separate packages.

NAudio.WinMM

winmm.dll-based Windows audio APIs (WaveOut, WaveIn, MidiIn, MidiOut, ACM) for the NAudio audio library.

MicroServices

Micro Services Essential Pack

MappingTools.Core

osu! mapping utility library built for Mapping Tools.

MultiAPI_Lib

MultiAPI - Это библиотека и сборка разного ПО (Далее "Библиотека") для разработчиков. Работает на .NET 8. Она содержит множество функций чтобы ускорить разработку ПО. MultiAPI подойдёт как начинающим разработчикам, так и профессиональным разработчикам ПО.

GitHub repositories (26)

Showing the top 20 popular GitHub repositories that depend on NAudio.Midi:

Repository Stars
tixl3d/tixl
TiXL is an open source software to create realtime motion graphics.
Azure-Samples/cognitive-services-speech-sdk
Sample code for the Microsoft Cognitive Services Speech SDK
moom825/xeno-rat
Xeno-RAT is an open-source remote access tool (RAT) developed in C#, providing a comprehensive set of features for remote system management. Has features such as HVNC, live microphone, reverse proxy, and much much more!
CXWorld/CapFrameX
Frametime capture and analysis tool
lastbattle/Harepacker-resurrected
All in one .wz file/map editor for MapleStory game files
akon47/ScreenRecorder
⏺️ A simple recording program with the ability to record screens and audio on your computer.
malaybaku/VMagicMirror
VRM Software for Windows to move avatar with minimal devices.
octgn/OCTGN
Online Card and Tabletop Gaming Network
mhwlng/streamdeck-elite
Elgato Stream Deck plugin for Elite Dangerous
RoosterDragon/Desktop-Ponies
Desktop Ponies in .NET [The Original!]
stuff-by-3-random-dudes/UWUVCI-AIO-WPF
mir-ethernity/mir-eternal
mhwlng/streamdeck-starcitizen
Elgato Stream Deck button plugin for Star Citizen
iss4cf0ng/DuplexSpyCS
An open-source, C#-based remote administration tool (RAT), enabling complete control of a remote Windows machine, designed for legitimate remote administration and security testing of Windows systems.
FredTungsten/ScriptPlayer
ScriptPlayer is a video player that controls the Handy and lots of other toys in sync with videos.
kuma4649/MDPlayer
tgraupmann/WinForm_Ollama_Copilot
Ollama AI front-end using Windows Forms as a Copilot Application
Doublevil/Houhou-SRS
Japanese dictionary and SRS self-learning application for Windows.
nanami5270/GARbro-Mod
Fork of morkt/GARbro
elgarf/vMixUTC
Customizable controller for vMix
Version Downloads Last Updated
3.3.0-preview.1 0 10/17/2026
3.2.0 2,074 10/15/2026
3.2.0-preview.1 97 10/13/2026
3.1.1-preview.2 343 9/21/2026
3.1.1-preview.1 534 9/8/2026
3.1.0 89,157 9/7/2026
3.1.0-preview.2 132 9/5/2026
3.1.0-preview.1 126 9/4/2026
3.0.2-preview.2 210 8/27/2026
3.0.2-preview.1 285 8/20/2026
3.0.1 93,288 8/18/2026
3.0.1-preview.1 144 8/17/2026
3.0.0 9,511 8/15/2026
3.0.0-preview.20 670 8/8/2026
3.0.0-preview.19 684 7/25/2026
3.0.0-preview.18 1,596 7/16/2026
3.0.0-preview.17 206 7/11/2026
3.0.0-preview.16 628 7/1/2026
3.0.0-preview.15 262 6/28/2026
2.4.0 36,077 8/26/2026
Loading failed

* **macOS support (preview)** - A new wrappers library is added wrapping macOS native API's for playback/recording, reading/writing files and resampling audio. The `NAudio.MacOS` package ships pre-release only (`X.Y.Z-preview.N`) while its API settles, so it stays pre-release alongside stable releases of the other packages. Special thanks to @mdcdi1315 (#1325) for the work and the tests. For more information, see the [design](Docs/Architecture/MacOSWrappersDesign.md) doc that describes the decisions that helped shape the wrappers. (#1398)