trackerboy icon indicating copy to clipboard operation
trackerboy copied to clipboard

Import .mod or any other tracker files

Open sttng opened this issue 2 years ago • 4 comments

It would be nice to be able to import .mod or other tracker files. It'll be fine if only the first 4 channels are supported and obviously there are other limitations.

sttng avatar Mar 05 '22 09:03 sttng

I do have plans for .ftm import, but it's currently a low-priority feature. Mod files would be much easier to implement since only the pattern data would be imported, and a lot of the effects are similar to Trackerboy's.

Here's how I'd go about this:

  • add an importFromMod method to the trackerboy::Module class that handles the import
    // include/trackerboy/data/Module.hpp
    FormatError importFromMod(std::istream &in /* any necessary parameters for the import */);
    
  • add a menu group in the File menu with text "Import" before "Export to WAV", then add an action with text "from MOD..."
  • this menu action will show a dialog prompting for a MOD file, which will then import the file using the importFromMod method (assuming that the current module does not have any unsaved changes, and if it does prompt the user to save them first).

I'm definitely OK with adding this, just not sure when I'll get around to it.

stoneface86 avatar Mar 05 '22 17:03 stoneface86

Cool! I think this would be super useful as GBStudio supports .mod files, so a couple of people may want to import there .mod tracks.

Maybe a .mod export (at least for the patterns) could also be thought on. Keep it up !

sttng avatar Mar 06 '22 03:03 sttng

mod import and export would be dope

colortelevision avatar Feb 22 '24 01:02 colortelevision

Forgot to mention this but a collaborator made a separate tool for this - https://github.com/tadashibashi/tbm2gbt

stoneface86 avatar Mar 06 '24 18:03 stoneface86