33 lines
1.3 KiB
Raw Normal View History

# MusicBoxConverter
> Converts MIDI files into music box scores that are ready to print.
2017-12-03 16:52:50 +00:00
## 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
2019-02-21 23:11:57 +00:00
4. Print the SVG to PDF (or `inkscape --export-pdf output.pdf input.svg`)
2017-12-03 16:52:50 +00:00
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.
2019-02-21 23:50:40 +00:00
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 20x28.7cm score.pdf print.pdf
## Useful Links
- [ffmpeg - showspectrumpic manual](
- [Frequency to Musical Note Converter](