GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - litheon/RtMidi.Core: RtMidi for .Net Standard

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

210 Commits
210 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea/.idea.RtMidi.Core/.idea
.idea/.idea.RtMidi.Core/.idea
 
 
RtMidi.Core.Samples
RtMidi.Core.Samples
 
 
RtMidi.Core.Tests
RtMidi.Core.Tests
 
 
RtMidi.Core
RtMidi.Core
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RTMIDI.md
RTMIDI.md
 
 
RtMidi.Core.sln
RtMidi.Core.sln
 
 
RtMidi.Core.sln.DotSettings
RtMidi.Core.sln.DotSettings
 
 
appveyor.yml
appveyor.yml
 
 
icon.png
icon.png
 
 
icon.psd
icon.psd
 
 

Repository files navigation

RtMidi.Core

icon

Build status NuGet

MIDI support on both Windows (64-bit or 32-bit) and Mac OS X (64-bit) for .Net Standard 2.0 with support for both input and output midi devices, and support the following midi messages:

  • Channel Pressure
  • Control Change
  • Note On / Off
  • Pitch Bend
  • Polyphonic Key Pressure
  • Program Change
  • Non-Registered Parameter Number (NRPN) (used to send/receive 14-bit parameter and value)
  • System Exclusive (SysEx)

See changelog for version history.

Example

// List all available MIDI API's
foreach (var api in MidiDeviceManager.Default.GetAvailableMidiApis())
    Console.WriteLine($"Available API: {api}");

// Listen to all available midi devices
void ControlChangeHandler(IMidiInputDevice sender, in ControlChangeMessage msg)
{   
    Console.WriteLine($"[{sender.Name}] ControlChange: Channel:{msg.Channel} Control:{msg.Control} Value:{msg.Value}");
} 

var devices = new List<IMidiInputDevice>();
try
{
    foreach (var inputDeviceInfo in MidiDeviceManager.Default.InputDevices)
    {
        Console.WriteLine($"Opening {inputDeviceInfo.Name}");

        var inputDevice = inputDeviceInfo.CreateDevice();
        devices.Add(inputDevice);
        
        inputDevice.ControlChange += ControlChangeHandler;
        inputDevice.Open();
    }

    Console.WriteLine("Press any key to stop...");
    Console.ReadKey();
    
}
finally
{
    foreach (var device in devices)
    {
        device.ControlChange -= ControlChangeHandler;
        device.Dispose();
    }
}

RtMidi Version

We are using a fork off rtmidi master branch with a few changes (you can see a diff here between our fork and official repository) to make it possible to build on the platforms we are interested in and with changes to better support .Net P/Invoke.

You can find our fork at micdah/rtmidi.

Acknowledgements

Special thanks to the contributors (in alphabetical order):

  • abirke
  • mat1jaczyyy

About

RtMidi for .Net Standard

rtmidicore.micdah.dk/

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.