Giter Club home page Giter Club logo

drtmidi's Introduction

RtMidi - D bindings

This is a D port / bindings for the realtime MIDI i/o C++ RtMidi library, version 2.2.1.

Using a callback function is not supported.

example/recorder.d is a fairly complete example of how to use it.

It has been tested on an Ubuntu Linux 15.04, however there is no OS specific code, so it should be portable.

Building

A fork of the RtMidi library should be installed: https://github.com/remy-j-a-moueza/rtmidi with the c-api-changes branch. It captures C++ exceptions in C++ so that they can be rethrown in D with the right error message.

On Linux, depending on where it is installed, running ldconfig /path/to/librtmidi.a may be necessary to run the compiled executables or else you may have to set the LD_LIBRARY_PATH variable.

Then dub build should build the library in the lib/ directory.

Change directory to example/ and run dub build to build the example program.

Example

The example programs records notes from an instrument on port number 1 and replay them once the user press Enter. An exception will be thrown if no intrument is available on port #1. To stop the program, after the notes have been played, press Space then Enter.

drtmidi's People

Contributors

remy-j-a-moueza avatar

Stargazers

moueza avatar tanitta avatar

Watchers

moueza avatar  avatar

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.