Skip to main content

Generate MIDI file from Array of Array data.

Project description

This package is a generator for MIDI file 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


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 Distribution

mdpw-0.0.1-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

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