apres


Nameapres JSON
Version 0.3.23 PyPI version JSON
download
home_pagehttps://burnsomni.net/git/apres
SummaryExternal bindings for apres MIDI library
upload_time2024-12-22 04:42:18
maintainerNone
docs_urlNone
authorQuintin Smith
requires_python>=3.7
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Apres bindings
Python bindings for the Apres MIDI library<br/>
[![PyPI - Downloads](https://img.shields.io/pypi/dw/apres?style=flat-square)](https://pypi.org/project/apres/)
[![PyPI](https://img.shields.io/pypi/v/apres?style=flat-square)](https://pypi.org/project/apres/)
[![License](https://img.shields.io/pypi/l/apres?style=flat-square)](https://burnsomni.net/project/apres_bindings/?branch=master&path=LICENSE)

## Installation
Can be installed through pip
```
pip install apres
```
## Usage Examples
Load a Song
```python
from apres import MIDI
midi = MIDI("/path/to/file.mid")
```

Create a new MIDI
```python
from apres import MIDI
midi = MIDI()
```

Creating a song
```python
from apres import MIDI, NoteOnEvent, NoteOffEvent

# Create an empty MIDI file.
midi = MIDI()

# Press midi note 64 (Middle E) on the first track (0) at the first position (0 ticks)
midi.add_event(NoteOnEvent(channel=0, note=64, velocity=100), tick=0, track=0)

# Release midi note 64 (Middle E) on the first track (0) one beat later (120 ticks)
midi.add_event(NoteOffEvent(channel=0, note=64), wait=120, track=0)

# Save it to a file
midi.save("beep.mid")
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://burnsomni.net/git/apres",
    "name": "apres",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Quintin Smith",
    "author_email": "smith.quintin@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1c/6d/49a4729ee0dbf13425de69858ccec84075037fbcc36ccb3e0b3b1c643743/apres-0.3.23.tar.gz",
    "platform": null,
    "description": "# Apres bindings\nPython bindings for the Apres MIDI library<br/>\n[![PyPI - Downloads](https://img.shields.io/pypi/dw/apres?style=flat-square)](https://pypi.org/project/apres/)\n[![PyPI](https://img.shields.io/pypi/v/apres?style=flat-square)](https://pypi.org/project/apres/)\n[![License](https://img.shields.io/pypi/l/apres?style=flat-square)](https://burnsomni.net/project/apres_bindings/?branch=master&path=LICENSE)\n\n## Installation\nCan be installed through pip\n```\npip install apres\n```\n## Usage Examples\nLoad a Song\n```python\nfrom apres import MIDI\nmidi = MIDI(\"/path/to/file.mid\")\n```\n\nCreate a new MIDI\n```python\nfrom apres import MIDI\nmidi = MIDI()\n```\n\nCreating a song\n```python\nfrom apres import MIDI, NoteOnEvent, NoteOffEvent\n\n# Create an empty MIDI file.\nmidi = MIDI()\n\n# Press midi note 64 (Middle E) on the first track (0) at the first position (0 ticks)\nmidi.add_event(NoteOnEvent(channel=0, note=64, velocity=100), tick=0, track=0)\n\n# Release midi note 64 (Middle E) on the first track (0) one beat later (120 ticks)\nmidi.add_event(NoteOffEvent(channel=0, note=64), wait=120, track=0)\n\n# Save it to a file\nmidi.save(\"beep.mid\")\n```\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "External bindings for apres MIDI library",
    "version": "0.3.23",
    "project_urls": {
        "Homepage": "https://burnsomni.net/git/apres"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d4324a3833d3bf67f75789388349e9619db13d465bea2419dac1212da9e68e1",
                "md5": "6ca4b9c13a9538889d5e3c8db26d5c9d",
                "sha256": "67fecaa85db1d723fb6e7a740ad7b6aaa097654a9f5470bef75273f4353dac25"
            },
            "downloads": -1,
            "filename": "apres-0.3.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6ca4b9c13a9538889d5e3c8db26d5c9d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2087170,
            "upload_time": "2024-12-22T04:42:10",
            "upload_time_iso_8601": "2024-12-22T04:42:10.124359Z",
            "url": "https://files.pythonhosted.org/packages/5d/43/24a3833d3bf67f75789388349e9619db13d465bea2419dac1212da9e68e1/apres-0.3.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c6d49a4729ee0dbf13425de69858ccec84075037fbcc36ccb3e0b3b1c643743",
                "md5": "c08bbad51ac94c67641332aeac898945",
                "sha256": "2ba3c26ff4b0e660b5934eb80e687fd997f8d25d8e3da2667e7cca5b90dd6ecb"
            },
            "downloads": -1,
            "filename": "apres-0.3.23.tar.gz",
            "has_sig": false,
            "md5_digest": "c08bbad51ac94c67641332aeac898945",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2067746,
            "upload_time": "2024-12-22T04:42:18",
            "upload_time_iso_8601": "2024-12-22T04:42:18.759009Z",
            "url": "https://files.pythonhosted.org/packages/1c/6d/49a4729ee0dbf13425de69858ccec84075037fbcc36ccb3e0b3b1c643743/apres-0.3.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 04:42:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "apres"
}
        
Elapsed time: 0.41905s