Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Crusader Mike

Members
  • Content count

    6
  • Joined

  • Last visited

About Crusader Mike

  • Rank
    New Member
  1. Crusader Mike

    MUS player (with sources)

    Guys, it looks like DosBox does not simulate OPL2/3 100% correctly... unfortunately. :(
  2. Crusader Mike

    MUS player (with sources)

    1. Are you sure it plays absolutely correct? can you listen to first level music (D_RUNNIN.MUS) until the end? my MUSplayer from under dosbox was playing last third incorrect until I replaced genmidi.op2. 2. maybe this will give you hints what is wrong win AWE32: http://en.wikipedia.org/wiki/AWE32 3. Could you, please, check if you have metallic after-sounds in some drums on real hardware? (run first level, wait for ~10-15 seconds)
  3. Crusader Mike

    MUS player (with sources)

    it is used there for OPL2 emulation. For OPL3 they use ymf262.c. Code is horrible, but works. Actually the main problem is not OPL emulation -- I assume ymf262.c eulates real OPL3 pretty closely or maybe exactly. Problem is to play given MUS -- i.e. convert notes messages and stuff to related writes to OPL registers. Actually I am using DosBox to check how Doom plays in comparison with my own synth. Also I have modified and recompiled DosBox to log all OPL writes when I decided to compare my synth output and Dooms -- they were quite different :-). The same for latest MUSplayer and Doom. Also, for those who are of curious nature -- try this: 1. run MUSplayer under DosBox 2. replace genmidi.op2 provided with MUSplayer with one, located in doom2.wad 3. play some MUS files extracted from Doom2.wad -- you'll notice it plays almost the same as Doom, but more quiet. 4. in Doom2 try first level and listen to the music (full volume - 15), reduce volume to 10 and listen again. As you may noticed some of the drums sounds absolutely different! Actually I suspect that Doom artificially and non-linearly increases notes and channel volumes -- when I tried to simply increase volumes by const value 20-27 -- my player started playing 'closer'. 5. also -- if you listen to first level music you'll notice some metallic after-affects after specific drum-sound. In Doom it mostly sounds short and subdued, in MUSplayer you could hear it every time in it's full glory. :-( I'll go ahead with the latest MUSlib sources and then attempt to move it onto kernel level as WDM driver. (I've heard MS dropped it from Vista O_O, or they move all sound stuff to user level) After that if sound is still wrong... Well, maybe I'll try to reverse engineer Doom's engine code, I've seen some support in DosBox's code.
  4. Crusader Mike

    MUS player (with sources)

    Lets define a manifold of possibilities given individual know about and call it P. Lets define f(p) as transformation from P to some value which is a list of OPL3 commands along with their timestamps. if p is not about playing a MUS file then f(p) = nothing. Also for some p1 != p2 lets assume f(p1) = f(p2) if given OPL3 chip output won't differ due to it's internal logic (for example some OPL3 commands could switch places without affecting output) Lets assume there is a measure N(p1, p2), which defines how close f(p1) to f(p2) according to normal human perception. Task is to minimize N*(p) = N(p0, p), where p0 -- predefined case (Doom music engine), p -- from given individual's manifold P. Is it clearer now? :-) Obviously the best solution for given exercise is p0. But where to get DOOM's music engine sources? I am very bad in terms of debugging DOS code. Yes, I am looking for OPL3 implementation of FM synthesizer that will give me Doom-like music. Actually I've found that NWT got synth code from MUSplayer written by Vladimir Arnost. I've got latest version of his player, but it sound even more different. Then I realized that it uses different instrument set, I have extracted GENMIDI.OP2 from Doom2.wad and used it with MUSPlayer -- now it plays very close to Doom, but there are couple of places where sound is different. I wonder if anybody by chance have seen "better" MUS player for Doom MUS files? P.S. And by the way -- I like how Doom sounds on OPL2/3. All this wavetable/sampled/GUS/AWE stuff sucks when used with Doom. Well, at least for my ears. That is why I am trying to create aforementioned driver -- Doom runs fine in VirtualPC (which is free now), all it lacks is music.
  5. Crusader Mike

    MUS player (with sources)

    > Registered just to make one post no, I plan to post more :-)
  6. Crusader Mike

    MUS player (with sources)

    Hi I am looking for a MUS player that plays music as close to DOOM's engine as possible. Basically, I want to create Windows driver for virtual MIDI device that will produce the same music we have heard on our SB16s while playing Doom2 long ago. So far I have tried to: - convert MIDI to MUS 'on-the-fly' - play MUS according to algorithm listed in NWT's sources unfortunately, it plays some music clearly wrong. Any ideas where I can get more precise playback algorithm? Bye. Sincerely yours, Mike.
×