DreamBlaster S2P : Small form factor General MIDI on parallel port

Discussion about old sound cards, MIDI devices and sound related accessories.

DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby dreamblaster » 2018-1-13 @ 12:43

DreamBlaster S2P : General MIDI Wavetable/FM Synthesis on parallel port
The prototypes work fine :-)
This is a parallel port version of DreamBlaster S2
Adding support for this to SoftMPU is planned.

S2P.jpg
dreamblaster
Member
 
Posts: 475
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby matze79 » 2018-1-13 @ 13:21

You are crazy ;)
matze79
Oldbie
 
Posts: 834
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby F2bnp » 2018-1-13 @ 13:54

:O
User avatar
F2bnp
l33t
 
Posts: 3254
Joined: 2007-9-23 @ 10:19

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby dreamblaster » 2018-1-14 @ 22:28

Here's a first demo : DreamBlaster S2P + SoftMPU (modified version, thanks pdr !!) :
https://youtu.be/tPb4DqWJkA8
dreamblaster
Member
 
Posts: 475
Joined: 2015-1-18 @ 19:34
Location: Belgium

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby pdw » 2018-1-14 @ 22:49

Here's the custom version of SoftMPU --> https://github.com/pdewacht/softmpu
Only tested with a few games so far but it seems to work fine.
pdw
Newbie
 
Posts: 19
Joined: 2016-12-26 @ 18:45

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby derSammler » 2018-1-14 @ 23:02

Wouldn't it make more sense to use the serial port in this case instead of the parallel port? The chip uses serial input anyway and it would leave the parallel port free for another device. Imagine to have a notebook with no soundcard, but a Dreamblaster on COM2 and a Covox on LPT. :D :D
derSammler
Oldbie
 
Posts: 1022
Joined: 2017-4-14 @ 11:30
Location: Germany

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-14 @ 23:21

derSammler wrote:Wouldn't it make more sense to use the serial port in this case instead of the parallel port? The chip uses serial input anyway and it would leave the parallel port free for another device. Imagine to have a notebook with no soundcard, but a Dreamblaster on COM2 and a Covox on LPT. :D :D


The chip has both a serial and a parallel interface. The parallel interface is much simpler to use.
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby mrau » 2018-1-14 @ 23:24

doesn't it take more cpu grunt to feed this with data over serial rather than paralytic? i remember trying a very small real time transfer on a k6-2 iirc over serial/paral - it was a disastrous slowdown

what chip is that anyway?
mrau
Oldbie
 
Posts: 886
Joined: 2015-11-28 @ 12:43

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-14 @ 23:41

mrau wrote:doesn't it take more cpu grunt to feed this with data over serial rather than paralytic? i remember trying a very small real time transfer on a k6-2 iirc over serial/paral - it was a disastrous slowdown


In theory it doesn't, because you have a UART FIFO buffer. So you can just send bytes to the interface, and the UART will clock out the bits at the correct speed.
In practice however, a normal serial port cannot operate at the speed required for MIDI, so you'd need to manually bang out the bits.
With the parallel port, there's some simple handshaking for transferring one byte at a time.
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby gdjacobs » 2018-1-15 @ 01:14

Scali wrote:In practice however, a normal serial port cannot operate at the speed required for MIDI, so you'd need to manually bang out the bits.


Sort of. The primary limitation is with the base clock frequency and that's down to backwards compatibility. A UART driven with a 4 mhz crystal, for instance, would work like a treat. I believe some more modern serial modules have onboard PLL capabilities that can be programmed via LPC bus.
User avatar
gdjacobs
l33t
 
Posts: 4645
Joined: 2015-11-03 @ 05:51
Location: The Great White North

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby matze79 » 2018-1-15 @ 06:47

i connect my SC-7 to RS232 and it works very well even on 386SX-16.
But the SC-7 has Support for RS232.

I really like this, but it will also not work with 286's :/
Are there some plan to offer something like adpatch ?

Will this work with Windows 3.x some day ?
matze79
Oldbie
 
Posts: 834
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby appiah4 » 2018-1-15 @ 07:56

