Skip to main content

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)

MIT License

Copyright (c) 2023 Cliff Njoroge

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pianogen 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pianogen 0.0.6
File Size Uploaded Provenance Actions
pianogen-0.0.6.tar.gz 4.9 kB Without provenance Details for pianogen-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pianogen 0.0.6
File Interpreter ABI Platform Actions
pianogen-0.0.6-py3-none-any.whl Python 3 none any Details for pianogen-0.0.6-py3-none-any.whl

Total release size: 11.9 kB

Release files / pianogen-0.0.6.tar.gz

Download URL pianogen-0.0.6.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
88f12252fc01c20972da07c926da596e30396a1aca3c0d73df54af6a0eb2669e
BLAKE2b-256 checksum
How to use checksums
5acfdcc5bb852706e2a957e50363c820d6458bdbd32caf14bfd110233d7afa43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / pianogen-0.0.6-py3-none-any.whl

Download URL pianogen-0.0.6-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae5cd50ca5380bbc156f4d3061a4b4c5b2597965ddb073c15a6aa9fa785f2898
BLAKE2b-256 checksum
How to use checksums
d559e8eb1474ce2de69fb023367129dcebe53d229f20e7f77d49aa63132f0577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Security for pianogen 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page