Generate MIDI file from Array of Array data.
Project description
This package generates a PrettyMIDI object from Array of Array. Here is a sample code.
import mdpw a = ['s',['n',64,1,64,1],['n',68,1,64,1],['n',71,1,64,1], ['c',['n',64,1,64,1],['n',68,1,64,1],['n',71,1,64,1]]] mdpw.compile(a, 120).write("hello.mid")
‘n’ means a note and followed values are pitch, duration, velocity and instrument. The instrument 129 means Drum. ‘s’ means to play sequentially and ‘c’ means to play simultaneously.
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
mdpw-0.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
mdpw-0.0.2-py3-none-any.whl
(2.6 kB
view hashes)