I have been playing recently with sound fx and the famitracker sound driver. There was a bug when playing a sound fx with sweep on a square channel, the music would not be restored properly.
I found what seems to be some code for resetting the sweep register and the music was now playing normal. I was happy until I found something else: after reseting the sweep channel, in some specific sounds (maybe low pitch ones), a clicking sound can be heard. If I remove the code, the clicking sound is gone.
This is the code I found in the driver to reset the sweep register:
There is 2 possibilities that I can see:
- The code is wrong
- This is a maybe known side effect with sweep channels
I really what to know the cause of this clicking sound. This is the only thing left to make the squares channels works properly (I hope so...). I remember reading somewhere about a clicking sound but cannot find where I read that. I could be related but I can't find the message anymore.
I found what seems to be some code for resetting the sweep register and the music was now playing normal. I was happy until I found something else: after reseting the sweep channel, in some specific sounds (maybe low pitch ones), a clicking sound can be heard. If I remove the code, the clicking sound is gone.
This is the code I found in the driver to reset the sweep register:
Code:
lda #$08
sta $4001
lda #$C0
sta $4017
lda #$40
sta $4017
sta $4001
lda #$C0
sta $4017
lda #$40
sta $4017
There is 2 possibilities that I can see:
- The code is wrong
- This is a maybe known side effect with sweep channels
I really what to know the cause of this clicking sound. This is the only thing left to make the squares channels works properly (I hope so...). I remember reading somewhere about a clicking sound but cannot find where I read that. I could be related but I can't find the message anymore.