KDMAPI (Keppy's Direct MIDI API) wrapper for Python
Project description
kdmapi
KDMAPI (Keppy's Direct MIDI API) wrapper for Python
kdmapi provides both C bindings for OmniMIDI.dll and a Python-friendly wrapper for them
A Mido backend is also provided, instructions on how to use it are below
Requires Python 3.8 or greater
Installation
pip3 install kdmapi
You will also need to have OmniMIDI installed
Instructions
from kdmapi import KDMAPI
# Initialize the device
KDMAPI.InitializeKDMAPIStream()
# Send a short 32-bit MIDI message data
KDMAPI.SendDirectData(0x0)
# Close the device
KDMAPI.TerminateKDMAPIStream()
Mido backend
You can use KDMAPI as a Mido output backend
import mido
# Set KDMAPI as MIDO backend
mido.set_backend("kdmapi.mido_backend")
# Open MIDI file
midi_file = mido.MidiFile("your_file.mid")
with mido.open_output() as out:
for msg in midi_file.play():
out.send(msg)
License
#
# Copyright (C) 2022 Sebastiano Barezzi
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kdmapi-1.0.2.tar.gz.
File metadata
- Download URL: kdmapi-1.0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.13.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
903bd4e4a64f90162a6011747b9415c3e11b1eedf7a1c1bee72c8fe51470ce7b
|
|
| MD5 |
486233b3915593a7d786b4ccf309b8d6
|
|
| BLAKE2b-256 |
91abe1c4b016bea66e8dde3112325fe6fc949ebcc01f4f40a8ce04b066e86555
|
File details
Details for the file kdmapi-1.0.2-py3-none-any.whl.
File metadata
- Download URL: kdmapi-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.13.0-48-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
020ab4ef4c68967fbc50d3ba6196a43154e440daeca0b40b7dd4f068aa5cdc3d
|
|
| MD5 |
b937a555b1fa79ff23d05fd56604dfa7
|
|
| BLAKE2b-256 |
1bca5811308abf96ff1dbf788deaf440d9deae04b7ca831d089a936a5e0bd429
|