Skip to content

Commit

Permalink
Add some descriptions for npz-to-MIDI conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
salu133445 authored Jul 30, 2019
1 parent 0b74b4e commit bdc1131
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ You can disable saving in a specific format by setting `save_array_samples`,
`save_image_samples` and `save_pianoroll_samples` to `False` in the
configuration file.

The generated pianorolls are stored in .npz format to save space and processing
time. You can use the following code to write them into MIDI files.

```python
from pypianoroll import Multitrack
m = Multitrack('./test.npz')
m.write('./test.mid')
```

## Sample Results

Some sample results can be found in `./exp/` directory. More samples can be
Expand Down

0 comments on commit bdc1131

Please sign in to comment.