Page 1 of 2

Doom with Midi Sound (Sound Canvas)

Posted: Fri May 29, 2020 3:11 pm
by NightShadowPT
Hi,

Has anyone been able to successfully get a Roland Sound Canvas to work with Doom?

The game runs fine, but I only get sound effects from the Sound Blaster.

And before you ask, Yes, I have run the setup and selected Sound Canvas as a music card. :)

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sat May 30, 2020 9:30 pm
by Televicious
what midi interface are you using?

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun May 31, 2020 9:54 am
by NightShadowPT
Televicious wrote: Sat May 30, 2020 9:30 pm what midi interface are you using?
A Roland UM-ONE connected to a Roland SC-88 Pro.

It works flawlessly with other games, but I can't get a note out of Doom...

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun May 31, 2020 10:17 am
by suverman
I tried it with my DOS setup, doesnt work here either.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun Jun 07, 2020 3:49 am
by bbond007
Programs that use 32bit DOS extenders typically don't work with SoftMPU.

Doom really does not run at a playable frame-rate anyway...

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun Jun 07, 2020 10:14 am
by NightShadowPT
bbond007 wrote: Sun Jun 07, 2020 3:49 am Programs that use 32bit DOS extenders typically don't work with SoftMPU.
This may explain it...

Are there any alternatives/solutions?

Cheers

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun Jul 05, 2020 7:58 pm
by NegSol
bbond007 wrote: Sun Jun 07, 2020 3:49 am Programs that use 32bit DOS ...
Anything I am doing wrong? When I select ˋchange soundfontsˋ all I get is no files and I cannot navigate to search for .sf2 files. All my .sf2 are in the linux\soundfonts dir. I also did run the midilink update script run. Is the menu item reserved for future use? Would be nice as until now I use scripts to switch the midilink.ini contents when i want to switch soundfonts. This also means i have to exits the core each time i want to switch. :?

Re: Doom with Midi Sound (Sound Canvas)

Posted: Sun Jul 05, 2020 9:07 pm
by NegSol
Never mind - Sorgelig is on it already :)

viewtopic.php?f=27&t=697

Re: Doom with Midi Sound (Sound Canvas)

Posted: Mon Jul 06, 2020 1:14 pm
by NightShadowPT
NegSol wrote: Sun Jul 05, 2020 9:07 pm Never mind - Sorgelig is on it already :)

viewtopic.php?f=27&t=697
Unfortunately I don't think that´s going to fix Midi with Doom...
It seems to be a different problem because it doesn't work even with a real Sound Canvas as the problem is with SoftMPU and 32bit extenders.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Mon Jul 06, 2020 1:29 pm
by NightShadowPT
NightShadowPT wrote: Mon Jul 06, 2020 1:14 pm
NegSol wrote: Sun Jul 05, 2020 9:07 pm Never mind - Sorgelig is on it already :)

viewtopic.php?f=27&t=697
Unfortunately I don't think that´s going to fix Midi with Doom...
It seems to be a different problem because it doesn't work even with a real Sound Canvas as the problem is with SoftMPU and 32bit extenders.

Short of having an MPU-401 implemented in the core, I don't think it will ever work on MiSTer.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Mon Aug 03, 2020 11:01 pm
by thorr
When using a Roland UM One, do you have to use the UART USB port on the DE10 Nano, or can you use any normal USB port? I haven't tried this yet and I noticed the UART USB port on the DE10 and wondered if that was required for UART related stuff. Thanks.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Mon Aug 03, 2020 11:37 pm
by Schyz
I think Sorgelig is working on an actual solution:
https://github.com/MiSTer-devel/ao486_M ... bc0ee63a7f

