MIDI2MG(1)
π MIDI2MG(1) π
General Commands Manual β¨ (yes bestie, it's a whole section-1 manual page, we're fancy now)
πΈ NAME πΈ
midi2mg β the girl who takes a midi file and turns it into midge(1) text format. that's the whole job. she does it flawlessly.
π SYNOPSIS π
midi2mg [ options ] midi_file
π¦ DESCRIPTION π¦
okay so picture this: midi2mg reads a midi file, right, and then writes everything inside it out into a file in midge(1) text format. that's it. that's the arc. iconic behaviour honestly.
and the way she's so transparent about it β if she runs into any midi events she can't handle, she prints a message to stdout. no silent failures, no pretending. we love a communicative queen π .
β¨ OPTIONS β¨
-hor--helpβ displays help text. she will explain herself. as she should π«Ά.-vor--verboseβ prints verbose messages to stdout. she's a yapper and she's thriving.-qor--quietβ quiet. no stdout. shutting up is also a skill bestie.-ofile or--outfilefile β writes the output to file. otherwise she convertsfile.midtofile.mg. and if file is-, the output goes to stdout π. heads up tho: when you're outputting to stdout, quiet mode gets automatically set β unless verbose mode was set earlier on the command line. so order matters, iykyk.-wor--ignore-wrong-trackβ ignores MIDI events that show up on the wrong channel instead of exiting. instead of the dramatic walkout, she just... looks away π.-ni[,j...] or--include-tracksi[,j...] β only converts the tracks in that comma separated list, and track numbers start from 1. yes bestie, 1. not 0. one.-Ni[,j...] or--exclude-tracksi[,j...] β converts all the tracks except the ones you listed in that comma separated list. the inverse vibe. the anti-slay, if you will.-tn or--tuplet-factorn β an additional factor for files with odd note lengths, so they don't get translated as decimals. n should be a prime number greater than 3 β.-For--no-factoriseβ does not factorise time values. lowkey a debugging move: this may help you decipher unusual tuplet values π.
π BUGS π
not everything is perfect, and we're gonna be honest about it:
- does not correctly handle some text events π
- does not handle SMTPE style tempo events
- does not handle changes of tempo/time_sig/key if these are on a separate tempo track
fr fr read those before you come for her. she told you. transparency queen π«Ά
π SEE ALSO π
π AUTHOR π
David Riley <dave@dmriley.demon.co.uk> β thank you for your service, king π
and that's the whole page bestie!! this one was dated 17 July 2006, so yeah, she's been out here converting midi files since before most of us could walk. timeless. legendary. periodt π β¨π
π¦ where this page comes from
- debian bookworm: midge 0.2.41+dfsg-1~deb12u1
- debian trixie: midge 0.2.41+dfsg-1
- ubuntu jammy: midge 0.2.41-3
- ubuntu noble: midge 0.2.41+dfsg-1
- ubuntu questing: midge 0.2.41+dfsg-1
- ubuntu resolute: midge 0.2.41+dfsg-1build1
- ubuntu stonking: midge 0.2.41+dfsg-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms