nesdev.com
http://forums.nesdev.com/

puNES Emulator
http://forums.nesdev.com/viewtopic.php?f=3&t=6928
Page 8 of 49

Author:  tepples [ Thu Nov 10, 2011 7:05 pm ]
Post subject: 

Here's how I'd implement a pop reducer:

Make a sixth channel. If $4011 is written, and it hasn't been written in the past few frames, take the difference (new $4011 value - old $4011 value) and subtract that from the sixth channel. This way, the $4011 write before a DMC playback is exactly canceled out by the sixth channel, but timed $4011 writes (as in Joshua or Big Bird) and intentional pops used as kick drums come through fine. Then the value of this sixth channel decays exponentially over time with a half life of about a frame.

Or instead of a time criterion, you can use whether or not a sample was started along with the $4011 write.

Author:  FHorse [ Fri Nov 11, 2011 6:22 pm ]
Post subject:  Version 0.41

Changelog:
0.41 (bugfix release)
In the previous release I have fixed many bugs but it is also true that others have been added, such as an annoying disturbance of sound that, under certain circumstances, could afflict the windows version. Fixed.

Author:  Eugene.S [ Sat Nov 12, 2011 2:55 am ]
Post subject: 

Thank you, FHorse.
DPCM POP reducer is very good.
But Castlevania II still have some pops.

I've found a resize-bug with OpenGL renderer
Linux Mint 9 / GMA4500 (intel G41 Video).

download example

Author:  Zepper [ Sat Nov 12, 2011 5:45 am ]
Post subject: 

I have what tepples said about the pop reducer, but it only reduces the volume by half and it decays. In short words, I had to put a flag on $4011 to manually disable writes into.

(I smell a topic split)

Author:  FHorse [ Sat Nov 12, 2011 9:42 am ]
Post subject: 

Zepper, I'm sorry for not having replied earlier but I was not convinced of my solution of the pop-reducer and in fact Eugene has confirmed my doubts. I tried the method of tepples and I think it works great (by the way, do you mind if I shamelessly steal the idea? Tepples please :) ).

Author:  Eugene.S [ Sat Nov 12, 2011 10:35 am ]
Post subject: 

This version is better.
Can you add simply bilinear intepolation filter and TV-aspect window proportions? (4:3, when NTSC filter is disabled)
----

whoops, battletoads/bt&dd haven't DPCM-sound in latest build.

Author:  tepples [ Sat Nov 12, 2011 11:43 am ]
Post subject: 

FHorse wrote:
I tried the [pop reduction] method of tepples and I think it works great (by the way, do you mind if I shamelessly steal the idea? Tepples please :) ).

Go ahead.

Eugene.S wrote:
Can you add simply bilinear intepolation filter and TV-aspect window proportions? (4:3, when NTSC filter is disabled)

NTSC TV aspect means rescaling the image to 584x480.

Quote:
whoops, battletoads/bt&dd haven't DPCM-sound in latest build.

These games play samples with timed writes to $4011, as do Big Bird and Joshua. Only the first write to $4011 after a few frames of no writes should result in a change to the sixth channel.

Author:  FHorse [ Sat Nov 12, 2011 5:03 pm ]
Post subject: 

Eugene please you can try this version? (Battletoads, Castelvania II etc.)

Author:  Zepper [ Sat Nov 12, 2011 6:26 pm ]
Post subject: 

How do I open that file?

Author:  Dwedit [ Sat Nov 12, 2011 6:36 pm ]
Post subject: 

It's an elf file, presumably for Linux.

Author:  Eugene.S [ Sun Nov 13, 2011 2:03 am ]
Post subject: 

Quote:
Eugene please you can try this version? (Battletoads, Castelvania II etc.)


Soft and nice sound. Probably best build.

Author:  FHorse [ Sun Nov 13, 2011 2:40 am ]
Post subject: 

Eugene.S wrote:
Soft and nice sound. Probably best build.


I've used always tepples solution with one difference: enabling the writing of 4011 after 110 cycles (APU) from last write other than a few frames. I chose 110 after several trials with different values​​. With small values, some games still do pop and with higher values, other games were cut effects of the DMC.

Author:  Eugene.S [ Sun Nov 13, 2011 4:16 am ]
Post subject: 

Interesting, how it's realized in Nestopia?

Author:  FHorse [ Sun Nov 13, 2011 4:42 pm ]
Post subject:  Version 0.42

Changelog:
0.42
Added a popping sound reducer for games (like Castelvania II, Batman, Ninja Gaiden 3) that have a drum imitation that causing a large jump in the output level for a short period of time through the register $4011 (thx to Eugene.s for the report and Tepples for the help).
Added "Overscan" option in the video menu that reduce the visible scanline from 240 to 224 by cutting the first and the last 8 scanlines. This setting is specific for the rom in use. If you change it, will be remembered when you open them again. If you set to "Default", puNES will always use the setting checked in "Default value" menu.

P.s.
Eugene.S wrote:
Can you add simply bilinear intepolation filter and TV-aspect window proportions? (4:3, when NTSC filter is disabled)

I'll do it in a future release, thanks for the suggestion :wink:

Author:  Zepper [ Sun Nov 13, 2011 4:44 pm ]
Post subject: 

Is the "overscan" as simple as cutting off the top/bottom 8 lines, ina hardware level?

Page 8 of 49 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/