The midi-music-box package

[Tags:bsd3, program]

Convert MIDI file to music box punch tape for this kind of music box:

Run it like so:

 midi-music-box song.mid

song.mid is the input file that must be a MIDI file. is the output file, a PostScript file. You can print it with a printer or to a PDF document or convert it to many other formats. Currently, the output file must always have the .ps filename extension. Other formats could be supported by adding more of the diagrams-* packages. However, this means you have to alter the program.

The program will print the following symbols to the stripe:

In case of notes outside the stripe you have to adapt the offset. You may write

 midi-music-box --zerokey=72 song.mid

in order to make the MIDI note with number 72 the left-most note on the stripe. Default is --zerokey=60. The number of notes in an octave is 12. If you use a zerokey that is a multiple of 12 then white (piano) keys remain white, and black keys remain black, so to speak. If zerokey is not a multiple of 12 then white keys may become black an vice versa. Since the music box type considered here only supports white keys, I recommend the following: If the song is in key X major then lookup the MIDI note number for X and choose X plus or minus a multiple of 12 as zerokey. If the song has key Y minor, then X=Y+3.


Versions 0.0,
Dependencies base (>=4.5 && <4.9), containers (>=0.4 && <0.6), diagrams-lib (==1.3.*), diagrams-postscript (==1.3.*), event-list (>=0.1.1 && <0.2), midi (>=0.2.1 && <0.3), non-empty (>=0.1.3 && <0.4), optparse-applicative (>=0.11 && <0.13), utility-ht (>=0.0.10 && <0.1) [details]
License BSD3
Author Henning Thielemann
Stability Unknown
Category Sound
Home page
Source repository this: darcs get --tag
head: darcs get
Uploaded Sun Apr 24 09:13:13 UTC 2016 by HenningThielemann
Distributions NixOS:
Downloads 263 total (12 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-11-26 [all 1 reports]


Maintainer's Corner

For package maintainers and hackage trustees