Coder Social home page Coder Social logo

danfengzi / midivisualizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kosua20/midivisualizer

0.0 1.0 0.0 8.03 MB

A small MIDI visualizer tool, using OpenGL

License: MIT License

C++ 53.53% C 44.06% Objective-C 1.75% GLSL 0.14% CMake 0.39% CSS 0.09% HTML 0.01% JavaScript 0.02%

midivisualizer's Introduction

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

midivisualizer's People

Contributors

kosua20 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.