Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import .mod or any other tracker files #6

Open
sttng opened this issue Mar 5, 2022 · 4 comments
Open

Import .mod or any other tracker files #6

sttng opened this issue Mar 5, 2022 · 4 comments
Labels
feature request New feature or request help wanted Extra attention is needed libtrackerboy relating to the libtrackerboy repo or trackerboy back end

Comments

@sttng
Copy link

sttng commented Mar 5, 2022

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 sttng added the feature request New feature or request label Mar 5, 2022
@stoneface86
Copy link
Owner

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 stoneface86 added help wanted Extra attention is needed libtrackerboy relating to the libtrackerboy repo or trackerboy back end labels Mar 5, 2022
@sttng
Copy link
Author

sttng commented Mar 6, 2022

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 !

@colortelevision
Copy link

mod import and export would be dope

@stoneface86
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request help wanted Extra attention is needed libtrackerboy relating to the libtrackerboy repo or trackerboy back end
Projects
None yet
Development

No branches or pull requests

3 participants