Skip to content

DominikKrajcer/MIDIVisualizer

 
 

Repository files navigation

MIDI Visualizer

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

Result image

Usage

On all 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,... Note that MIDIVisualizer is currently not able to play soundtracks, only display them.

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

Binaries for macOS and Windows are available in the Releases tab.

Compilation

The project is configured using Cmake.

mkdir build && cd build
cmake ..

Depending on the target you chose in Cmake, you will get either a Visual Studio solution, an Xcode workspace or a set of Makefiles. You can build the main executable using the MIDIVisualizersub-project/target. If you update the images or shaders in the resources directory, you will have to repackage them with the executable, by building the Packaging sub-project/target. MIDIVisualizer depends on the GLFW3 library and the Native File Dialog library, both are included in the repository and built along with the main executable.

Command-line use

macOS and Linux

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]

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]

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

About

A small MIDI visualizer tool, using OpenGL

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 53.5%
  • C 44.1%
  • Objective-C 1.8%
  • CMake 0.4%
  • GLSL 0.1%
  • CSS 0.1%