Converts MIDI files into music box scores that are ready to print.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Starbeamrainbowlabs 7b7bab1f85
Write plus symbol over each hole
3 months ago
MusicBoxConverter Write plus symbol over each hole 3 months ago
.gitignore Ignore ghostwriter backup files 2 years ago
LICENSE Add licence 3 months ago
MusicBoxConverter.sln Initial commit. Let's see where this leads! 3 years ago
MusicBoxNotes.txt Add actual notes that our music box plays 3 years ago
README.md Add licence 3 months ago

README.md

MusicBoxConverter

Converts MIDI files into music box scores that are ready to print.

Getting Started

This program is written in C♯. To get started, first clone this repository and compile it:

git clone https://git.starbeamrainbowlabs.com/sbrl/MusicBoxConverter.git
cd MusicBoxConverter
msbuild

If you're on Windows, you'll either need to use a Visual Studio Developer Command Prompt or open the solution file in Visual Studio itself.

Alternatively, you can

Usage

  1. Export the MuseScore file to a MIDI file
  2. Run the MIDI file through this program.
  3. Open the resulting SVG in Inkscape
  4. Print the SVG to PDF (or inkscape --export-pdf output.pdf input.svg)
  5. Open the resulting PDF in LibreOffice Draw
  6. Print to your actual printer - tiling over multiple pages if required.

This somewhat convoluted process prevents anyone from automatically rescaling it along the way.

If the above doesn't work, it's probably LibreOffice Draw scaling it even though you've told it not to. In that case, try this:

# Convert MIDI -> SVG
./MusicBoxConverter.exe --input song.midi --output score.svg
# Convert it to png
inkscape -e score.png score.svg
# Convert the PNG to PDF, rotating by 90 degrees
convert score.png -rotate 90 score.pdf
# Split the PDF up into multiple pages for the printer
# -s1	Don't scale the output
# -m	Sets the output paper size. Defaults to A4 (21x29.7cm) if unspecified, but may need to reduce by a cm or 2 on each side (as below) if things get cut off.
pdfposter -s1 -m 20x27.7cm score.pdf print.pdf

....if that cuts things off at the edges, try doing it like this:

convert score.svg score.pdf
pdfposter -s1 score.pdf print.pdf

License

This project is released under the Mozilla Public License 2.0. The full license text is included in the LICENSE file in this repository. Tldr legal have a great summary of the license if you're interested.