Giter Site home page Giter Site logo

kelymart / atm-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allthemusicllc/atm-cli

0.0 0.0 0.0 8.74 MB

Command line tool for generating and working with MIDI files.

Home Page: http://allthemusic.info

License: Other

Shell 1.84% Rust 98.16%

atm-cli's Introduction

Tools for Generating and Working with MIDI Files

Overview

atm-cli is a command line tool for generating and working with MIDI files. It was purpose-built for All the Music, LLC to assist in its mission to enable musicians to make all of their music without the fear of frivolous copyright lawsuits. All code is freely available under the Creative Commons Attribution 4.0 International License. If you're looking for a Rust library to generate and work with MIDI files, check out the libatm project, on which this tool relies. For more information on All the Music, check out allthemusic.info. For more detailed information about the code, check out the crate documentation here.

Choice of License

All datasets generated by All the Music, LLC have been released in the public domain, which means they are free for anyone to use for any purpose without restriction under copyright law. However, if we released the code into the public domain under CC0, we would have no control over entities using it with malicious intent. CC BY 4.0 allows us to assert that no one can place additional restrictions on derivative works, while still allowing anyone to:

  • copy and redistribute the code in any medium or format
  • remix, transform, and build upon the code for any purpose, even commercially

Installation

atm-cli is written in Rust, and thus requires the Rust toolchain to compile. Follow the instructions at https://www.rust-lang.org/tools/install to install the toolchain. Once that is complete, clone the repo and compile the tool:

$ git clone https://github.com/allthemusicllc/atm-cli.git
$ cd atm-cli
$ git submodule update --init
$ cargo build --release
$ cargo run --release -- -h # show usage

Getting Started

To generate a single MIDI file from a melody, use the gen single directive:

atm gen single 'C:4,D:4,E:4,F:4,G:4,A:4,B:4,C:5' test.mid

To brute-force generate a range of melodies from a set of notes and with a given length, use one of the gen * directive. The example below will output the melodies to a Gzip-compressed Tar file, with a directory structure that guarantees no more than 4,096 files per directory.

atm gen tar-gz -p 2 'C:4,D:4,E:4,F:4,G:4,A:4,B:4,C:5' 8 C4_D4_E4_F4_G4_A4_B4_C5.tar

After generating a range of melodies with one of the gen * directives (beside gen single), use the partition directive to determine which directory a particular melody was written to.

atm partition -p 2 'C:4,C:4,C:4,C:4,C:4,C:4,C:4,C:5'

You can download existing datasets generated by All the Music, LLC from:

https://archive.org/download/allthemusicllc-datasets

Usage

atm 0.3.0
All The Music, LLC
Tools for generating and working with MIDI files. This app was created as part of an effort to generate by brute-force
billions of melodies, and is tailored for that use case

USAGE:
    atm <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    estimate     Estimate output size of storage backends to help make informed decisions about which to use
    gen          Generate melodies (MIDI files) and store them in a file/files
    help         Prints this message or the help of the given subcommand(s)
    partition    Generate the partition(s) for a MIDI pitch sequence within a partitioning scheme. If no partition
                 depth is provided, will default to a depth of 1

atm-cli's People

Contributors

allthemusicllc 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.