Page 1 of 2

PowerPak Expansion Audio Volume

Posted: Sun Apr 19, 2009 3:57 pm
by B00daW
NSF
http://average.truechiptilldeath.com/fi ... l_plot.nsf

Hardware Record
http://average.truechiptilldeath.com/fi ... l_plot.mp3

I'm using a PowerPak and a 47K ohm resistor. Do any of you notice that the VRC6 audio is really loud half way through the song?

By the way, this track is made by a friend on the latest stable version of FamiTracker.

Posted: Sun Apr 19, 2009 7:21 pm
by Banshaku
If I can find the time to build my VRC6 dev-cart, I could always test it later on it. That would be the best test to confirm it. I will see what I can do.

Posted: Sun Apr 19, 2009 8:08 pm
by loopy
I didn't spend a whole lot of time tweaking the volume levels just right, so I'm not surprised. I did enough to make it sound "pretty good" to my ears and moved on. Comparing it to the Real Thing instead of a software NSF player would be nice though.

Posted: Sun Apr 19, 2009 8:27 pm
by Banshaku
loopy wrote:Comparing it to the Real Thing instead of a software NSF player would be nice though.
This is what I had in mind since a reference sound should help to tweak the powerpak properly. I need to make that dev-cart for one of my project anyway so this give me another incentive to find the time to put the sockets on it (if my child let me to..).


@B00daW: can you find a way to ask your friend to make from famitracker a nes version of this file? This way I would just need to remove the header and copy the file on the flash eprom.

Posted: Mon Apr 20, 2009 5:39 am
by B00daW
I have the FTM. Here's the PRG.

Posted: Mon Apr 20, 2009 7:19 am
by Banshaku
B00daW wrote:I have the FTM. Here's the PRG.
ok, great. I will try to find some time this week to make the cart. If I remove just the PRG-ROM that should be enough to do the testing. Once I have it up and running and can record it, I will do an MP3 of it.

edit:

There is one issue thought. Do we know how Famitracker uses the VRC6 registers? Because if it uses the Akumajou dracula way, I will need to make a custom build of the driver since I will use a Madara cart for the dev-cart (a lot cheaper than akumajou dracula to get). Did Jsr mention anything about it?

Posted: Mon Apr 20, 2009 2:26 pm
by B00daW
I guess check the source or check out the registers in FCEUX. :)

Posted: Mon Apr 20, 2009 7:16 pm
by Banshaku
B00daW wrote:I guess check the source or check out the registers in FCEUX. :)
There is good chance that the answer is in the apu.s module were all the APU writes are done (unless Jsr changed the structure of it). I will give it a look during my lunch time since I will need to update the driver for my own needs soon.

If the write are the same as Akumajou, I will make a new driver and the only thing I will need is the music/dpcm data.

edit:

It's not in the APU module but in the vrc6.s instead. The mapping is for Akumajou. The file is quite small so it should be quite easy to inverse the registers.

edit2:

I re-converted the driver to work with my sample and added a few flags along the way:

- You can again disable/enable any channels (VRC6 included). Restoring channel is still not perfect
- You can decide which note table to insert a compile time (PAL/NTSC)
- You can select which VRC6 board you want to use (Akumajou or Madara/Esper dream)
- You can include VRC6 or not (option was already there)
- You can define a list of song in a table and can be located anywhere you want

My test sample is now working with the new driver. I will need the data/dpcm bin files so I can compile it in my sample. What is left is just to make the dev cart.

Posted: Tue Apr 21, 2009 7:04 am
by B00daW
http://user.tninet.se/~zxy965r/nsf.zip NSF Live! allows users to rip DPCM sample data out of NSFs. Enjoy :)

Posted: Tue Apr 21, 2009 7:37 am
by jsr
This reminded me that I was going to figure out the mixing level of VRC6 and the internal audio as I haven't seen it documented anywhere. So I made some quick tests with a Madara-cart and the result wasn't very surprising, the amplitude of VRC6 pulse channel levels was exactly as the internal pulse channels on the same volume levels. The sawtooth channel has one bit extra connected to the DAC so it's able to play twice as loud. (As explained in Kevins VRC6 chip info document).

I haven't checked many emulators but it seems Nintendulator gets it right. NSFplay however doesn't, the default settings are too quiet.

B00daW: If you want to tweak the Powerpak audio, just compare the pulse channels of VRC6 and 2A03 on the same amplitude and adjust the resistor until they both measure the same. (I assume the mixing inside the powerpak is linear.)

Banshaku: It is the Akumajou order, but this can easily be changed in the NSF with a hex editor. (The PRG-image probably won't work properly as it doesn't set up the banks for the VRC6 mapper.)

Posted: Tue Apr 21, 2009 8:38 am
by Banshaku
jsr wrote:It is the Akumajou order, but this can easily be changed in the NSF with a hex editor. (The PRG-image probably won't work properly as it doesn't set up the banks for the VRC6 mapper.)
For the PRG file, I had a feeling this would be the case so I already started to prepare my test sample with the updated driver source code. It's already compiling and working (in emulators). I just need B00daW's music binary data+DPCM to compile it inside.

I just inserted a new flag so you can select either the Akumajou or Madara/Esper dream board at compile time: it just replace the value of a few symbolic constants. Not many people may need that but at least it will be there. I still plan to use Famitracker for my future game(s)/tech testing so I updated again the driver with my needs. I still have a some issue with restoring the channels but I will figure it out later.

I saw that in the main driver code that you inserted some stubs method for "maybe" disabling channels. Do you plan do add this option in a near future? :)


@B00daW: Based on JSR comments, do you still need to test it on the real thing? Once I get the data, I can still do it someday.

Posted: Tue Apr 21, 2009 9:07 am
by B00daW
I was under the assumption that the audio values were wrong per the PowerPak. I have a 47K resistor installed, which is the popular prescription.

So VRC6 channels are loud naturally, but are other expansion audio channels loud as well?

Basically, am I noticing a problem or is it a lot of nothing?

Posted: Thu Apr 23, 2009 4:41 pm
by jsr
Banshaku wrote:I saw that in the main driver code that you inserted some stubs method for "maybe" disabling channels. Do you plan do add this option in a near future? :)
Yes those methods are now functional and will available in the next version to make it easier to add sound effects.
B00daW wrote:So VRC6 channels are loud naturally, but are other expansion audio channels loud as well?
To clarify, it shouldn't be much louder than the internal channels. I don't know about other channels, but I got a few other carts that I'll check sometime. (I suspect the same result.)

Posted: Thu Apr 23, 2009 6:52 pm
by Banshaku
jsr wrote:Yes those methods are now functional and will available in the next version to make it easier to add sound effects.
This is good news! I will be more than happy to use it when it comes out. Is it planned for version 3.0?

Posted: Tue May 19, 2009 2:39 pm
by bucky o'hare
Regarding the powerpak and audio expansion-
I was trying out some FDS games last night. The wavetable audio seems to be slightly out of tune, noticeably different than using Nestopia or listening to an NSF in notsofatso / nsfplug. I could provide samples later on if anyone is interested.