You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jordan Orelli c67ef29f20 add themidibus library 4 years ago
..
bin/themidibus add themidibus library 4 years ago
examples add themidibus library 4 years ago
library add themidibus library 4 years ago
reference add themidibus library 4 years ago
src/themidibus add themidibus library 4 years ago
CHANGELOG.txt add themidibus library 4 years ago
GNUGeneralPublicLicense.txt add themidibus library 4 years ago
INSTALL.txt add themidibus library 4 years ago
README.md add themidibus library 4 years ago
build.xml add themidibus library 4 years ago
library.properties add themidibus library 4 years ago

README.md

The MidiBus

The MidiBus is a MIDI library for Processing. It provides a quick and simple way to access and interact with installed MIDI system resources. The MidiBus is aimed primarily at real time MIDI applications. The focus is on strong MIDI I/O capabilities and keeping frills to a minimum (e.g. no built in sequencer, file read/write, MIDI recording/playback).

Download and Install (Stable)

The recommended way to install the MidiBus is the Processing Library Manager. This way Processing will automatically notify you when a new version is available.

If you wish to install the MidiBus manually you can get the latest stable build including binaries and docs via direct downloadd.

Download and Install (Latest)

The latest version can easily be cloned directly from github via

git clone https://github.com/sparks/themidibus.git /your/processing/libraries/

Compiling and Generating JavaDocs

If you clone the latest version you will need to compile the library and generate the JavaDocs. This requires javac and ant.

To compile run ant

To generate the JavaDocs run ant doc

About

Before you get started, it is important to understand that the MidiBus offers little functionality that isn't available from Java's native javax.sound.midi package. Anyone interested in working with MIDI in Java should take the time to read the documentation for the javax.sound.midi package. It offers a more full featured and flexible alternative to this package, although it does do so at the cost of added complexity. In addition, it may be worthwhile to skim the "official" Java Tutorial for the javax.sound.* packages.

Getting Started

The MidiBus is very straight forwards to use. A good place to start is the included Basic.pde example. From there you can look at the JavaDocs either online or bundled with your library in the "reference" subdirectory. The JavaDocs are a comprehensive reference of all the MidiBus' available functionality. There are also a few advanced examples which can (hopefully) help answer the most common questions: how to work with multiple input/output devices, how to send uncommon MIDI messages and how to receive uncommon MIDI messages.

Using Alternate MIDI Subsytem

The Apple MIDI subsystem has a number of problems. Most notably it doesn't seem to support MIDI messages with status >= 0xF0 such as SysEx messages. You can use MMJ as an alternate subsystem. To do so, download mmj and add both mmj.jar and libmmj.jnilib to the midibus library subdirectory. You must also disable timestamps in your MidiBus instance otherwise MMJ won't work properly. You can do so by calling mybus.sendTimestamp(false)

Liscence

GPL3