Skip to main content

External bindings for apres MIDI library

Project description

Apres bindings

Python bindings for the Apres MIDI library
PyPI - Downloads PyPI License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apres-0.3.23.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

apres-0.3.23-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file apres-0.3.23.tar.gz.

File metadata

  • Download URL: apres-0.3.23.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for apres-0.3.23.tar.gz
Algorithm Hash digest
SHA256 2ba3c26ff4b0e660b5934eb80e687fd997f8d25d8e3da2667e7cca5b90dd6ecb
MD5 c08bbad51ac94c67641332aeac898945
BLAKE2b-256 1c6d49a4729ee0dbf13425de69858ccec84075037fbcc36ccb3e0b3b1c643743

See more details on using hashes here.

File details

Details for the file apres-0.3.23-py3-none-any.whl.

File metadata

  • Download URL: apres-0.3.23-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for apres-0.3.23-py3-none-any.whl
Algorithm Hash digest
SHA256 67fecaa85db1d723fb6e7a740ad7b6aaa097654a9f5470bef75273f4353dac25
MD5 6ca4b9c13a9538889d5e3c8db26d5c9d
BLAKE2b-256 5d4324a3833d3bf67f75789388349e9619db13d465bea2419dac1212da9e68e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page