Project

portmidi

0.01
No commit activity in last 3 years
No release in over 3 years
An ffi wrapper around the cross platform midi library portmidi, part of the portmedia framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Portmidi-Mapper¶ ↑

This is a small, incomplete wrapper around the portmidi c library.

It is the successor of my portmidi-ruby project which used ordinary ruby extensions which are a pain to write.

Requirements¶ ↑

  • portmidi (who woulda thought) built as a dynamic library. See below for special notes for Mac OS X Snow Leopard

  • ffi (which in turn needs a sane build env to be installed)

What’s missing?¶ ↑

The most important: Tests. I’m still pondering on how to test a library that has hardware requirements and dependencies (= MIDI hardware). So I guess it means I will mock away the portmidi layer to test my abstractions and add some optional integration test that will require a MIDI loopback configuration.

Implementation wise, there’s a few things missing:

  • Setting Channel- and Message filters

  • More different exceptions, plus support for Host Errors

  • A lot of safety nets like testing for open devices before reading and writing and such.

Credits¶ ↑

The portmidi wrapper was thrown together by Jan Krutisch <jan@krutisch.de>

Installing Portmidi¶ ↑