Page 1 of 1

PMDoom music?

Posted: Tue Jun 12, 2018 1:27 pm
by Trixster
Hi, I’m running Patrice’s PMDoom on my CT60e. All works fine using the Ultimate Doom WAD file but I get no music.

Does anyone know how to enable game music? Any way to get it to work with my MT-32 as well?

Thanks.

Re: PMDoom music?

Posted: Tue Jun 12, 2018 6:49 pm
by mikro
AFAIK the only 'port' with music is Doug's BadMood. The biggest problem with all the games (Doom, Hexen, Duke Nukem 3D, ...) from that era is that they require significant resources to emulate SoundBlaster instruments and stuff. Yes, the DSP is an ideal candidate for such job but it requires some dedication. There's even a library for that (https://doomwiki.org/wiki/TiMidity) but it's very CPU hungry for our humble 060s.

I guess to get it working via MIDI would be far easier. There's a project with a very similar (same?) goal, Saulot's amidilib: https://n0kturnal.github.io/amidilib/ so who knows?

Re: PMDoom music?

Posted: Wed Jun 13, 2018 4:22 am
by jury
Also maybe this will be released some day:
viewtopic.php?f=26&t=30912&p=308184&hilit=dsp#p308184

Re: PMDoom music?

Posted: Wed Jun 13, 2018 8:29 pm
by Patrice Mandin
I once thought about using some kind of midi to ym conversion, i.e. downmixing the 16 channels midi to 3 channels ym (drum + instrument 1 + instrument 2) by picking the most important parts of the midi music. I don't know ym enough to make even a simple test or experimentation.

Re: PMDoom music?

Posted: Thu Jun 14, 2018 8:35 pm
by Eero Tamminen
Doug's music code in BadMood is pretty nice. There's support both for playing the music through MIDI, and Doug's CPU-side soft synthesizer that AFAIK takes only few percent of CPU.

Re: PMDoom music?

Posted: Fri Jun 15, 2018 7:12 am
by mikro
Eero Tamminen wrote:Doug's music code in BadMood is pretty nice. There's support both for playing the music through MIDI, and Doug's CPU-side soft synthesizer that AFAIK takes only few percent of CPU.

Yeah but wasn't the music specially preprocessed and/or tweaked for his player? I mean it's not a universal player where you just incbin your favourite mid file and play it, is it.

Re: PMDoom music?

Posted: Fri Jun 15, 2018 11:08 am
by PeterS
Several years ago I had PM Doom running on the Milan but I don't think I ever got the sounds working.

Re: PMDoom music?

Posted: Sun Jun 17, 2018 8:15 pm
by Eero Tamminen
mikro wrote:Yeah but wasn't the music specially preprocessed and/or tweaked for his player? I mean it's not a universal player where you just incbin your favourite mid file and play it, is it.


I think the player eats fairly straightforward MIDI-data, and that some early version of the MIDI player required just converting the data from multi-channel to single channel.

If I remember correctly, most of the effort spent by Doug went into tweaking the softsynth instrument sounds to match well to the songs themselves. That's normally a problem with non-Atari softsynths too, when song has been written for some specific device / soundfont. :-)