Skip to content
altstrument

ptn2midi

Tool for SP-404 / SP-404SX / SP-404A (Roland)

Python script that exports a pattern from an SP-404SX SD card as a MIDI file plus a SoundFont built from the samples the pattern uses. Warning: the repository bundles an SD card image with Roland's factory samples.

by Tyler Oderkirk

DormantSource: openBSD-2-Clause
Top view of the Roland SP-404SX sampler (the SX model from the SP-404 line): grey metal case with four knobs, a red three-digit display, effect and sampling buttons and twelve rubber pads
Photo: Roland, manufacturer product image, via roland.com
Distribution
Build from source yourself
Requires stock
SP-404SX
License notes
Covers the repository's LICENSE file. The bundled pysf.py is a SoundFont helper; its opening lines carry no separate license header.
Source
github.com https://github.com/TylerOderkirk/ptn2midi
Homepage
tyleroderkirk.github.io http://tyleroderkirk.github.io/ptn2midi/

Description

Rights warning: the repository includes a 25 MB zipped SD card image that the author made from a card holding Roland's factory samples; it is not covered by the code's license. Given the SD card's root folder, a pattern name such as A1 and a tempo, ptn2midi parses the card's PAD_INFO.BIN and the pattern file, writes a MIDI file with one pitch per sample, and builds a SoundFont containing the trimmed samples so the pattern can be rebuilt in a DAW. The author's write-up lists limits such as a maximum of 12 samples per pattern and mono samples only.

Install notes

Run ptn2midi.py with the SD card path, the pattern name and the tempo. Needs pygame and midiutil; the script is an older Python script and may need small changes on current Python versions. It only reads the card.

Version history

ptn2midi version history
VersionDateNotes
master @ 1958f6c2014-07-03
No tagged releases; this is the latest commit.

Back to SP-404 / SP-404SX / SP-404A