Giter Site home page Giter Site logo

dimitre / libremidi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from celtera/libremidi

0.0 0.0 0.0 10.79 MB

A modern C++ MIDI real-time & file I/O library. Supports Windows, macOS, Linux and WebMIDI.

License: BSD 2-Clause "Simplified" License

CMake 3.08% C++ 96.92%

libremidi's Introduction

libremidi

Build status

libremidi is a cross-platform C++17 library for real-time and MIDI file input and output.

This is a fork based on two libraries:

Design

Instead of adding another abstraction layer like ModernMIDI does, this directly modernizes the RtMidi codebase with new C++ features and improvements:

  • The library can be used header-only, as explained in the docs

  • Callbacks are passed by std::function and generally simplified.

  • Ability to use boost::small_vector to pass midi bytes instead of std::vector to reduce allocations.

  • Allow to pass span when available (C++20) or (uint8_t* bytes, std::size_t size) pairs whenever possible to reduce copying.

  • Less indirections, virtuals and memory allocations.

  • Simplify usage of some functions, use C++ return style everywhere.

  • Use of standard C++ snake_case.

  • Simplification of exceptions.

  • Passes clean through clang-tidy, clang analyzer, GCC -Wall -Wextra, ASAN, UBSAN etc etc.

New & improved backends

  • JACK support on Windows.
  • JACK support through weakjack to allow runtime loading of JACK.
  • UWP MIDI support on Windows
  • Emscripten support to run on a web browser with WebMIDI.
  • Raw ALSA support in addition to the existing ALSA sequencer support.

New features & APIs

  • Notification of device connection / disconnection.
  • Support chunking of output data (only supported on raw ALSA backend so far).

Roadmap

  • MIDI 2.0 support.
  • More tests and compliance checks.
  • Work even more towards this library being a zero-cost abstraction on top of native MIDI APIs.
  • Rethink some design issues with the original RtMidi, for instance the way port numbers work is not reliable.
  • Refactor duplicated code across backends.

They use this library

  • ossia.io: libremidi is used for every MIDI operation.

libremidi's People

Contributors

jcelerier avatar cpyarger avatar cacodemon345 avatar curve avatar yurkoy avatar bratner 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.