Skip to content
A small MIDI visualizer tool, using OpenGL
Branch: master
Clone or download
Pull request Compare This branch is 60 commits behind kosua20:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ressources
src
.gitignore
MIDIVisualizer.sln
MIDIVisualizer.vcxproj
MIDIVisualizer.vcxproj.filters
Makefile
Makefile.linux
README.md
help.png
result1.png
result2.png
result3.png

README.md

MIDI Visualizer

A small MIDI visualizer, written in C++/OpenGL.

Result image

Usage

On both platforms, you can now run the application by simply double-clicking on it. You will then be able to select a MIDI file to load. A Settings panel now allows you to modify display parameters such as color, scale, lines,...

Press p to play/pause the track, r to restart at the beginning of the track, and i to show/hide the Settings panel.

Development

The main development steps were:

  • loading a MIDI file, and parsing the notes contained,
  • displaying a scrolling score with these notes,
  • adding visual effects to embellish the visualization.

More details on my blog.

Result image

Result image

Command-line use

macOS

You can run the executable from the command-line, specifying a MIDI file to read, along with optional settings such as the scale and color of the notes (by setting the red, green and blue components as numbers between 0.0 and 1.0).

./MIDIVisualizer path/to/file.mid [scale] [red green blue]

If no arguments is specified (for instance by double-clicking on the executable instead of using the command-line), the executable will try to load the song.mid file from the directory where it resides.

Windows

You can run the executable from the command-line, specifying a MIDI file to read, along with optional settings such as the scale and color of the notes (by setting the red, green and blue components as numbers between 0.0 and 1.0).

MIDIVisualizer.exe path\to\file.mid [scale] [red green blue]

If you're not familiar with command-line, you can create a shortcut to the executable and specify the arguments in its properties. Right-click on the shortcut icon, select Properties, then the Shortcut tab, and append the arguments in the Target field.

Instructions for Windows

If no arguments is specified (for instance by double-clicking on the executable instead of using the command-line or the shortcut method), the executable will try to load the song.mid file from the directory where it resides.

You can’t perform that action at this time.