Chat

Author Topic: midi's like instruments for YM2612  (Read 1174 times)

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« on: January 05, 2018, 10:23:57 AM »
have you some instruments pack for MIDI to GEMS converting for closer to midi sounds, but for FM? i am get some instruments from DOS GEMS tool, but it is just small part from this 127 midi's. now my converting is suks. i am not musician and dont know what switchers for instrument edit it need to change, for making midi's like sound. i mean PC's midi's like.

maybe you have some ready to eat packs of files with all... a... 29 params? including keyon, lfo, and etc.



Offline Alianger

  • Member
  • Posts: 232
  • Super Sugoyim
    • Mini-Revver
    • Email
midi's like instruments for YM2612
« Reply #1 on: January 10, 2018, 10:01:32 PM »
You mean SNES mario instruments specifically or what? Midi is very versatile, it'll sound different depending on the module, soundfont or software synth used.

Here are the Mario World covers made in DM that I have on my PC, maybe there's something you can use in those.

Otherwise I would recommend isolating individual instruments, looking at their waveforms and trying to replicate them in FM, then asking in the discord chat for help if you can't.

YT channel (MD music, romhacks, misc gaming): https://www.youtube.com/user/Alianger/videos

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #2 on: January 11, 2018, 09:49:12 AM »
i mean sound like midi instruments sounds on PC, but for FM. FM's Grand Piano must be sound as midi's Grand Piano. FM's Clarnet as midi's clarnet... and same for all 127 midi's instruments.

that video just for example, where midi song of mario was converted in GEMS and put in Dune. now i have not very well instruments and many of them sounds not as midi sound on PC. DOS GEMS application have some instruments, but it only part of all 127. (not 127 actualy, but little less - becouse some midi is sfx - helicopter sound, bird, stadium, ocean wave - no need this)


probably i have one path - take most fine sound midi, where people make sega's games song in midi. then take FM instruments from same song from VGM files for this game. but it have another problem :) for example two octave will sounds like two octave midi's. but next octaves can sounds different. and it will make convert not very well. that is why i am ask for some FM instruments, like midi's, where all octaves sounds similar for most fine converting.

Offline Alianger

  • Member
  • Posts: 232
  • Super Sugoyim
    • Mini-Revver
    • Email
midi's like instruments for YM2612
« Reply #3 on: January 11, 2018, 03:07:27 PM »
Like I said it sounds different depending on what module, soundfont or software synth is used. The midi file is more like a notesheet. So find out what your PC uses. It's probably Microsoft MIDI Mapper or Microsoft GM Wavetable Synth.

"for example two octave will sounds like two octave midi's. but next octaves can sounds different."
Well, you will have to adjust the FM instrument then and switch between them in the song when using different octaves.
YT channel (MD music, romhacks, misc gaming): https://www.youtube.com/user/Alianger/videos

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #4 on: January 11, 2018, 04:36:40 PM »
this "adjust" is main problem :) i am make some FM instrument editor. and make some "doubled" sound for compare this sounds. probably i will need to make both of this items in one programm, but anyway it is a tonns of switchers :)



wich one need to be changed for one or other case - that is a problem :)

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #5 on: January 13, 2018, 10:40:56 AM »
Alianger, btw can you update VGM file url for TMNT video from youtube? it is expired :( dropbox no have this expired for example. and gostbusters too!! :)
« Last Edit: January 13, 2018, 10:43:33 AM by SeregaZ »

Offline Alianger

  • Member
  • Posts: 232
  • Super Sugoyim
    • Mini-Revver
    • Email
midi's like instruments for YM2612
« Reply #6 on: January 15, 2018, 05:14:05 PM »
I'll just upload the tracker files here, any others?
YT channel (MD music, romhacks, misc gaming): https://www.youtube.com/user/Alianger/videos

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #7 on: January 15, 2018, 07:07:38 PM »
super :) others i am not very sure know. but this two i know from 90s :) i want to try convert it into GEMS audio driver. and actualy i am not understand deflemask creators :) so big work... and useless :) i mean for making sound it is probably fine, but making sound + ability import it to some games will be more awesome, than now.
« Last Edit: January 15, 2018, 07:12:27 PM by SeregaZ »

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #8 on: January 16, 2018, 12:33:14 PM »
heh... it need to a lot of work for making convert :))) deflemask's vgm is a little another, that i am get before. need to remade a lot of procedures. now result of converting is suks :) no any samples, and asynchronously. but this samples probably is more easy, than game's vgm. no need to collect all $2A register and counts them frequency.

Offline Alianger

  • Member
  • Posts: 232
  • Super Sugoyim
    • Mini-Revver
    • Email
midi's like instruments for YM2612
« Reply #9 on: January 17, 2018, 03:56:47 AM »
Oh ok, yeah you might wanna talk to stef over at spritesmind forum about this, or matt b at sega-16. Matt b converted them to xgm I think it's called, for his cartoon intro conversions.
Only problem with that format is that when you quickly switch between PCM and FM on channel 6, there's a delay in note playback.