If a "real" MPU-401 is implemented on 330h instead of redirecting the MIDI traffic to the serial port, there is no need for SoftMPU and games in protected mode or even Win9X software will be able to use MIDI. The "dumb" mode should work great with Sound Canvas and General MIDI, and some MT-32 games that don't require intelligent mode.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 12:01 am
by thorr
Awesome! I was hoping for this. I posted about HardMPU a few times and it supports both modes and is open source. This could be used to learn how to implement it. My question still stands though. Currently, can you use a normal USB port with the Roland UM One or do you have to use the UART USB port on the DE10 Nano?

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 12:15 am
by Schyz
thorr wrote: Tue Aug 04, 2020 12:01 am Awesome! I was hoping for this. I posted about HardMPU a few times and it supports both modes and is open source. This could be used to learn how to implement it. My question still stands though. Currently, can you use a normal USB port with the Roland UM One or do you have to use the UART USB port on the DE10 Nano?
Sorry, I've never tried, but I found this:
https://github.com/MiSTer-devel/Main_Mi ... o486-Cores

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 5:06 am
by bbond007
Not using SoftMPU! --> https://youtu.be/IxORU_e3owI

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 7:13 am
by tlaloc
bbond007 wrote: Tue Aug 04, 2020 5:06 am Not using SoftMPU! --> https://youtu.be/IxORU_e3owI
I'm guessing by the looks of the video that you use actual hardware with a MIDI to USB adapter to interface with the DE-10 Nano?

Please tell me you're not using the actual hardware and that it is possible to achieve that sound output from games like doom just through the DE-10 Nano alone...

