Doom with Midi Sound (Sound Canvas)

User avatar
NightShadowPT
Posts: 208
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 9 times

Doom with Midi Sound (Sound Canvas)

Unread post 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. :)
Televicious
Posts: 93
Joined: Mon May 25, 2020 8:23 pm
Been thanked: 4 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post by Televicious »

what midi interface are you using?
User avatar
NightShadowPT
Posts: 208
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 9 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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...
suverman
Posts: 84
Joined: Mon May 25, 2020 1:17 am
Has thanked: 42 times
Been thanked: 6 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post by suverman »

I tried it with my DOS setup, doesnt work here either.
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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...
User avatar
NightShadowPT
Posts: 208
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 9 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
User avatar
NegSol
Posts: 49
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 31 times
Been thanked: 5 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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. :?
User avatar
NegSol
Posts: 49
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 31 times
Been thanked: 5 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post by NegSol »

Never mind - Sorgelig is on it already :)

viewtopic.php?f=27&t=697
User avatar
NightShadowPT
Posts: 208
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 9 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
User avatar
NightShadowPT
Posts: 208
Joined: Mon May 25, 2020 9:56 am
Has thanked: 5 times
Been thanked: 9 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
thorr
Top Contributor
Posts: 1100
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 537 times
Been thanked: 252 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
Schyz
Posts: 63
Joined: Sun Jul 12, 2020 4:53 pm
Has thanked: 18 times
Been thanked: 13 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
thorr
Top Contributor
Posts: 1100
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 537 times
Been thanked: 252 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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?
Schyz
Posts: 63
Joined: Sun Jul 12, 2020 4:53 pm
Has thanked: 18 times
Been thanked: 13 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post by bbond007 »

Not using SoftMPU! --> https://youtu.be/IxORU_e3owI
tlaloc
Posts: 26
Joined: Wed May 27, 2020 6:59 pm
Has thanked: 1 time

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
User avatar
NegSol
Posts: 49
Joined: Mon May 25, 2020 4:34 pm
Has thanked: 31 times
Been thanked: 5 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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:
User avatar
Cebion
Posts: 115
Joined: Sun May 24, 2020 7:30 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
User avatar
Caldor
Top Contributor
Posts: 930
Joined: Sat Jul 25, 2020 11:20 am
Has thanked: 112 times
Been thanked: 111 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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?
User avatar
Cebion
Posts: 115
Joined: Sun May 24, 2020 7:30 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
User avatar
Caldor
Top Contributor
Posts: 930
Joined: Sat Jul 25, 2020 11:20 am
Has thanked: 112 times
Been thanked: 111 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
User avatar
SuperBabyHix
Posts: 152
Joined: Sun May 24, 2020 8:26 pm
Has thanked: 43 times
Been thanked: 34 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
thorr
Top Contributor
Posts: 1100
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 537 times
Been thanked: 252 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
tlaloc
Posts: 26
Joined: Wed May 27, 2020 6:59 pm
Has thanked: 1 time

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
Higgy
Posts: 83
Joined: Mon May 25, 2020 9:37 am
Has thanked: 4 times
Been thanked: 27 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
thorr
Top Contributor
Posts: 1100
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 537 times
Been thanked: 252 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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?
User avatar
SuperBabyHix
Posts: 152
Joined: Sun May 24, 2020 8:26 pm
Has thanked: 43 times
Been thanked: 34 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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
thorr
Top Contributor
Posts: 1100
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 537 times
Been thanked: 252 times

Re: Doom with Midi Sound (Sound Canvas)

Unread post 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.
Post Reply