Code Monkey home page Code Monkey logo

pianoroll-generator's Introduction

pianoroll-generator

Pianoroll-generator A package to generate pianoroll (NPZ) datasets

Getting Started


  1. Building from the source

    • First clone the repository to your local directory with git

    • Open your local Terminal/Command Shell and run the following commands:

      cd pianoroll-generator # change directory to the cloned repository
      #use any of the following some will work dependent on your operating system
      #try
      python3 setup.py develop # works on both osx and linux
      #or
      pip install . 

    Usage

    • TO GENERATE A DENSE NPZ DATASET, first Download some midi files and place them in the midis directory

    Note the midis is an arbitrary dir, it can be named A anything

    • On either your python terminal or idle shell run the following codes:
    1. To create a list of files with common tracks

      python inference.py -t 'Your specified number of tracks'

      The default mode is processing the list of midi files

    2. To now generate the dense dataset run the following code set the inference mode to parsing

       python inference.py --mode 'parse' 
    3. Run help:

      python inference.py --help

      returns:

      usage: inference.py [-h] [-i FILEPATH] [-t TRACKS] [-o OUTPUT] [--mode MODE]
      options:
       -h, --help            show this help message and exit
       -i FILEPATH, --filepath FILEPATH
                             Path to your midi files.
       -t TRACKS, --tracks TRACKS
                             Number of tracks.
       -o OUTPUT, --output OUTPUT
                             output fname of your pianoroll.
       --mode MODE           mode processing or parsing.

TODO

  1. command line arguments with user defined inputs
  2. Add support for own track checking from list of midis
  3. PYPI (cancelled)

pianoroll-generator's People

Contributors

cliffordkleinsr avatar

Stargazers

 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.