Spurious tones in square channels when they should be muted! (VIDEO INSIDE)

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
Paul_Atreides
Posts: 12
Joined: Mon Apr 13, 2020 5:24 am

Spurious tones in square channels when they should be muted! (VIDEO INSIDE)

Post by Paul_Atreides » Sun Aug 02, 2020 1:26 pm

Please check this video to know exactly what I mean.
https://www.youtube.com/watch?v=FfNUSff ... e=youtu.be

For producing this video, I disabled all channels except square 1. You'll be able to hear how the channel is never completely muted, but outputs a constsant tone which is a direct result of the last tone produced when the channel was active.

What could be wrong? What part of the code should I investigate?

Here is the source, if anyone wants to sneak a peek:
https://github.com/DiasparCitizen/eNESimo

User avatar
Dwedit
Posts: 4350
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Spurious tones in square channels when they should be muted! (VIDEO INSIDE)

Post by Dwedit » Sun Aug 02, 2020 2:00 pm

Verify Length Counter and Envelope Generator first. Note that envelope decay stops at 0 (silent) and not 1.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!

Post Reply