Tutorial

This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

MIDI File Player - Load and play a MIDI file immediatly Reload page to restart example
In this tutorial we show how to play back a MIDI File using SoundCipher. Be aware that MIDI file plaback works in Processing applications and in the PDE but does not currently work when sketches are exported as Java applets (this tutorial page is actually playing back a rended audio version of the MIDI file).



The first and second lines setup Processing to use SoundCipher.

The third line instructs SoundCipher to load and play the MIDI file "minimalsim.mid" at a tempo of 220 beats per minute.

It is assumed that the file is in the 'data' folder of the Processing sketch. You can access a MIDI file elsewhere by providing the absolute path for the file as an argument.