Shiru wrote:Chilly Willy, I don't think anyone really need more than 255 instruments/samples in a single sound. It is actually should be more like 32-64, I just thought, if I have two hex digits for the instrument/sample number, why not make it to the max.
Yeah, that's what I figured.
I don't really understand about the bug. I set pan to the center for all the channels before play/export. Is DAC mode has its own pan register, so I should set it when in DAC mode? And why samples play with Mike-Stamp's VGM PLAY in an emulator? Remember, I don't have the hardware, so if a problem only happen on the hardware, I need ideas how to fix it, all I can do is take a guess in this case.
You set the pan register for any FM channel, but when you use a sample instead of FM on channel 6, you aren't setting the channel 6 pan register. For example, the test.vge file only uses channel 1 and plays drum samples on channel 6. The vgm data only sets the pan register for channel 1, not for channel 6. The pan register is the ONLY register for channel 6 that affects the DAC; that way you can steer to DAC to left/right/center. So when you export to VGM, be sure that if a sample is played that you generate the command to set the pan register for channel 6.
Does vgm_mm allow you to set the pan for samples? As mentioned above, you can set the DAC to play out the right, left, or both sides (mono). I noticed that channel 1 was set to mono (0x52, 0xB4, 0xC0). Maybe you can allow setting the pan on any of the channels.