Name | midi-point-set JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | Convert MIDI files to point set representation. |
upload_time | 2023-04-08 22:51:28 |
maintainer | |
docs_url | None |
author | Leo |
requires_python | >=3.8,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# MIDI to Point Set Converter
This Python library converts MIDI files to point set representation, which
encodes notes as pairs of integers encoding the pitch and time. The output can
be used for machine learning tasks such as music generation.
## Requirements
- Python 3.7 or higher
## Installation
```sh
pip install midi_point_set
```
## Usage
### CLI
```sh
# JSON output
python -m midi-point-set --input-midi K545-1.mid --output-json mozart.json
# Plot
# (requires matplotlib installed)
python -m midi-point-set --input-midi K545-1.mid --output-plot mozart.svg
```
### Library
```py
from midi_point_set import get_point_set
point_set = get_point_set("mozart.midi")
print(point_set[:5])
```
Raw data
{
"_id": null,
"home_page": "",
"name": "midi-point-set",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Leo",
"author_email": "leohdz.c0@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/5d/9c/75ba3958e1e59c034c4ce64943068c944ddd460ae445752dcba0d9094d64/midi-point-set-0.1.0.tar.gz",
"platform": null,
"description": "# MIDI to Point Set Converter\n\nThis Python library converts MIDI files to point set representation, which\nencodes notes as pairs of integers encoding the pitch and time. The output can\nbe used for machine learning tasks such as music generation.\n\n## Requirements\n\n- Python 3.7 or higher\n\n## Installation\n\n```sh\npip install midi_point_set\n```\n\n## Usage\n\n### CLI\n\n```sh\n# JSON output\n\npython -m midi-point-set --input-midi K545-1.mid --output-json mozart.json\n\n# Plot\n# (requires matplotlib installed)\npython -m midi-point-set --input-midi K545-1.mid --output-plot mozart.svg\n```\n\n### Library\n\n```py\nfrom midi_point_set import get_point_set\n\npoint_set = get_point_set(\"mozart.midi\")\nprint(point_set[:5])\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Convert MIDI files to point set representation.",
"version": "0.1.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "08c67ce1de76b6c0d07123ff82d4e3fd7fd449d8dbdaad850fd04a1a83902907",
"md5": "09cf2aa12aa9b8fedcbb9bd2577748f3",
"sha256": "6c5a304315b8999c0b71ea17c7c58a0f2e71f86b67a847b54cb158223a393612"
},
"downloads": -1,
"filename": "midi_point_set-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "09cf2aa12aa9b8fedcbb9bd2577748f3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 3919,
"upload_time": "2023-04-08T22:51:31",
"upload_time_iso_8601": "2023-04-08T22:51:31.303484Z",
"url": "https://files.pythonhosted.org/packages/08/c6/7ce1de76b6c0d07123ff82d4e3fd7fd449d8dbdaad850fd04a1a83902907/midi_point_set-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5d9c75ba3958e1e59c034c4ce64943068c944ddd460ae445752dcba0d9094d64",
"md5": "b94248f29a0594dd6880578702f3b70f",
"sha256": "04631f8d64d76fbc99d270fec17b32b660a971bb18276ca5db71b360c99756ff"
},
"downloads": -1,
"filename": "midi-point-set-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "b94248f29a0594dd6880578702f3b70f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 3240,
"upload_time": "2023-04-08T22:51:28",
"upload_time_iso_8601": "2023-04-08T22:51:28.869540Z",
"url": "https://files.pythonhosted.org/packages/5d/9c/75ba3958e1e59c034c4ce64943068c944ddd460ae445752dcba0d9094d64/midi-point-set-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-08 22:51:28",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "midi-point-set"
}