Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question about stereo panning
#1
Hi,

I'm currently creating a windows tracker (sound tool) for the NGP and i have a problem with the stereo panning:
In my replay, all 3 square channels go to the far left and the noise channel goes to the right.
Is it possible to somehow control that panning ?
(the "sound tutorial" document by Ivan Mackintosh doesn't mention anything about that).
Did i miss something crucial ?
Reply
#2
Admittedly, I don't know much about the NGPC sound programming.

Have you seen this?
http://jiggawatt.org/badc0de/ngpcsound.html

I'll send a message to _mic to see if he'd want to add comments here, too. He's likely the man for the job. I could see if I might get ahold of Ivan Mackintosh, too.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#3
The only bits of information i've seen was here: http://www.smspower.org/Development/SN76489

There's brief information about Game Gear stereo extension through a port but this probably doesn't apply to the NGP.

Ok, i understood (sorry for the trouble): you have to write on both volumes registers to center the output, i think some pre-calculated left/right volumes tables would give stereo effect.
Reply
#4
(08-25-2016, 03:35 AM)hitchhikr Wrote: The only bits of information i've seen was here: http://www.smspower.org/Development/SN76489

There's brief information about Game Gear stereo extension through a port but this probably doesn't apply to the NGP.

Ok, i understood (sorry for the trouble): you have to write on both volumes registers to center the output, i think some pre-calculated left/right volumes tables would give stereo effect.

This question doesn't appear to have been answered, and I wondered how stereo worked and did not come across any documentation for it.  I am working on a sound driver and have made some discoveries, so this seems like the best place to document them.

Per the Ivan Mackintosh document, let's refer to the 2 sound registers as CH123 and CH4, but I think these are misnomers.

I believe CH123 actually has 4 tone channels (i.e. channel 4 on this register can play a tone, but not if CH4 is playing a noise).  I think this is how the driver used by NeoTracker allows channel 4 to be a tone or a noise.

Any volume commands sent to CH123 register (even for channel 4) go to the left speaker.
Any volume commands sent to CH4 (even for channels 1-3) go to the right speaker.

Therefore the method for panning  would be different than Game Gear.  VGM data ripped from NGPC games makes use of a non-standard VGM command 0x30.  Normally 0x50 is a PSG command that can be sent right a register.  For NGPC, they use 0x50 commands to go to CH123 and 0x30 commands to go to CH4, so stereo panning is managed by sending the appropriate volume command for each channel to both registers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)