At 07:08 PM 8/25/99 +0200, you wrote:
>> How can I emulate SCC using Moonsound?
>
>Emulate: no.
>If you have the sources and adapt the SCC drivers however is should be
>possible.
It depends on how you define "emulation". If you use MoonSound to play an
SCC song as accurately as possible, it can be called emulation in my
opinion, even if you have to adapt the replayer at a few points.
Having the source code is not necessary. You can "plug in" emulation
routines at certain addresses you find by disassembling. In the case of
Konami's SCC replayer, only two routines need to be replaced.
It would even be possible to make a game write SCC data to RAM and install
an IM2 interrupt handler that examines this RAM to find out which data was
written to the SCC and then emulate that. Rather complex, but it would
allow SCC emulation without adapting the replayer.
>For instance adapt SCC Musixx or SCC Blaffer Basic relayer (are those
>open-source?) for MoonSound.
I got the SCC Musixx replayer source from TFH.
I offered my MoonSound emulation code to TWZ for use in SCC Blaffer, but
they weren't interested at this point.
>The same can be done with MSX-Audio/Music replayers too... Adapting the
>FM-part is easy (just change some I/O ports)
In the case of MSX-MUSIC emulation, it's a bit more difficult because you
need instrument definitions as well.
However, when playing MBMs on MoonSound, I simply used MSX-AUDIO
instruments with only the stereo settings determined by the MBM stereo
settings.
>and if you include an ADPCM>PCM
>converter you can also play the samples.
Alex Wulms has the conversion routines on his web page.
However, the conversion is very computation-intensive. Yobi once used those
routines and conversion time was around 10 seconds for a MWK file (on
3.5MHz or 7MHz, I forgot). However, turbo R might be able to do it a lot
faster, depending on how much multiplications are used.
>However, the MSX-Audio has a
>slightly more advanced sampleunit (with interrupts etc.), but I don't think
>that will be a problem because that probably won't be used by most
>replayers.
The only replayer I know of that uses the sample interrupts is NOP's SampBox.
Bye,
Maarten
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****