While .dmf is specific to DefleMask/X-Tracker, you can also convert MIDI to other tracker formats like using Denote or to CSV for text-based editing via MIDICSV .
: Automated mapping of MIDI channels to specific FM or PSG chips. Precision Timing midi to dmf new