tuoko:
"Eh arkhan, it's normal that sngInit.c is not present in your squirrel2.0 archive
"
yes. mml2pce generates that as it compiles the mml. It has all the low-level calls to the psg-bios to make the mml play. Note that snginit.c is a generic filename. If you have several mml files in one place, sngInit.c reflects the last one compiled.
hcf:
"maybe you can write another little README file, explaining the basic functions of your library"..
No Need. The actual library (in sound subdirectory, I think) is just HuC friendly calls to the psg-bios; a nice easy way to do it in Huc. So, if you can find the devlo docs, all the calls in the psg-bios section should apply. (Well, The name changed for one of them, psgMute I think - it made more sense)
And for those of you who are really interested:
"Squirrel" is really not a library, per se. The library portion is in the sound directory, and they are all very short assembler functions: basically, they pull the parameters off the huc stack, stick them where they belong, and call the psg-bios function. It's quite boring and easy to follow if you even sorta know how assembler and the psg-bios stuff works. It's not anything you can't do in assembler yourself.
The compiler (mml2pce) basically converts the mml to the bytecodes expected bythe psg-bios. That's a bit more complicated, but with docs in hand, you can see how it gets done. That is, what gets generated for what mml. And if you are real adventurous, you -can- edit the assembly produced, and do some things the compiler can't (like play an alternating sequence of really short notes in sync - you have to adjust the times for odd 128th notes to keep sync).
As for squirrel 3.0, that's a different subject. Let's just say that that release is coming, and should bring music to everyone - not just those with cd players. The more it gets worked on, the more Arkhan understands what's going on in the psg-bios, so....
Personally, I'm working on an explanation of exactly how all the envelopes work, and some of the 'odd' things the psg-bios does. Hopefully, Arkhan will edit it down, and include it in the next release.
(for those who are interested in wierd things, here's a pet project that's one the back burner for now:
Take a voice sample, real short. Convert it to 5-bits, and build a sequence of wave forms from it. Then, create a drum that just plays those waves, in order. Make an MML that plays that drum, and let me know how it turns out....)