File
505/You_Bore_(D-Bug_180).sndh (sndh-id#214)
Description
The melody voice is muted at 0'50" for a few seconds (probably one pattern).
The music on Youtube
Tested
- Older version of sc68 (2.2.1 and 2.3.0) with the same issue.
- sndplayer under steem emulator without problem.
- a new file with an updated SSD player with the same issue.
- Random modification of the file unpacked ($2CD0 <= 16) fix the problem (and create other obviously).
- Load address at $23212 with the same issue.
Problematic
It's not a bug with the music itself. It's a tricky situation with the simulator itself. In this music channels A & B are almost always playing the same thing. At some point both channels enter in an exact opposite phase cancelling each other. This is a very unlikely event, but it becomes more likely because of 2 factors: 1. all YM access happen at the same cycles but more importantly 2. the way the pulse counters are reset ( if count > per then count = 0 ) synchronize both channels as soon as a lower period is written (both channels counters get zeroed at the same time synchronizing both signals on either the same phase or an opposite phase, depending on the internal toggle).
Solution
I'm testing a possible solution for the pulse engine only at the moment.
I hope this change (2.) does not affect negatively other musics. I have always wondered how this really works with the actual chip.
Last edit: Ben G. Han 2015-01-03