Apres bindings
Python bindings for the Apres MIDI library
Installation
Can be installed through pip
pip install apres
Usage Examples
Load a Song
from apres import MIDI
midi = MIDI("/path/to/file.mid")
Create a new MIDI
from apres import MIDI
midi = MIDI()
Creating a song
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")
Metadata
Release files for apres 0.3.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apres-0.3.23.tar.gz | 2.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apres-0.3.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.2 MB
Release files / apres-0.3.23.tar.gz
| Download URL | apres-0.3.23.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ba3c26ff4b0e660b5934eb80e687fd997f8d25d8e3da2667e7cca5b90dd6ecb
|
|
BLAKE2b-256 checksum How to use checksums |
1c6d49a4729ee0dbf13425de69858ccec84075037fbcc36ccb3e0b3b1c643743
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / apres-0.3.23-py3-none-any.whl
| Download URL | apres-0.3.23-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67fecaa85db1d723fb6e7a740ad7b6aaa097654a9f5470bef75273f4353dac25
|
|
BLAKE2b-256 checksum How to use checksums |
5d4324a3833d3bf67f75789388349e9619db13d465bea2419dac1212da9e68e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|