Giter Site home page Giter Site logo

batch-midi-information's Introduction

Batch MIDI Information

A tool to get quick MIDI information about a bunch of MIDI files, and save it to a JSON file.

Purpose

This was created for getting the info from all of my MIDIs into a single file for my website. My website works off an object which follows a similar structure to the structure in the midis folder.

The program looks for all .mid files in the midis folder, and parses through all of them. It calculates:

  • File Size
  • Track Count
  • PPQN
  • Note Count

and saves it into a JSON file with the following structure:

{
    "midiName": {
        "versionName": {
            "FileSize": string,
            "Tracks": int,
            "PPQN": int,
            "Notes": int
        },
        [...]
    }
    [...]
}

Usage

To use this project, follow the steps below

  1. Clone the repo
  2. Install Go
  3. Put your MIDIs in the "midis" folder. Note: Use the structure prescribed in the README there.
  4. Execute go run . to run the program
  5. The info will be spit out as "midi_info.json" in the root directory.

Caveats

The code currently does not read note count accurately. I am working to solve this issue and get a more reliable note count but it may take me some time. If you are someone who has experience with note counts and want to help out, please make a pull request!

batch-midi-information's People

Contributors

6gh avatar

Watchers

 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.