semvec/pypi-packages huggingface dataset:
RagtimeNN 1.0.0
A Python Neural Network library for generating piano music (preferably Ragtime 🔥). Made for the TechWithTim Code Jam before I got banned from their Discord server
License: MIT
Requires Python: >=3.5

# RagtimeNN

A Python Neural Network library for generating piano music (preferably Ragtime 🔥). Made for the TechWithTim Code Jam before I got banned from their Discord server

## Installation 

Currently there is only one method of installation, which is building from source

### Building from source

- Clone this repository

- Run `python setup.py bdist_wheel` or `python setup.py bdist` to get a wheel or distribution

- Copy the contents of the wheel or distro in your local Python sitepackages folder

## Usage

To use this package, you can simply import it by `import ragtimenn`

To build a MIDIDataset from a file you can execute the following code

```py
import ragtimenn

ragtimenn_dataset = ragtimenn.dataset.midi_dataset_from_file("./path/to/midi/file")
```

To build a model from a MIDIDataset

```py
import ragtimenn

ragtimenn_model = ragtimenn.model.model_from_midi_dataset(MIDIDataset)
```

Training is as simple as 

```py
ragtimenn_model.train()
```

If you want to generate an output, you can execute the following

```py
ragtimenn_model.generate_output()
```

and it will generate a MIDI file from training!

## License

```
MIT License

Copyright (c) 2020 NomadicCode

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