S3Mplayer for Moonsound OPL4

Página 3/3
1 | 2 |

Por snout

Ascended (15187)

imagem de snout

30-12-2002, 11:16

I think it should not be hard to implement the use of samples in Meridian. (heya Michiel! Do you still like the MoonSound? Tongue ) and it should certainly be possible to convert some/most S3M effects/commands. But the playing of S3M files and MID files on OPL4 is still only capable in Meridian itself. Maybe it's a nice idea - once all this is working - to create a separate replayer for DOS2?

Por wolf_

Ambassador_ (9793)

imagem de wolf_

30-12-2002, 11:30

How big can one single sample be within an S3M-file actually?

64kb

Por Arjan

Paladin (714)

imagem de Arjan

06-01-2003, 21:46

I definately think an S3M player would be possible on a normal MSX. This is based on the fact that in Bombaman, my modified MWM-replayer takes 20% of the CPU per frame (60hz). This is for 16 channels, so it would be around 30% for 24 channels. Also, the replayer divides the work over three frames, so it would be 90% if everything was done in one frame.

Of course, s3m has more effects so those might take up extra time.... but given the fact that the mwm-replayer wasn't really coded for optimal speed, a carefully coded s3m player could win a lot of time when it comes to calculating which frequency a sample should be played. Selecting the correct tone to play is one of the things that seriously slows down the replayer...

As for the sample size, there would only be problems with ping-pong looped samples. Only way would be reducing the sample rate...

btw, the assumptions I made above are made based on my modified MWM-replayer. The original one is maybe twice as slow ( not tested though)... Besides finetuning the original code, I managed to win lots of time by copying and adjusting all ROM tone headers needed to the SRAM. This has two benefits: 1) After loading a ROM-tone, you'd normally have to wait before being able to change the sample-header. Since the headers are correctly set up in SRAM already, this waiting doesn't have to be done. And 2) Sample headers are correctly set up in SRAM already, so there's no need to change them in real-time!

So, someone make an S3M-player! (and include XM too Smile )

Por Latok

msx guru (3708)

imagem de Latok

07-01-2003, 08:48

Arjan, thanks for this contribution! What about your modified MWM-replayer? Is it available already to public? Or are you going to make it public? Would be great. We need an optimized MWM-replayer Smile

Por Arjan

Paladin (714)

imagem de Arjan

07-01-2003, 21:29

it's not available to public, but anyone who wants to get it can just ask me Smile

a few side notes:

  • this player is based on a relatively old version of the replayer
  • it doesn't support the base frequency at all (which is actually better for games Smile )
  • the gm percussion instrument won't play correctly with notes lower than B3
  • it's missing one frequency table (only Amiga and 44khz tables present, but the missing one can be easily inserted.
  • there seems to be some little bug with the X-command, sometimes a channel just stops playing when using it
  • fading support is missing
  • there might be some other small things missing due to the old base source

I hope you can live with these minor issues.. Also, I recommend using the Moonsound Sample Library (MSL) instead of regular wavekits. Basically, an MSL-kit is the result of combining multiple wavekits. If there's a sample that's used in multiple kits, it will be stored only once in the MSL-kit, so it'll save lots of diskspace. You can get this from bombaman.generation-msx.nl <- link :)

Por Latok

msx guru (3708)

imagem de Latok

07-01-2003, 23:38

Greeeeeeeeeeeat job, Arjan. Thx for this!!

Por Arjan

Paladin (714)

imagem de Arjan

09-01-2003, 21:49

I've added the replayer to the downloads section of our HQ, bombaman.generation-msx.nl Happy downloading :)

Página 3/3
1 | 2 |