http://gendev.spritesmind.net/forum/
http://www.sega-16.com/forum/showthread.php?32571-Sonic-Mania-FMV-Intro-on-Sega-Genesis-Mega-Drive

YT channel (MD music, romhacks, misc gaming): https://www.youtube.com/user/Alianger/videos

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #10 on: January 17, 2018, 06:35:55 PM »
for this case GEMS audio driver have one nice advantage - dynamic allocation of channels :) for example: sixth track have drum DAC sample and hi hat FM. drum plays 1 sec. but hihat must be repeat at 0.5 sec. by your case drum will eat one hihat. but GEMS, when will play drum - will check: is any channels is free right now? yes! i am 4 channel, send me send me! a want to sing! so driver send hihat to that 4 channel. just one law at this driver: at one time cant be more, than 6 sounds - for FM i mean. you can say: but this hihat can eat some another note for that 4 track. yes, it can - that is why every track have prioritet parameter. for example: hihat have 10 prioritet and play in this time, but now time is come play trombone and it have 11 prioritet and no any free channel at this time - so trombone will eat this hihat at the middle. that is why - real channels is 6, but tracks for GEMS song can be up to 16.

friends is help to me unpack zlib for DMF files. i will see - probably DFM2GEMS will be more easy, than VGM2GEMS. i think resolution of DFM is smaller, that VGM. it means converting will be more easy :) it need to research more carefully. it will be nice to have possibility for plug DMF universe for Sega game with GEMS audio driver for romhacks. a lot of ideas and so small ready to eat code :)))

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #11 on: January 19, 2018, 05:29:09 PM »
pobably i cant to recreate that 3ch mode. GEMS have only one command for that 3 channel for start note.

and what you are think about 1 row = 1/24 note? 1/24 is minimum for GEMS.

next problem is envelope, or pitch effect. need to more envistigate for this. GEMS have this, but it have only pitch, no any volume up, or down effect.

and i am not get that deflemask bpm.

and probably i will need to kick out "ghostbusters" phrase, becouse it is with drums.

Offline Alianger

  • Member
  • Posts: 232
  • Super Sugoyim
    • Mini-Revver
    • Email
midi's like instruments for YM2612
« Reply #12 on: January 20, 2018, 04:27:17 AM »
Hmm, not sure what you're asking about 1/24 notes?

Deflemask bpm, you mean custom hz settings? I don't really know how to use the regular commands for more subtle tempo changes, maybe someone else does.

The ghostbusters voice clip is just one sample including the drums, but it is pretty big I guess. I can make all the drums 22khz or something if needed. You want to use that song in a game or what?
YT channel (MD music, romhacks, misc gaming): https://www.youtube.com/user/Alianger/videos

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #13 on: January 20, 2018, 09:16:45 AM »
i am making GEMS Online Database. it hava a list, with a many GEMS games, that was unpacked. now it is only 1 game can use all that songs and SFX sound - Dune. but maybe later will be some another games with this option for change songs.

so now i want to add ghostbusters and TMNT into that base with your name. just for example, becouse sound is awesome :) question is how closer to original i can convert. will see.

early video about this my database:


about 1/24 by spec GEMS audio driver smallest note can be this 1/24. so i think to make 1 row per this 1/24. for example some note length is 6 rows in a Deflemask field. 6 * 1/24 = 6/24 = 1/4 note. probably it will be not very fine. need to more tests.

about samples - frequency of your samples is not matter, becouse they anyway will be convert into mono, 8bit, 10200kbs - this 10.2k is highest, than can support by GEMS. with "ghostbusters" phrase problem with drums :) you have same phrase sample, but without drums? i think to make without this phrase, but with drums-samples, or with sample-phrase, but drums as FM. will see.

and the big problem will be with effects for note. now i have no idea how it is work :) need to a lot of investigation. save it as VGM, parse and read frequency of notes - how they are is changes per time.

Offline SeregaZ

  • Newbie
  • Posts: 14
  • Delek FTW
midi's like instruments for YM2612
« Reply #14 on: January 26, 2018, 11:17:39 AM »
it need a little understand. i am mark some items at "piano roll" - it just garbage, that is left from old notes? it need to ignored? one case is three notes-off command in a line. i think first on is work, another is ignored. correct?


PSG not done, PCM not done. 3ch mode is kickout 3 channels from 4 and only first of them comes to convert. Effects not done. and probably FM instruments converting not fine and need to more tests. and BPM - it is problem too :) how to count it - not clear :)

if you have some sega mega drive emulator - run attach rom on it. gens is not correct. use Fusion - it plays more correct.

https://www.dropbox.com/s/h667seauotpnck4/Player.zip?dl=1
« Last Edit: January 26, 2018, 11:21:06 AM by SeregaZ »