{"id":26157126,"url":"https://github.com/kosua20/midivisualizer","last_synced_at":"2025-05-16T07:04:27.133Z","repository":{"id":15094880,"uuid":"77550611","full_name":"kosua20/MIDIVisualizer","owner":"kosua20","description":"A small MIDI visualizer tool, using OpenGL","archived":false,"fork":false,"pushed_at":"2024-01-13T14:49:14.000Z","size":14296,"stargazers_count":1117,"open_issues_count":30,"forks_count":146,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-09T04:01:46.201Z","etag":null,"topics":["graphics","midi","midi-visualizer","opengl","visualization"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kosua20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-28T17:44:06.000Z","updated_at":"2025-04-02T23:26:45.000Z","dependencies_parsed_at":"2024-09-26T01:54:47.330Z","dependency_job_id":"d88d7d49-4ba0-4833-82f2-e5918cd998c2","html_url":"https://github.com/kosua20/MIDIVisualizer","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosua20%2FMIDIVisualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosua20%2FMIDIVisualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosua20%2FMIDIVisualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kosua20%2FMIDIVisualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kosua20","download_url":"https://codeload.github.com/kosua20/MIDIVisualizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485054,"owners_count":22078767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphics","midi","midi-visualizer","opengl","visualization"],"created_at":"2025-03-11T09:55:16.656Z","updated_at":"2025-05-16T07:04:23.104Z","avatar_url":"https://github.com/kosua20.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MIDI Visualizer\n\n![CI](https://github.com/kosua20/MIDIVisualizer/workflows/CI/badge.svg?branch=master)\n\nA small MIDI visualizer, written in C++/OpenGL.\nBinaries for Windows, macOS and Ubuntu (experimental) are available in the [Releases tab](https://github.com/kosua20/MIDIVisualizer/releases).\nSee the [troubleshooting section](#troubleshooting) if you encounter any issue.\n\n![Result image](result1.png)  \n\n## Usage\n\nOn Windows and macOS 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 allows you to modify display parameters such as color, scale, lines,... Images and videos of the track can be exported. Note that MIDIVisualizer is currently not able to *play* soundtracks, only *display* them.\n\nPress `p` to play/pause the track, `r` to restart at the beginning of the track, and `i` to show/hide the *Settings* panel. \n\n![Result image](result2.png) \n\n## Command-line use\n\nYou can also run the executable from the command-line, specifying a midi file and display options. You can also trigger a video export directly from the command line. For instance:\n\t\n\t./MIDIVisualizer --midi path/to/file.mid --size 1920 1080 --config my/config.ini --export video.mp4  --format MPEG4\n\t\n### General options\n\n\t--midi                             path to a MIDI file to load\n\t--device                           name of a MIDI device to start a live session to (or VIRTUAL to act as a virtual device)\n\t--config                           path to a configuration INI file\n\t--size                             dimensions of the window (--size W H)\n\t--position                         position of the window (--position X Y)\n\t--fullscreen                       start in fullscreen (1 or 0 to enable/disable)\n\t--gui-size                         GUI text and button scaling (number, default 1.0)\n\t--transparency                     enable transparent window background if supported (1 or 0 to enable/disable)\n\t--forbid-transparency              prevent transparent window background(1 or 0 to enable/disable)\n\t--help                             display a detailed help of all options\n\t--version                          display the current version and build information\n\n### Export options\nIf you want to directly export a video/images, `--export ...` is mandatory. You can completely hide the application window using `--hide-window`.\n\n\t--export                           path to the output video (or directory for PNG)\n\t--format                           output format (values: PNG, MPEG2, MPEG4, PRORES)\n\t--framerate                        number of frames per second to export (integer)\n\t--bitrate                          target video bitrate in Mb (integer)\n\t--postroll                         Postroll time after the track, in seconds (number, default 10.0)\n\t--out-alpha                        use transparent output background, only for PNG and PRORES (1 or 0 to enable/disable)\n\t--fix-premultiply                  cancel alpha premultiplication, only when out-alpha is enabled (1 or 0 to enable/disable)\n\t--hide-window                      do not display the window (1 or 0 to enable/disable)\n\n### Configuration options\nIf display options are given, they will override those specified in the configuration file. Almost every option available in the GUI can be specified on the command line, refer to the detailed help for a complete list (`./MIDIVisualizer --help`). Options include:\n\n\t--color-bg          Background color (R G B in [0.0, 1.0])\n\t--flashes-size      Flash effect size (number in [0.100000,3.000000])\n\t--particles-count   Particles count (integer in [1,512])\n\t--preroll           Preroll time in seconds before starting to play (number)\n\t--quality           Rendering quality (values: LOW_RES, LOW, MEDIUM, HIGH, HIGH_RES)\t--show-keyboard     Should the keyboard be shown (1 or 0 to enable/disable)\n\t...\n\n![Result image](result3.png) \n\n## Troubleshooting\n\nPlease note that MIDIVisualizer requires OpenGL 3.2 or higher on all platforms.\n\n- *MIDIVisualizer is not playing any sound.*  \nMIDIVisualizer is only a MIDI viewer, and does not currently support audio playback.\n\n- *I have encountered an issue while using MIDIVisualizer.*  \nYou can open an issue ticket [here](https://github.com/kosua20/MIDIVisualizer/issues/new?assignees=\u0026labels=bug\u0026template=issue-report.md\u0026title=). Please also check the issue [page](https://github.com/kosua20/MIDIVisualizer/issues), as some other people might have encountered a similar issue or offer help to your questions.\n\n### Windows\n\n- *I can't open the application as it is blocked by Safeguard.*  \nMIDIVisualizer is not generated with a Microsoft developer certificate, thus the warning. You can still run the application by allowing it in the Safeguard message panel.\n\n- *I get an error message about a missing `vcruntime140_1.dll`.*  \nThis is a Windows component (part of the *Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019*) that is often updated, you should try installing the latest version from the [Microsoft support website](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) (`vc_redistx64`).\n\n### macOS\n\n- *I can't open the application as it is considered unsafe.*  \nMIDIVisualizer is not generated with an Apple developer certificate, thus the warning. You can still run the application by doing a right-click on it and selecting 'Open', this will mark the application as 'authorized' for future use.\n\n### Ubuntu\n\n- *I can't run MIDIVisualizer by double-clicking it in the file manager.*  \nThis seems to be a limitation of the Nautilus file manager, you can either double-click the companion script, or create and register a .desktop file.\n\n## Compilation\n\nThe project is configured using Cmake. You can use the Cmake GUI ('source directory' is the root of this project, 'build directory' is build/, press 'Configure' then 'Generate', selecting the proper generator for your target platform and IDE); or the command line version, specifying your target generator.\n    \nDepending 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 `MIDIVisualizer`sub-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. \n\n### Dependencies\n\nMIDIVisualizer depends on the [GLFW3 library](http://www.glfw.org), the [sr_gui library](https://github.com/kosua20/sr_gui) and [RtMidi17](https://github.com/jcelerier/RtMidi17/), all included in the repository and built along with the main executable. It also optionally relies on [FFMPEG](https://ffmpeg.org) v4.2 for video export. For licensing reasons only MPEG-2 and MPEG-4 exports are supported for now in the release builds.\n\nOn macOS and Windows, no additional dependencies are required. On Linux, you will need to have the following packages installed: `xorg-dev libgtk-3-dev libnotify libasound2-dev`, and if you plan on using FFMPEG, `ffmpeg libavcodec-dev libavformat-dev libavdevice-dev`.\n\n\n## Development\n\nThe main development steps were:\n\n- loading a MIDI file, and parsing the notes contained,\n- displaying a scrolling score with these notes,\n- adding visual effects to embellish the visualization,\n- maintaining the application and listening to user requests :)\n\nMore details on the initial project [on my blog](http://blog.simonrodriguez.fr/articles/28-12-2016_midi_visualization_a_case_study.html).\n\n\n \n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosua20%2Fmidivisualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosua20%2Fmidivisualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosua20%2Fmidivisualizer/lists"}