External bindings for apres MIDI library
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for apres-0.2.19-py3-none-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4d2f8267c90cd8f15360cc9c016b60e17fc8609df4c20e043f22414165871c |
|
MD5 | 687d73bb317fbd43c7ce11d272945811 |
|
BLAKE2b-256 | a800fb3a42122bf5e98f05ab776930964efca12266fe85a84c416d11334b4b68 |
Close
Hashes for apres-0.2.19-py3-none-manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0b9c88f2218d6734d05c2031a7278372005411c985d5eee6d88aae23ae784a |
|
MD5 | 887193b1f9b8693a79906bba1f75b7c0 |
|
BLAKE2b-256 | 80c156001c41115d0d63eed192bcfea48d735a8b84eb5f0a8401c8836ba988f6 |