Git Product home page Git Product logo

midi-dot-net's Introduction

Overview

This .NET library provides convenient, threadsafe access to MIDI devices. It does this by binding to the Win32 API with P/Invoke and then wrapping that in an object-oriented API which feels right at home in C# / .NET.

For a taste of what the API offers, check out the example snippets.

Features

  • MIDI

    • Easy access to MIDI input and output devices.
    • Register input handlers using C# events / delegates.
    • Full support for sending and receiving Note On, Note Off, Control Change, Program Change, Pitch Bend, and raw System Exclusive (SysEx) messages.
    • Convenient enums for General MIDI Channels, Pitches, Instruments, Controls, and Percussions.
  • Scheduling

    • A powerful scheduler that lets you schedule MIDI messages, pause, unpause, and adjust beats-per-minute while it runs.
    • Support for callback messages, so you can schedule call-outs to your own code at specific instants. Callback messages are scheduled just like MIDI messages, so they are subject to pause, unpause, and beats-per-minute as well.
    • Callback messages can schedule additional messages when triggered (self-propagating messages), which allows for a flexible continuation-passing style of control.
    • Built-in NoteOnOffMessage schedules the Off message when the On message triggers.
  • Music Theory

    • Octave-independent Note class which differentiates among enharmonic variants (eg, D♯; and E♭). Notes can be resolved to specific pitches as needed.
    • Scale class built from tonic note and ascent pattern. Includes built-in patterns (Major, Melodic Minor Ascending, Chromatic, etc).
    • Chord class built from tonic note, ascent pattern, and inversion. Includes built-in chord patterns (Major, Seventh, Diminished, etc).
  • Documentation

    • Interactive demo programs, both console and GUI.
    • Comprehensive API documentation.
    • Unit tests.

Not-Yet-Features

  • No MIDI file I/O.

Requirements

  • .NET Framework 3.5.
  • Visual Studio C# 2008 (Express or Professional) or later.
  • winmm.dll, the Win32 multimedia API which is standard on all modern Windows installs.

Reference

For information of the original project by Tom Lokovic, as well as the original documentation and samples, see the midi-dot-net Google Code page.

Copyright

Original code copyright (c) 2009 Tom Lokovic. Additional modifications copyright Justin Ryan.

License

This library is distributed under the the New BSD License. Each source file should have a copy of the license in a comment at the top. Under the terms of the license, redistribution of the source code is allowed but requires, among other things, that the license text be retained. For details, see that license text or the official site: http://www.opensource.org/licenses/bsd-license.php

midi-dot-net's People

Contributors

regelink avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

fransbouma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.