Edit: found my answer, I guess it is possible w/out MIDI hardware (still would like to know if you're using no external MIDI hardware [or 'softmpu'] in that vid]):
https://www.youtube.com/watch?v=TlRKV6cUvf4

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 7:36 am
by NegSol
bbond007 wrote: Tue Aug 04, 2020 5:06 am Not using SoftMPU! --> https://youtu.be/IxORU_e3owI
Great news!

I tested Doom an Doom 2 with the old Cache 29 core. While the speed is really good I always got random firing of the weapon. Mostly it occurs when pressing two keys at the same time (like strafe toggle alt + left or space + strafe right key). It is kind of an annoyance in early level but should be a show stopper once you get the rocket (I know you can get it via cheat or secret early in the game).

Anyone know of a trick here to avoid the misfiring? Maybe change keyboard buffering settings? :geek:

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 7:39 am
by Cebion
bbond007 wrote: Tue Aug 04, 2020 5:06 am Not using SoftMPU! --> https://youtu.be/IxORU_e3owI
You're such a beast!
Can't wait to use my MT32 and SC55 without SoftMPU.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 8:02 am
by bbond007
tlaloc wrote: Tue Aug 04, 2020 7:13 am Please tell me you're not using the actual hardware and that it is possible to achieve that sound output from games like doom just through the DE-10 Nano alone...
Yes I'm using actual hardware, but you can get good results with FluidSynth too --> https://youtu.be/jU79Zf4sOCQ

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 9:20 am
by Caldor
bbond007 wrote: Tue Aug 04, 2020 8:02 am
tlaloc wrote: Tue Aug 04, 2020 7:13 am Please tell me you're not using the actual hardware and that it is possible to achieve that sound output from games like doom just through the DE-10 Nano alone...
Yes I'm using actual hardware, but you can get good results with FluidSynth too --> https://youtu.be/jU79Zf4sOCQ
I still do not understand what this means tbh. Do you have special hardware connector to the MiSTer to make this work? With the AO486 now having hardware MPU instead of software MPU to make use of that hardware? It uses UART to use the hardware connected to another computer or system in the network?

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 9:31 am
by Cebion
Caldor wrote: Tue Aug 04, 2020 9:20 am
bbond007 wrote: Tue Aug 04, 2020 8:02 am
tlaloc wrote: Tue Aug 04, 2020 7:13 am Please tell me you're not using the actual hardware and that it is possible to achieve that sound output from games like doom just through the DE-10 Nano alone...
Yes I'm using actual hardware, but you can get good results with FluidSynth too --> https://youtu.be/jU79Zf4sOCQ
I still do not understand what this means tbh. Do you have special hardware connector to the MiSTer to make this work? With the AO486 now having hardware MPU instead of software MPU to make use of that hardware? It uses UART to use the hardware connected to another computer or system in the network?
For example Roland Um One MK2 to connect the Mister via USB to SC55 or MT32 etc.
Or you can already use munt or another synthsoftware on another device like a raspberry pi.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 9:45 am
by Caldor
Cebion wrote: Tue Aug 04, 2020 9:31 am
Caldor wrote: Tue Aug 04, 2020 9:20 am
bbond007 wrote: Tue Aug 04, 2020 8:02 am

Yes I'm using actual hardware, but you can get good results with FluidSynth too --> https://youtu.be/jU79Zf4sOCQ
I still do not understand what this means tbh. Do you have special hardware connector to the MiSTer to make this work? With the AO486 now having hardware MPU instead of software MPU to make use of that hardware? It uses UART to use the hardware connected to another computer or system in the network?
For example Roland Um One MK2 to connect the Mister via USB to SC55 or MT32 etc.
Or you can already use munt or another synthsoftware on another device like a raspberry pi.
Oh... that is good to know. Could be interesting to setup a Pi to be used as MPU for the MiSTer. I even just got two Pi Zeros, so maybe I should try with one of those. But... first I want to do more tests with games and software on the newest cores. I think I can make a better Windows 98SE install that will hopefully install without errors.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 2:49 pm
by SuperBabyHix
Bbond, correct me if I am wrong, but this is a non-intelligent MPU (UART) much like that found on popular Sound Blaster and clone cards back in the day. For games that require intelligent mode you will still have to use SoftMPU. If I remember correctly, that was why SoftMPU was created in the first place. I can't say that this is every game that requires intelligent mode, but it's definitely a good number of them: https://github.com/bjt42/softmpu/wiki/C ... Mode-Games

That being said, this is a great improvement. Thank you to all the devs.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Tue Aug 04, 2020 11:56 pm
by thorr
bbond007 wrote: Tue Aug 04, 2020 5:06 am Not using SoftMPU! --> https://youtu.be/IxORU_e3owI
YES!!!!! I have the same model Sound Canvas and am looking forward to trying this. This is a dream come true. I hope intelligent mode is not far behind.

Can Munt on the Linux half of the Mister be used with this? How's the performance of that? Maybe we need a Roland MT-32 in FPGA as well, lol.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Wed Aug 05, 2020 3:21 am
by bbond007
thorr wrote: Tue Aug 04, 2020 11:56 pm Can Munt on the Linux half of the Mister be used with this?
Yes, although Doom uses General Midi.
thorr wrote: Tue Aug 04, 2020 11:56 pm How's the performance of that?
Exact same as it was with SoftMPU.
thorr wrote: Tue Aug 04, 2020 11:56 pm Maybe we need a Roland MT-32 in FPGA as well, lol.
Sure, but I think you'd need to use two MiSTer setups connected via UDP or other method. The FPGA very pretty full already with ao486.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Wed Aug 05, 2020 8:19 pm
by tlaloc
Caldor wrote: Tue Aug 04, 2020 9:20 am
bbond007 wrote: Tue Aug 04, 2020 8:02 am
tlaloc wrote: Tue Aug 04, 2020 7:13 am Please tell me you're not using the actual hardware and that it is possible to achieve that sound output from games like doom just through the DE-10 Nano alone...
Yes I'm using actual hardware, but you can get good results with FluidSynth too --> https://youtu.be/jU79Zf4sOCQ
I still do not understand what this means tbh. Do you have special hardware connector to the MiSTer to make this work? With the AO486 now having hardware MPU instead of software MPU to make use of that hardware? It uses UART to use the hardware connected to another computer or system in the network?
After many trials, finally was able to get the same sounds that the eminent 'bbond007' had demonstrated in the FluidSynth Doom youtube link above.
It seems that after uploading the ao486 rbf/binary within the latest 'ao486_Cache41_9c63fe4.zip' file into the DE-10 Nano, as well as its accompanying bios/mister files, the settings that I SWEAR did not work in any of the previous beta builds 'bbond007' has posted... NOW (inexplicably) WORK!!

Here's the MS-DOS 6.22 VHD setup that worked for me, for anyone that was as curious as I to see how to get a working configuration that will allow you to achieve similar results:


DOWNLOADS:
=====================================
[Mr. Fusion - for the scripts! (i.e to run 'media\fat\scripts\soundfont_install.sh' in MiSTer for downloading and then placing 'Roland CM-32 ROMS' in '\media\fat\linux\mt32-rom-data' instead of the 'MT-32 ROMS' it defaults to, for fun... even though they sound the same to me)]
https://github.com/MiSTer-devel/mr-fusion

['ao486_Cache41_9c63fe4.zip' from viewtopic.php?p=5058#p5058]
download/file.php?id=587

[Microsoft MS-DOS 6.22 Plus Enhanced Tools (3.5-1.44mb)]
https://winworldpc.com/product/ms-dos/622

[CuteMouse v2.1 beta 4]
http://cutemouse.sourceforge.net/downlo ... se21b4.zip

[Sound Blaster 2.0 Bundle (1994) (3.5-720k)]<--- NOT NEEDED, SINCE the 'ao486_Cache38_09fcf84.zip' Aug. 7th, 2020 posting
(Note: FOR DARKSUN, INSTALLING THIS IS NOT NECESSARY, BUT YOU WILL HAVE TO SELECT 'Sound Blaster Regular' FOR BOTH MUSIC & SOUND FX AS WELL AS SELECT 'NO' WHEN PROMPTED TO USE DEFAULT SETTINGS [I.E. USE 'IRQ: 5' INSTEAD OF THE DEFAULT SETTING OF 'IRQ: 7'])
https://winworldpc.com/product/sound-bl ... blaster-20

[SoftMPU]<--- NOT NEEDED, SINCE the ''ao486_Cache41_9c63fe4.zip' Aug. 7th, 2020 posting
(Note: FOR MONKEY ISLAND 2, IN ORDER TO HEAR MIDI MUSIC WITHOUT EXTERNAL MIDI HARDWARE - INSTALLING THIS IS NECESSARY, AS WELL AS CHANGING TO 'Uartmode : MIDI : Local / MUNT')
https://github.com/bjt42/softmpu/archive/v1.91.zip

[QEMM 8.03]<--- HELPS TO MAKE GAMES LIKE DARKSUN RUN
https://winworldpc.com/product/qemm/8x

[Ultimate DOOM]
https://www.gog.com/game/the_ultimate_doom


AUTOEXEC.BAT (the LAST LINE is OPTIONAL, BUT NEEDED FOR CERTAIN GAMES LIKE SQ3, MONKEY ISLAND 2, LSL1, X-SIERRA, etc.):
=====================================

Code: Select all

C:\QEMM\LOADHI /R:1 /RES=29120 /SQT=D000-D3FF C:\DOS\SMARTDRV.EXE /X
@ECHO OFF
PROMPT $p$g
PATH C:\QEMM;C:\DOS
SET TEMP=C:\DOS
C:\QEMM\LOADHI /R:2 /LO C:\DOS\CTMOUSE.EXE
SOFTMPU.EXE /SB:220 /IRQ:5 /MPU:330

CONFIG.SYS:
=====================================

Code: Select all

device=c:\qemm\dosdata.sys
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\QEMM\QEMM386.SYS RAM X=A000-C7FF ARAM=D000-DFFF R:0
device=c:\qemm\dos-up.sys @c:\qemm\dos-up.dat
DEVICE=C:\QEMM\LOADHI.SYS /R:2 /RES=2912 /SQT=FC00-FCFF /SIZE=11520 C:\QEMM\QDPMI.SYS SWAPFILE=DPMI.SWP SWAPSIZE=1024
DOS=HIGH
FILES=40
SHELL=C:\QEMM\LOADHI.COM /R:1 /RES=3008 /SQT=D000-D5FF C:\COMMAND.COM C:\ /P

MiSTer SETTINGS:
=====================================
FluidSynth soundfont settings as defined in '\media\fat\linux\MidiLink.INI':
FSYNTH_SOUNDFONT = /media/fat/linux/SOUNDFONT/sc-55.sf2

(Also, 'Roland MT-32 ROMS' in '\media\fat\linux\mt32-rom-data' instead of the 'CM-32 ROMS' it defaults to)


MiSTer 'ao486_Cache38_09fcf84' CORE SETTINGS:
=====================================
16/24BIT MODE: BGR [default]
16BIT FORMAT: 1555 [default]
FM MODE: OPL3 [not default]
RAM SIZE: 256MB [default]
SPEED: 100Mhz [default]
UART SPEED: Normal [default]

Uartmode : MIDI : Local / FSYNTH
UART BAUD SPEED : ao486 : 38400 BPS


MISC. RESOURCES:
=====================================
https://github.com/MiSTer-devel/mr-fusion
https://github.com/MiSTer-devel/Main_Mi ... o486-Cores
https://github.com/MiSTer-devel/MidiLink_MiSTer

Note that you can setup MiSTer using Mr. Fusion to run the 'media\fat\scripts\soundfont_install.sh' script that was mentioned in below referenced video:
https://youtu.be/uY_SNwtX7gM


DOOM SETTINGS:
=====================================
Music Sound Card: General MIDI [default port 330]
SoundFX Card: Sound Blaster [default settings as well]


END RESULTS (KIND OF?):
=====================================
https://youtu.be/jU79Zf4sOCQ

Re: Doom with Midi Sound (Sound Canvas)

Posted: Wed Aug 05, 2020 9:25 pm
by Higgy
Hi guys,

Have you seen this bare metal MT-32 emulator (via Munt) using a RPi :
https://github.com/dwhinham/mt32-pi

There is a nice RPi hat, which I have one on order:
https://www.arananet.net/pedidos/produc ... berry-pi3/
Also ordered a USB MIDI interface, so hopefully in a couple of weeks I can test.

Re: Doom with Midi Sound (Sound Canvas)

Posted: Thu Aug 06, 2020 8:50 pm
by thorr
Higgy wrote: Wed Aug 05, 2020 9:25 pm Hi guys,

Have you seen this bare metal MT-32 emulator (via Munt) using a RPi :
https://github.com/dwhinham/mt32-pi

There is a nice RPi hat, which I have one on order:
https://www.arananet.net/pedidos/produc ... berry-pi3/
Also ordered a USB MIDI interface, so hopefully in a couple of weeks I can test.
That is way cool! I haven't done much testing with Munt on the Mister directly. I have only run the ScummVM script and the MT32 audio was a little choppy at times, but that was also running the Monkey Island game at the same time. Is Munt choppy all on its own, making the above RPi thing worth doing?

Re: Doom with Midi Sound (Sound Canvas)

Posted: Thu Aug 06, 2020 9:41 pm
by SuperBabyHix
In my experience Munt has gotten choppy even with ao486. The Pi Mt-32 looks really slick, especially with the LCD display. I have a Pi gathering dust so I may have to add that to my growing list of projects. That being said, I almost always have my desktop PC running since I use it as a makeshift audio mixer/switcher. Because of that I run Munt on my desktop and route the Mister's midi over UDP using bbond007's UDPMIDI utility: https://www.atari-forum.com/viewtopic.p ... 70#p400070

There is also a guide that bbond wrote on doing the UDP midilink on a Pi:
viewtopic.php?t=375

Re: Doom with Midi Sound (Sound Canvas)

Posted: Thu Aug 06, 2020 10:01 pm
by thorr
Thanks! I wonder if the Pi project and hat would work on a Pi 4. That would have even more power in case it helps. Edit: reading the github page, the project works on a Pi 4. The hat is out of stock on the pre-order, but it wouldn't be hard to build one. Of course, just using the wireless option works too if you only want to use it with the Mister.