You, sir, are amazing. If you can combine this with an OPL3 chip on the same board and build it as a fully working parallel port sound card/wave table the internet will honor your name for centuries to come.
A500:Rev6|512K+RTC|ACA500+|HxC/df1|C1084S
1994:PCI597-1|P133|32MB|Trio64|ES1868/S2
1997:S1573S|K6-2/400|64MB|M220|V2-SLI|CT4500/32M
2000:GA-BX2000|P3-700E|256MB|GF2GTS|MX300
DELL:GX110LP|PIII-1000|512MB|G450|128i/X3M
User avatar
appiah4
Oldbie
 
Posts: 1361
Joined: 2017-2-19 @ 07:36

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-15 @ 16:38

Thanks for the work on SoftMPU, pdw!
I tried to use my MIDI player as a test tool, and I got some sound out of it, but it was not correct.
Now it seems that my main issue was that I really need to leave the USB power off the chip for a couple of seconds before it resets. So during my testing I often had 'garbage' stuck in the chip.
Now I have it working!
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby matze79 » 2018-1-15 @ 18:05

When can i buy one ?
matze79
Oldbie
 
Posts: 834
Joined: 2014-12-12 @ 14:25
Location: Germany, Frankonia

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-15 @ 18:37

I've done a quick-and-dirty MT-32 compatibility mode for my MIDI player, testing it with the Monkey Island soundtrack:
https://youtu.be/3CXgt-tLod0

It shouldn't be too difficult to add this to SoftMPU.
The DreamBlaster wants a CC 0 127 as a prefix for every PC command, to select an MT-32 instrument.
So my MIDI player scans the MIDI data, and adds the CC 0 127 everytime it encounters a PC command (on the correct MIDI channel of course).
This can be built into SoftMPU easily. Just needs a way to enable/disable it.
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby keropi » 2018-1-15 @ 18:48

^ nice! is it the video or the experimental software/tsr to blame for notes that seem to play slower / out of sync?
This midi player, have you made it available freely?
User avatar
keropi
l33t++
 
Posts: 5899
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-15 @ 19:01

keropi wrote:^ nice! is it the video or the experimental software/tsr to blame for notes that seem to play slower / out of sync?


It's my quick hack MIDI player. I originally made it for the IMFC. I put in support for the DreamBlaster S2P, but it requires 3.5 microseconds of delay between commands. This is done the quick-and-dirty way, like on AdLib: perform a bunch of dummy reads. This throws off the timing in the player.
I haven't tried it with SoftMPU yet, because my test-machine is a 286. I'll need to set up a 386+ machine for testing.

keropi wrote:This midi player, have you made it available freely?


Not yet. The idea is that it preprocesses MIDI tracks to an optimized command stream, similar to my VGM player.
Then it can run with very low CPU usage, mainly relying on timer interrupts. So even suitable for an 8088 at 4.77 MHz, in the background (the main reason why early games used Intelligent MPU is probably to avoid the CPU overhead).
Last edited by Scali on 2018-1-15 @ 19:12, edited 1 time in total.
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby keropi » 2018-1-15 @ 19:10

oh I see - I'll grab the player when/if you make it available , for now I use the midplay player (along with dump for sysex data) for simple command line playback. It will be great when it's done :)
User avatar
keropi
l33t++
 
Posts: 5899
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-15 @ 21:06

I've made the necessary changes to SoftMPU to enable MT-32 mode... I'll have to test it though.
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Re: DreamBlaster S2P : Small form factor General MIDI on parallel port

Postby Scali » 2018-1-15 @ 22:58

Just tested my SoftMPU patch, it seems to work fine. I added a new switch /MT32 to enable MT-32 mode for the S2P.
You can get the binary here: https://www.dropbox.com/s/v9tssu8k1saml ... 2.zip?dl=0
I will see if I can make a pull request on Github to include the patch.

Edit: pull request seems to have worked: https://github.com/pdewacht/softmpu/pull/1
Scali
l33t
 
Posts: 3145
Joined: 2014-12-13 @ 14:24

Next

Return to Sound

Who is online

Users browsing this forum: hard1k and 2 guests