Giter Club home page Giter Club logo

dmf2mlm's Introduction

dmf2mlm

Program that converts deflemask project files to a neogeo M1ROM running the Mezz'Estate audio driver

freem's adpcma encoder MUST be in $PATH as adpcma.

Conversion steps

  1. Parse the DMF modules (dmf.py)

  2. Convert the merged modules into a mlm.SoundData instance (mzs/*.py)

  3. Compile said instance into an m1rom (mzs/*.py)

Limitations

  • Only 255 instruments per song can be used, since one instrument is used for ADPCM-A samples

  • SSG Noise tone macros will be ignored because I don't know how they'd work (there's a single Noise channel shared inbetween all three channels)

  • Do not use FM instruments with SSG channels, create an empty SSG instrument instead.

Conversion info

  • Each pattern is converted into a sub event list, and the pattern matrix is converted into a series of "Jump to sub event list" commands.

  • If the used patterns in a pattern matrix channel are $00, $01, $10, and $03 then they will be respectively converted into the channel's sub-EL 0, 1, 3, and 2. first the unique used patterns are found (list(set(pat_matrix))), then they're sorted (unique_pats.sort()); the sub-EL id is found from said unique pattern list (unique_pats.find(pattern))

TODO

  • Find a way to merge samples, since it's likely that the songs will share samples

dmf2mlm's People

Stargazers

 avatar  avatar David Ralph avatar

Watchers

Sascha Reuter avatar

dmf2mlm's Issues

UnicodeDecodeError

Every time I try to convert a file I get an error:

File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/user/Dev/NEOGEO/dmf2mlm/main.py", line 116, in
mod = dmf.Module(file.read())
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Dev/NEOGEO/dmf2mlm/src/dmf.py", line 563, in init
self.parse_samples()
File "/home/user/Dev/NEOGEO/dmf2mlm/src/dmf.py", line 669, in parse_samples
sample = Sample.from_dmf_data(self.data[self.head_ofs:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Dev/NEOGEO/dmf2mlm/src/dmf.py", line 410, in from_dmf_data
s.name = data[head_ofs+5:head_ofs+5+name_len].decode(encoding='ascii')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 3: ordinal not in range(128)

Support for VIBRATO effect

As per warning issues from dmf2mlm:

WARNING: VIBRATO effect conversion isn't implemented and will be ignored

Support for FM_TL_OP1_CONTROL

As per warning issues from dmf2mlm:

WARNING: FM_TL_OP1_CONTROL effect conversion isn't implemented and will be ignored

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.