Fork of DMF2ESF (Deflemask to Echo converter)

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
User avatar
BigEvilCorporation
Very interested
Posts: 205
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Fork of DMF2ESF (Deflemask to Echo converter)

Post by BigEvilCorporation » Tue Nov 24, 2015 12:25 am

Hi!

I've forked the dmf2esf tool (by TheMvRules) to make some updates and improvements, since I couldn't get it to convert one of my DMF files or figure out what to do with the instrument dumps:

https://github.com/BigEvilCorporation/dmf2esf

Changes made so far:

- Outputs .EIF instrument files
- Serialisation refactor
- Supports DMF v11 format files
- Visual Studio Community 2013 SLN file
- A few bug fixes I found along the way

Use the -i option to output instruments.

Not tested yet:

- Other compilers
- PSG
- Samples
- Loops
- DMF file versions other than v11

I'll be working on it as and when I need the features, and I'll post updates here.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

User avatar
BigEvilCorporation
Very interested
Posts: 205
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by BigEvilCorporation » Sun Jun 05, 2016 8:09 pm

Update:

- Added support for the new Deflemask DMF 12 file format (ID 0x18)
- Fixed PSG support
- Added support for PCM sample conversion and export
- Fixed the PCM "note on" offset (PCM samples should be included at the end of the Echo instrument pointer table).

I've been using the Green Hill Zone sample track included with Deflemask for testing, and it's all sounding great!

Sample rate conversion uses libsamplerate/Secret Rabbit Code, see http://www.mega-nerd.com/SRC. I *think* the GPLv1 and GPLv2 licenses are compatible.

I've also noticed that the text ASM output is broken, I haven't had time to track the problem down though. Binary export is all fine.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

User avatar
Sik
Very interested
Posts: 731
Joined: Thu Apr 10, 2008 3:03 pm
Contact:

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by Sik » Sun Jun 05, 2016 11:04 pm

...what is still using GPLv1? That one got phased out really quickly.
Sik is pronounced as "seek", not as "sick".

Manveru
Very interested
Posts: 70
Joined: Wed Sep 05, 2012 3:30 pm

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by Manveru » Tue Oct 02, 2018 9:14 pm

BigEvilCorporation wrote:
Sun Jun 05, 2016 8:09 pm
Update:

- Added support for the new Deflemask DMF 12 file format (ID 0x18)
- Fixed PSG support
- Added support for PCM sample conversion and export
- Fixed the PCM "note on" offset (PCM samples should be included at the end of the Echo instrument pointer table).

I've been using the Green Hill Zone sample track included with Deflemask for testing, and it's all sounding great!

Sample rate conversion uses libsamplerate/Secret Rabbit Code, see http://www.mega-nerd.com/SRC. I *think* the GPLv1 and GPLv2 licenses are compatible.

I've also noticed that the text ASM output is broken, I haven't had time to track the problem down though. Binary export is all fine.
I have tested it with the Deflemask 12 Green Gill Zone track and Echo 1.62, but i get bad sound with the samples and with one of the three PSGs in that track. I tested Echo engine with GenRes sample tracks and it sounds well, so any help will be very appreciated.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

User avatar
BigEvilCorporation
Very interested
Posts: 205
Joined: Sat Sep 08, 2012 10:41 am
Contact:

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by BigEvilCorporation » Wed Oct 03, 2018 2:37 pm

Manveru wrote:
Tue Oct 02, 2018 9:14 pm
BigEvilCorporation wrote:
Sun Jun 05, 2016 8:09 pm
Update:

- Added support for the new Deflemask DMF 12 file format (ID 0x18)
- Fixed PSG support
- Added support for PCM sample conversion and export
- Fixed the PCM "note on" offset (PCM samples should be included at the end of the Echo instrument pointer table).

I've been using the Green Hill Zone sample track included with Deflemask for testing, and it's all sounding great!

Sample rate conversion uses libsamplerate/Secret Rabbit Code, see http://www.mega-nerd.com/SRC. I *think* the GPLv1 and GPLv2 licenses are compatible.

I've also noticed that the text ASM output is broken, I haven't had time to track the problem down though. Binary export is all fine.
I have tested it with the Deflemask 12 Green Gill Zone track and Echo 1.62, but i get bad sound with the samples and with one of the three PSGs in that track. I tested Echo engine with GenRes sample tracks and it sounds well, so any help will be very appreciated.
I think the SRC stuff was temporarily commented out a while back due to a problem (and we were authoring all of our samples to the target rate on Tanglewood anyway) - might be worth commenting that back in. It was left in a bit of a mess after TW since there was a last minute rush to fix bugs and get the game shipped.

As for the PSG thing, does it use the PSG 3+4 mode? I'd need to debug it and see but I don't have a development environment set up right now (transitioning to a new project).

I'm very happy to help here though, if someone's up for doing the investigative work.
A blog of my Megadrive programming adventures: http://www.bigevilcorporation.co.uk

Manveru
Very interested
Posts: 70
Joined: Wed Sep 05, 2012 3:30 pm

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by Manveru » Wed Oct 03, 2018 3:24 pm

BigEvilCorporation wrote:
Wed Oct 03, 2018 2:37 pm
I think the SRC stuff was temporarily commented out a while back due to a problem (and we were authoring all of our samples to the target rate on Tanglewood anyway) - might be worth commenting that back in. It was left in a bit of a mess after TW since there was a last minute rush to fix bugs and get the game shipped.

As for the PSG thing, does it use the PSG 3+4 mode? I'd need to debug it and see but I don't have a development environment set up right now (transitioning to a new project).

I'm very happy to help here though, if someone's up for doing the investigative work.
Thanks Matt.

You made a good work with Tanglewood, i hope i can use Echo as well as you did.

Green Hill uses 3 PSG channels, 1, 2 & 4 according to Deflemask and KMod debugger.

I hope someone can help us. We need some stuff to convert from a tracker to Echo, and Deflemask + your converter seems to be the best chance.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC

SeregaZ
Newbie
Posts: 5
Joined: Mon Aug 03, 2015 12:45 pm

Re: Fork of DMF2ESF (Deflemask to Echo converter)

Post by SeregaZ » Sun Dec 02, 2018 2:53 pm

o! in a past i am trying to convert from deflemask into GEMS too :) but i curse all deflemask's effect with pitchs or slides, or how it names.

original:
https://youtu.be/osf7nBq5Nxo

convert:
https://www.youtube.com/watch?v=QLzbrE0jXtU

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest