Skip to main content

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")

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)

Source distribution for apres 0.3.23
File Size Uploaded
apres-0.3.23.tar.gz 2.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for apres 0.3.23
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.23 This release

2 release files

0.3.22

2 release files

0.3.21

1 release file

0.3.20

1 release file

0.3.19

1 release file

0.3.18

1 release file

0.3.17

1 release file

0.3.16

1 release file

0.3.15

1 release file

0.3.14

1 release file

0.3.13

1 release file

0.3.12

1 release file

0.3.11

1 release file

0.3.10

1 release file

0.3.9

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.27

1 release file

0.2.26

1 release file

0.2.25

1 release file

0.2.24

1 release file

0.2.23

1 release file

0.2.22

1 release file

0.2.21

1 release file

0.2.20

1 release file

0.2.19

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page