DefleMask Forum

DefleMask => General => Topic started by: r57shell on January 31, 2013, 09:14:35 AM

Title: Converting
Post by: r57shell on January 31, 2013, 09:14:35 AM
I want be able to write converters from/to DefleMask.
First - I want to create GEMS (Sega Sound Driver) to DefleMask converter.
Second... I don't know :)

I already made GEMS to midi simple converter (without instruments, volume/pitch effects).
But. It will be great, if there is a way to convert directly into DefleMask and play it like on SEGA.

It can be: plugins support, or export in well defined format (even readable text), or other way.
Title: Re: Converting
Post by: Delek on January 31, 2013, 12:35:56 PM
If you are really interested in the DefleMask Module Format, I could send to you the DMF File Specs.
Title: Re: Converting
Post by: r57shell on January 31, 2013, 04:05:26 PM
It will be great.
So, from me - do not share?)
Title: Re: Converting
Post by: r57shell on February 04, 2013, 12:48:39 AM
Comix Zone test. clean midi track. speed:100. MidiPiano can play it, Synthesia too.
Waiting for DMF format specs.
Title: Re: Converting
Post by: Delek on February 04, 2013, 03:27:25 AM
Check this thread: http://www.delek.com.ar/forum/deflemask/dmf-specs/

:)
Title: Re: Converting
Post by: r57shell on February 05, 2013, 12:16:51 AM
DMF generator works great, but not enough).  ;D
Something lost due converting GEMS->DefleMask->ROM (not including DAC)
Some instruments with such high definition sounds horrible for me. :-[
Next step: include DAC samples.

About DefleMask:
1) Annoying issue: frequently crashes without errors, when playing song
2) No PSG options. (20xx effect not enough) Or me just blind?
3) Strange, for me, tempo settings. This is reason why tempo not precise in this test.
Title: Re: Converting
Post by: Delek on February 05, 2013, 12:36:00 AM
This is really awesome, great job!

You will release a Midi2DMF software?, that would be great.
Title: Re: Converting
Post by: r57shell on February 06, 2013, 12:57:37 PM
Pan added (left/right).
Dac added.
Just see performance. :)

DefleMask (v9.0): need many fixes
1) Sometimes eating notes. (I mean note exists in pattern, but not played)
2) Depending on time when stop pressed - You can't test instrument by keybroad.
3) I saw bug when set volume 3B in each note - last PSG played even without any events.
4) Export rom with DAC - in result DAC only. ;D

Strange volume behavior: any lower global value than 7F in result DIFFERENT song.
For example 7F*0.80=65. (80% multiplier) In result - not Comix Zone anymore.
7F volume in DefleMask. 80% volume in Windows mixer -> still Comix Zone.

About MIDI -> I don't know good way to convert timing from MIDI to such low definition.
For example: definition 480 pulses per beat in MIDI, and max 60 for NTSC Genesis (as I know).
But here, in DefleMask, I see that 24 pulses per beat playing very slow on 3/3 speed 1 base time!
In this test 12 pulses per beat.

I don't promise anything :).
Title: Re: Converting
Post by: r57shell on February 06, 2013, 01:27:08 PM
Bonus :o
Title: Re: Converting
Post by: Delek on February 06, 2013, 01:37:42 PM
This is awesome!

PS: About the bugs, please upload a DMF as example, seems like a misunderstanding about YM2612 vol control and other non bug things.
Title: Re: Converting
Post by: r57shell on February 15, 2013, 11:14:52 AM
 :P NES Cover ;D
Title: Re: Converting
Post by: Delek on February 15, 2013, 06:16:14 PM
WOW I love it!, you definitely should make a video or upload it somewhere, nobody done that before and sounds brilliant.

I did a small change to a triangle's note, on the first frame.
Title: Re: Converting
Post by: r57shell on February 15, 2013, 10:24:48 PM
Latest version, but on FamiTracker :(
Thread: http://famitracker.com/forum/posts.php?id=4390
Title: Re: Converting
Post by: Delek on February 17, 2013, 01:00:39 AM
Would be really great to have Toe Jam & Earl tracks converted to DMFs. :D
Title: Re: Converting
Post by: r57shell on February 17, 2013, 05:35:04 PM
Wich one? I don't want to convert all tracks.
Title: Re: Converting
Post by: Delek on February 17, 2013, 11:02:06 PM
THIS ONE
Title: Re: Converting
Post by: r57shell on February 18, 2013, 02:27:45 AM
Driver in First Part of game - not GEMS.
In second part, I have found this track.
Title: Re: Converting
Post by: Delek on February 18, 2013, 06:45:15 PM
YEAY awesome, it has some wrong instruments, but it's a really great base to start a full accurate cover of this tune.
Title: Re: Converting
Post by: r57shell on February 19, 2013, 10:34:04 AM
Instruments converted automatically from internal instruments in game. May be it's wrong, but... I have problems only with DT, and SL, I don't know how to remap internal game DT,SL to DefleMask. In game it is just clear values writed in registers. In my DMF, SL - value writed in register. For example SL it is 4 high bits from byte, writed in 80h register for first operator.
Title: Re: Converting
Post by: r57shell on February 21, 2013, 03:34:40 PM
How I can achieve such effect as 0xE5xx but with more range? I want at least 1 octave. I want change pitch of playing note.
Title: Re: Converting
Post by: Delek on February 21, 2013, 07:00:23 PM
You could use 3xx effect
Title: Re: Converting
Post by: r57shell on February 23, 2013, 10:49:51 AM
I need to change pitch in each row. This will not make it.
BTW: I know why my converted songs sounds wrong. I need, at least Channel 3 Mode.
So I request Channel 3 Mode support with Frequency Settings. Just put 4 sliders in instruments editor and make them "install", each time before note on.

Ahh... I forgot to mention: you may change way, which effect 0xE5xx works. make parameter = delta, and I will be able pitch as I need. :)
0xE590
0xE590
= +0x20 summary
0xE580 - turns off.
For example. But I know... support of previous versions :(.

Once again ToeJam & Earl 2. With some fixes. (May be without...)
Title: Re: Converting
Post by: r57shell on February 23, 2013, 03:59:18 PM
My favorites :D.
Title: Re: Converting
Post by: marcb0t on February 23, 2013, 04:35:29 PM
Hello r57shell,

Are you by chance referring to Channel 3 Special Mode with the Multi Frequency setting? If you are, you're talking my language! I second that motion. ;)

I think it's really cool that you're making such a converter for Deflemask. Is there any chance of converting everyday MIDI files to Deflemask format, or is it only for the GEMS engine. Perhaps I'm not understanding exactly what you're doing here.

I've got to go!

Take care guys,
marcb0t
Title: Re: Converting
Post by: r57shell on May 08, 2013, 04:22:58 PM
Made with this: http://gendev.spritesmind.net/forum/viewtopic.php?p=19627#19627 (sorry for cross links, I don't want to copy paste)
Title: Re: Converting
Post by: Delek on May 08, 2013, 07:26:30 PM
AWESOME, a MIDI to DMF converter! :D
Title: Re: Converting
Post by: r57shell on May 09, 2013, 05:20:27 AM
At this moment - SMD only. I don't know how to make good interface to support any system.
Title: Re: Converting
Post by: Jochmen on December 19, 2013, 08:37:31 AM
I'm sorry, but I'm having problems with understanding your MIDI2DMF program, and I would very much like some help.

I've included a couple .midi files I wanted to convert, perhaps you could take a look at those?
Title: Re: Converting
Post by: r57shell on December 23, 2013, 02:37:39 PM
Here in archive:
1) MIDI edited for midi_to_dmf. What I done: 1) resolution 24 per beat. 2) Transpose 1,2,4 track -1 octave, Transpose 3 track -2 octave.
2) Config file that I have used.
3) DMF you'll get
4) DMF after configuring some random instruments.

It's just another sample. Not complete project.
Title: Re: Converting
Post by: marcb0t on December 27, 2013, 04:22:23 AM
Greetings r57shell,

Thank you very much for this contribution! This is the, "holy grail" of midi conversion for me! I've got it figured out now, and wanted to post my first conversion project.

It's attached to this post. The song is the tune for "Meta Junglira" which plays in the third zone in Sonic Triple Trouble for Game Gear. I played it as a kid years ago, and it was one of my favorite tunes.

I always wanted to make a Genesis version of it, and now with yours (and Delek's) help it's here.

I've got this African Marimba sound going on right now. I want to enhance this in the future with better instrumentation and sampled jungle sounding DAC drums, but it still sounds pretty cool to me.

BTW, anyone needing a fast way to convert midi ticks (Pulses) to 24 per quarter, use a program called REAPER. It's very advanced. You can set it up to import all midi files as 24 Pulses by merely dragging the file from the desktop to inside the program window.

I find importing midi onto a single midi track the most effective for midi_to_dmf.

Thanks again my friend,
marcb0t
Title: Re: Converting
Post by: SeregaZ on January 15, 2019, 09:27:59 AM
r57shell is a little lost interes for that case... but it need to one remark about wrong instruments convert from GEMS into Deflemask - GEMS have command Key On - it is parameter, where 4 bits, that is turn on, or turn off operators. Deflemask no have this item. it have always %1111 - on. so GEMS, if one of operator is shutdown - probably ingnore Total Level - volume value and not sound this operator. for emulate this effect probably you can make turn off Total Level parameter for that operator. but it need to investigate wich one sure operator need to set 0 for Total Level, becouse GEMS have this order 1, 3, 2, 4. wich order have Deflemask - who knows :) need a tests.

about detune:
Quote
;  gems file?    dmf file      YM2612 reg val
;     -3             0                 7
;     -2             1                 6
;     -1             2                 5
;      0             3                 0
;      1             4                 1
;      2             5                 2
;      3             6                 3

i am forgot about first collumn... where i am take it? or probably it is VGM Music Maker :) or YM2612 reg val - it is value for GEMS file... Deflemask2GEMS work fine. or i am just didnt see difference in a sound :)
Title: Re: Converting
Post by: SeregaZ on April 02, 2019, 11:14:39 AM
converter MIDI2Deflemask is starts work, but not enough :) it have a lot of nuances, but result is very fine for me. so for continue of that work - it need to deflemask's instruments, which ones is emulate midi's sound, as it sounds on PC.

MaliceX is give me some pack of 127 instruments, but it was for another system, then it was to convert for VGM Music Maker instruments, only then it is used for MIDI2Deflemask conveter, but most of them is even not close to midi sounds. so it need to more quality more midi's like instruments. some one from discord channels says - he have some, but he is a lost somewhere inside of deeps of inthernets :)

video with that nuances, but with a terrible language:
Title: Re: Converting
Post by: Wanny on July 17, 2019, 03:43:14 AM
I'm a little late to the party, it seems. The link for the zip file says that the file is unavailable.

Does anyone else have a copy?
Title: Re: Converting
Post by: SeregaZ on July 17, 2019, 11:24:32 AM
you mean r57shell programm? i can write to him.
Title: Re: Converting
Post by: SeregaZ on July 17, 2019, 11:52:37 AM
he send me, but not sure last one it is or not. and it is not full package - it have no examples and config file. i remember it can set wich channels will play FM or PSG or DAC... something like that.