*START HERE* SoftMPU 1.91 - Software Intelligent MPU-401 Emulator

Forum for discussion of bugs, code, and other aspects of SoftMPU.

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby robot1 » 2013-7-30 @ 11:22

OK. So SoftMPU always gets all messages from the games? I was not aware of it.
robot1
Newbie
 
Posts: 6
Joined: 2013-7-25 @ 20:55

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-7-30 @ 12:43

Yep, it receives all messages and passes them on to the hardware.

It might be possible to send extra note off commands defensively though, in anticipation of the hardware sending extra unwanted note ons?

I think there's a post somewhere with an analysis of the MIDI output caused by the hanging note bug, will try to find it.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby Jolaes76 » 2013-7-30 @ 13:00

I think this is the thread in question. You should consult with Cloudschatze :)

viewtopic.php?f=46&t=20849&start=40
"Ita in vita ut in lusu alae pessima iactura arte corrigenda est."
Jolaes76
Oldbie
 
Posts: 743
Joined: 2011-3-23 @ 09:31
Location: Hungary

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-7-30 @ 16:58

Thanks for that. In the case that Cloudschatze observed, the spurious notes used the velocity from the previous note on request. Of course, this may not be the only failure mode...

So perhaps this is worth a try?

- SoftMPU keeps track of the on/off status of all notes (1 bit x 128 notes x 16 channels = 256 bytes)
- For each note on request, use the velocity as a note index and check if that note is already on
- If it's not on, send a note off request, just in case the hardware generates a spurious note on

Another strategy might just be to insert a delay between commands to try to avoid provoking the problem in the first place.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby robot1 » 2013-7-30 @ 19:39

I don't know how complicated this will be, but reading from MIDI In and compare it to what should have sended would also be an option.
You just have to add a MIDI cable back from MIDI OUT/THROUGH of an external device or just a loopback cable in case of a MIDI daugherboard.
robot1
Newbie
 
Posts: 6
Joined: 2013-7-25 @ 20:55

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby robot1 » 2013-7-30 @ 19:45

bjt wrote:Another strategy might just be to insert a delay between commands to try to avoid provoking the problem in the first place.


As far as I know the hanging notes bugs only have been observed if digital sound and MIDI messages are processed together by the DSP. So a delay may prevent some buffer overflow ...
robot1
Newbie
 
Posts: 6
Joined: 2013-7-25 @ 20:55

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-7-30 @ 22:50

It's a non-starter, unfortunately - the port trapping stuff doesn't work for apps that run under a DOS extender.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby PARUS » 2013-8-02 @ 17:32

What is SoftMPU 1.5 on ebay? What is its difference with other versions?
User avatar
PARUS
Member
 
Posts: 315
Joined: 2013-4-14 @ 04:03

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby Targaff » 2013-8-03 @ 04:37

It says in the description.
Intel CC820 | PIII 667 | 2x128MB SDRAM | 3Dfx Voodoo 5 5500 @ Dell P790 | Creative SB PCI128 | Fujitsu MPC3064AT 6GB + QUANTUM FIREBALLlct10 10 GB | SAMSUNG DVD-ROM SD-608 | IOMEGA ZIP 100 | Realtek RTL8139C | Agere Win Modem
User avatar
Targaff
Member
 
Posts: 244
Joined: 2002-11-19 @ 17:40

Re: SoftMPU 1.4 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-8-03 @ 07:40

The only change in 1.5 at the moment is Roland RA-50 support. Will probably release it next weekend if nothing else comes up.

The eBay auction is just another way to get the word out to people looking for an MPU-401.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.5 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-8-09 @ 12:21

Bump - new release, see first post for details.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.5 - Software Intelligent MPU-401 Emulator

Postby rgart » 2013-8-09 @ 12:27

thanks again! bjt!
User avatar
rgart
Oldbie
 
Posts: 738
Joined: 2013-4-16 @ 05:32
Location: Australia

Re: SoftMPU 1.5 - Software Intelligent MPU-401 Emulator

Postby Kahenraz » 2013-8-11 @ 17:56

Would you be willing to write a TSR to fix the buffer overrun issue and hanging now bug for those of us who already have an intelligent mode MPU-401?

Thanks.
User avatar
Kahenraz
Oldbie
 
Posts: 524
Joined: 2004-1-22 @ 04:57

Re: SoftMPU 1.5 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-8-11 @ 18:36

Nothing to stop you running SoftMPU on an intelligent-mode interface - it'll just take over. I tested it on a MIDIMAN MM-401 recently. This does require a SB-compatible in the same machine though.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby bjt » 2013-8-30 @ 13:56

Bump - new release, see first post for details.
User avatar
bjt
Oldbie
 
Posts: 1430
Joined: 2013-2-06 @ 10:40
Location: UK

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby Jolaes76 » 2013-8-30 @ 14:17

Added support for the 2nd most popular DOS memory manager at such short notice...? I missed the preceeding drumbeat somehow :)
btw you can add Mediavision Jazz 16 to the list of compatible cards. IRQ 2/9 is supported by default. Laser Squad runs without a glitch.
Last edited by Jolaes76 on 2013-8-30 @ 14:29, edited 1 time in total.
"Ita in vita ut in lusu alae pessima iactura arte corrigenda est."
Jolaes76
Oldbie
 
Posts: 743
Joined: 2011-3-23 @ 09:31
Location: Hungary

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby Stiletto » 2013-8-30 @ 14:29

Jolaes76 wrote:Added support for the 2nd most popular DOS memory manager at such short notice...? I missed the preceeding drumbeat somehow :)


Well, the drumming was coming from elianda:
drumbeat: viewtopic.php?p=314831#p314831
drumbeat: viewtopic.php?p=315028#p315028
drumbeat: viewtopic.php?p=315069#p315069
drumbeat: viewtopic.php?p=315078#p315078

All in the other thread. ;)
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 4106
Joined: 2002-7-01 @ 21:57

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby Jolaes76 » 2013-8-30 @ 14:30

aah that figures :)
"Ita in vita ut in lusu alae pessima iactura arte corrigenda est."
Jolaes76
Oldbie
 
Posts: 743
Joined: 2011-3-23 @ 09:31
Location: Hungary

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby elianda » 2013-8-30 @ 15:07

Yeah well, my original patch was just a raw unpolished implementation for QEMM and bjt did a great job putting everything together.
The main changes are
- memory manager detection
- get the different code paths working, especially since EMM386s API uses protected mode and QEMMs API uses Virtual 8086 mode. But the main routines run the same code for both modes.

The main drawback is the nearly non-existent documentation, so we have to check the exact behavior for each API call.
One thing f.e. in question is, if the QEMMs port trap are also in effect when using a dos extender. (EMM doesn't work there)
Retronn.de - Vintage Hardware Gallery, Drivers, Guides, HQ Videos.
Youtube Channel
FTP Server - Driver Archive and more
DVI2PCIe alignment and 2D image quality measurement tool
User avatar
elianda
l33t
 
Posts: 2225
Joined: 2006-4-21 @ 16:56
Location: Halle / Germany

Re: SoftMPU 1.6 - Software Intelligent MPU-401 Emulator

Postby rgart » 2013-8-30 @ 22:59

bjt wrote:Bump - new release, see first post for details.


thanks again bjt!

SoftMPU is god.
User avatar
rgart
Oldbie
 
Posts: 738
Joined: 2013-4-16 @ 05:32
Location: Australia

PreviousNext

Return to SoftMPU

Who is online

Users browsing this forum: No registered users and 1 guest