PLEASE, PLAIN TEXT!!!

I really HATE HTML-formatted email, even though my email client supports it.


>>If the size of the song exceeds 16K, fitting MBWAVE music in a 128K game
>>will become very hard. And maybe 2 bytes is optimistic, it could be 3
>>(because you also have to store the sample number).
>Yep, that's right. You need 15 bits to store the frequency and 9 bits to
store the tone->number. That's 24 bits = 3 bytes. The songs would become
very large this way, but this >doesn't neccesarily have to be a problem.

Doesn't the tone number remain the same??? So then why store it?
Oh, wait, I get it. The tone number depends on the frequency number. Well,
there are two options:
- just store it, don't really care about the size, or
- only store it if it changes.


>>There's a point. Are you talking about the P+1 thing??? I think simply
>>increasing the frequency will suffice. In fact, MBWAVE also does this,
since
>>I hear no audible 'steps' in the pitchbends.
>
> That's true, pitch bends are not a problem when you want to store the
> frequencies instead of notes. But linking notes is, because the difference
> in frequency differs per tone and also per linking distance. So when you
> want to link notes, it's impossible to store frequencies instead of notes.

Not really. It's quite much the same as playing notes, except for that the
key is not switched off for a short while.

> But I have to tell you something: calculating the frequencies doesn't use
> the CPU as much as the actual playing of the notes. MB-Wave divides the
> actions in 3 interrupts (when something has to be played, obviously not
when
> use have a song with TMP1). In the first int it decrunches one pattern-row
> and calculates the frequencies for 50% of the channels. In the second int
it
> calculates the frequencies for the other 50% of the channels and in the
> third int it plays all notes and events.

So this way 2/3rd of all the calculations can be saved...


> I changed the replayer a lot when I wanted to implement it in the FD. The
> original replayer could only play 12 channels, while the one we use know
can
> play 16 channels without too much slowdown. My replayer now has a CPU
usage
> of about 25% per int.

That's a lot... can be critical for a game...


> The new replayer includes a routine which copies the sample-headers of the
> tones used in the songs to SRAM and changes them. It replaces the original
> tones in the patch-table by the new tone-numbers, making sure the correct
> tones are played. Also note that the ROM doesn't have a cymbal in it, it's
a
> reversed cymbal, just with a different sample-header. So you always have
to
> change this tone.
> This way the third interrupt is WAY faster because it doesn't have to wait
> until the OPL4 has loaded the tones and it doesn't have to change the
> sample-headers.
> The only things that costs some extra time is starting/stopping the songs,
> but that's usually not a problem.

No, it is not. Good idea.


> You can get the replayer if you want it, but it's not a fully functional
> replayer. It lacks base-frequency support, it can only handle the standard
> values of the X-command, and it only supports 2 frequency-tables for own
> samples (8363hz and 22050hz). The .MWK-loader is seperated from the
> replayer, so you can kill the .MWK-loader after you have loaded a
> sample-kit. Also in my replayer you can change the number of channels
> CORRECTLY, the original messed up with it when you use pitch bends. You
also
> can change the maximum of own samples you need, because the replayer uses
> the tone-headers that are not used to replace the original ROM
tone-headers.
> It's currently set at 16, which is usually enough.
>
> If you the replayer, just mail me and you'll get it.

At the moment I don't need it, but I'll keep it in mind ofcourse.

...actually I'd like a new fast music-format which supports both Wave as
well as FM (ofcourse it won't be fast anymore when it's used up to its full
potential, but then just don't use it to its full potential). FM sounds have
great possibilities (the MB 'X' command) but are still very small. I really
miss FM-sounds in the MBWAVE music nowadays.


~Grauw


--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<
 email me: [EMAIL PROTECTED] or ICQ: 10196372
      visit my homepage at http://grauw.blehq.org/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<


****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
 The MSX faq: http://www.faq.msxnet.org/
 The MSX newsgroup: comp.sys.msx
 The MSX IRC channel: #MSX on Undernet
****

Reply via email to