MyNixOS website logo
Description

Convert MIDI file to music box punch tape.

Convert MIDI file to music box punch tape for this kind of music box: http://www.amazon.de/Spieluhr-Lochstreifen/dp/B001WNZOVO/

Run it like so:

midi-music-box --output=song.ps song.mid

song.mid is the input file that must be a MIDI file. song.ps 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:

  • blue dot - correct note that should be punched

  • # - this is a semitone and cannot be played accurately (at least on the type of music box I refered to, above)

  • ! - the note is outside the range

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

midi-music-box --zerokey=72 --output=song.ps 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.

You find executables for MS Windows in two ZIP archives there:

Metadata

Version

0.0.1.2

Maintainers (1)

Executables (1)

  • bin/midi-music-box

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows