Midi 2 Fmpac Conversion

Page 3/3
1 | 2 |

By Daemos

Paragon (1714)

Daemos's picture

15-01-2015, 12:01

Quote:

But do you mean those problems only occur after exporting (like the exported file sounds different compared to when playing in MusicA)?

correct assumption Smile the problems begin after exporting. Could be kinrou5 as well who knows...

FM is basicly coders hell. Either get yourself one of the alternatives or write the whole thing yourself. Too bad there are not many alternatives. If you have the replayer you don't have the editor and vice versa. If you have both, they are slow or still in a beta stage.

You will have to come up with something you wrote yourself and that takes alot of time you are not willing to invest in a project that takes shorter to fix than the FM support itself.

In the end you either end up with some heavily modified alternative that does the job within good reason or in case you have a closed source project use the best there is and never tell the maker about it. Sad but true.

But there is light at the end of the tunnel. Well light... lets say there is hope. As far as i know trilotracker is still being developed and so is the replayer. So within who knows 2 years? 5 years? we will never have to worry again about all these problems.

By Grauw

Ascended (9396)

Grauw's picture

15-01-2015, 12:56

I don’t think an MML player with multiple sound chip support would be very difficult to make...

Just compile MML text to easy-to-process bytecode in a simple language like NodeJS JavaScript (e.g. use JSON for the MML file structure), and then make a replayer which reads this bytecode, has for each channel a pointer to the next event and a time counter, decrements counters each interrupt and whenever the counter reaches 0 processes events until it reaches the next wait event, outputs the right values to the sound chips, done.

Shouldn’t take more than a week or two to make a functional MML player.

By Daemos

Paragon (1714)

Daemos's picture

15-01-2015, 14:22

If you have the power and knowledge to create such a thing which is also very fast you will be on my offcial hero's who deserve great respect list.

By tonigalvez

Champion (281)

tonigalvez's picture

15-01-2015, 15:00

syn wrote:
Quote:

Midis are everywhere

Unless you are making ports/remakes of other games I dont see much use for using MIDI files in msx development (well maybe also work for rhythm/music games I guess). I rather have a good music editor on MSX instead. A game developer wants original music, not random tunes from the web.

Anyway I am still looking for a light BGM/MML replayer that can play psg+opll+scc at least, from what I've heard kinrou5 is not that great/rather slow. Also a capable tracker would be nice.
Moonblaster 1.4 is not bad but the lack of multiple effect commands per step is VERY limiting imho. I have no comment on the replayer speed since I havent done much with it yet, but I have seen games use it (even basic ones) so I guess it is useful if you code better Big smile. Besides msx-audio is awesome Big smile

@daemos I havent had any bugs yet, the only problem I had until now was that I misunderstood the syntax for legato/link notes Smile But do you mean those problems only occur after exporting (like the exported file sounds different compared to when playing in MusicA)?

@popolony2k interesting project!

Of course YES, we can use MIDIs from Rock, clasical music, Jazz, flamenco, pop and many more.

By iamweasel2

Hero (650)

iamweasel2's picture

21-11-2020, 16:58

norakomi wrote:

I have been working on a way to convert midi files to musica formaat.
I have tested a lot of converted songs and they sound very nice,
the replayer for musica is also quite fast.

If people are intersted, I would love to share my work.

A little bit of info:
I found a music ripper for SNES and NES games, and I found a converter for these
songs to midi. 
Then I found a program that converts midi to mml,
and then me and retrocanada worked on a program to convert the mml code to
readable musica code, using 6 instrument Fmpac channels AND the drum channel.

So now we can succesfully playback any (S)NES game song or midi song.
In my oppinion quite handy.

I would love to see your work. I´ve been trying to convert some NES tunes (they are already in MIDI format) but I didn't get good results.

I used 3MLEditor editor to convert the MIDI to MML, but from that part I couldn't get a good result while trying to convert it FM sound.

If you can share your tool / knowledge about converting midis to FM it would be great. Or maybe I could send you the Midi to be converted.

By MsxKun

Paladin (953)

MsxKun's picture

21-11-2020, 17:34

Probably related to the topic, more or less. A converter from MIDI to *insert anything playable on a MSX here* would be nice.
I checked the interwebs and found this thing, but's made on strange stuff like W10 and .NET.

https://github.com/rerrahkr/ConvFMML

Maybe it's useful to check?

By MsxKun

Paladin (953)

MsxKun's picture

21-11-2020, 18:28

Hi again.
I found this C++ library to parse MIDI files that makes a lots of things. It practically gives you the job done to (between others) convert from Midi to bytecode that you can later read with a custom MSX replayer.

https://github.com/craigsapp/midifile

By syn

Paragon (1985)

syn's picture

21-11-2020, 21:17

iamweasel2 wrote:
norakomi wrote:

I have been working on a way to convert midi files to musica formaat.
I have tested a lot of converted songs and they sound very nice,
the replayer for musica is also quite fast.

If people are intersted, I would love to share my work.

A little bit of info:
I found a music ripper for SNES and NES games, and I found a converter for these
songs to midi. 
Then I found a program that converts midi to mml,
and then me and retrocanada worked on a program to convert the mml code to
readable musica code, using 6 instrument Fmpac channels AND the drum channel.

So now we can succesfully playback any (S)NES game song or midi song.
In my oppinion quite handy.

I would love to see your work. I´ve been trying to convert some NES tunes (they are already in MIDI format) but I didn't get good results.

I used 3MLEditor editor to convert the MIDI to MML, but from that part I couldn't get a good result while trying to convert it FM sound.

If you can share your tool / knowledge about converting midis to FM it would be great. Or maybe I could send you the Midi to be converted.

what do you mean you didnt get good results? are the notes wrong?

By iamweasel2

Hero (650)

iamweasel2's picture

27-11-2020, 13:30

syn wrote:
iamweasel2 wrote:
norakomi wrote:

I have been working on a way to convert midi files to musica formaat.
I have tested a lot of converted songs and they sound very nice,
the replayer for musica is also quite fast.

If people are intersted, I would love to share my work.

A little bit of info:
I found a music ripper for SNES and NES games, and I found a converter for these
songs to midi. 
Then I found a program that converts midi to mml,
and then me and retrocanada worked on a program to convert the mml code to
readable musica code, using 6 instrument Fmpac channels AND the drum channel.

So now we can succesfully playback any (S)NES game song or midi song.
In my oppinion quite handy.

I would love to see your work. I´ve been trying to convert some NES tunes (they are already in MIDI format) but I didn't get good results.

I used 3MLEditor editor to convert the MIDI to MML, but from that part I couldn't get a good result while trying to convert it FM sound.

If you can share your tool / knowledge about converting midis to FM it would be great. Or maybe I could send you the Midi to be converted.

what do you mean you didnt get good results? are the notes wrong?

Hi, first of all, sorry for not replying to you earlier.

The first channel was ok, but when I added the other channels the sound was not ok, it was not the notes, I believe it was the time, the sound got mixed up.

Maybe I should have done some editing in MIDI (or in the converted MML) to get better results.

Page 3/3
1 | 2 |