sirjuddington / SLADE

It's a Doom editor
https://slade.mancubus.net
GNU General Public License v2.0
686 stars 104 forks source link

Convert doom MUS to midi via command line #1639

Closed Sembiance closed 6 months ago

Sembiance commented 6 months ago

With slade you can export a doom MUS file to midi format via the GUI. I would really like to have a command line app that simply takes a doom MUS as I out and outputs a midi without any GUI showing up, so I can automate it and convert thousands of files.

sirjuddington commented 6 months ago

Hmm I don't really have plans for any kind of command-line interface for SLADE, if you need to convert many at once you can use the 'open directory' feature, select all the MUS files and right click > Audio > Convert MUS to MIDI

Sembiance commented 6 months ago

If I were to take a stab at coding up a CLI app on my own to do this, built against the slade code base, which source files and classes/methods are the ones that deal with converting MUS to MIDI? I may be able to code it up myself, but would need some tips as to which files I should look at leveraging. Thanks!

sirjuddington commented 6 months ago

Take a look here: https://github.com/sirjuddington/SLADE/tree/master/thirdparty/mus2mid

Sembiance commented 6 months ago

Oh, that's awesome! EXACTLY what I was looking for, I got it working now. Thanks!