1. NodeBox 3
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Download
  4. Documentation
  5. Forum
  6. Blog

Import MIDI files into NodeBox 3

12 Nov 2012

For a recent data visualisation workshop in The Hague, we needed a way to import MIDI files into NodeBox 3.

MIDI has some “interesting” properties: each note is stored as two separate “on” and “off” events that need to be matched up to find the duration. Getting this right is non-trivial; that’s why this work might be interesting to other people as well.

MIDI data comes into NodeBox as a standard table (similar to CSV data), and individual columns can be selected using the lookup node.

Download the script.