Hi,
I've come across some annoying pops in two tunes by Stryyker in the HVSC. The following was done in r36336, but I think these have been around for quite a while but I haven't written them up before now.
In Simple Mini (https://hvsc.etv.cx/C64Music/MUSICIANS/S/Stryyker/Simple_Mini.sid) there are pops throughout which are not present on a real 8580:

Looking at the siddump output these seem to be correlated with a particular ADSR write:

On another tune Lovely Mix (https://hvsc.etv.cx/C64Music/MUSICIANS/S/Stryyker/Lovely_Remix.sid) there are a couple of pops which are noticeable during a quieter part at ~10s and when the tune loops at 1:03:

Looking again at the siddump, these seem to occur a couple of ticks after a certain sequence of register writes:

I've attached recordings of the pops to this post.
SOASC links:
http://anorien.csc.warwick.ac.uk/mirrors/oakvalley/soasc/hvsc/049/MUSICIANS/S/Stryyker/Simple_Mini_T01.sid_CSG8580R5.mp3
http://anorien.csc.warwick.ac.uk/mirrors/oakvalley/soasc/hvsc/049/MUSICIANS/S/Stryyker/Lovely_Remix_T01.sid_CSG8580R5.mp3
i tested only Lovely_Remix.sid in vsid.exe and i can confirm this happens back to VICE 2.4
in 2.3 and older there was no vsid.exe
/EDIT: works fine in 2.4 when i use Resid-fp
Last edit: Querino 2019-05-12
it would be really interesting to have a small test program to reproduce this... and also if the problem is only at the audio output, or if it also can be "seen" by sampling env3/osc3
btw, the same happens in sidplayfp
sidplayfp --resid Lovely_Remix.sid
very easily to spot right after about 11 seconds
i cannot hear it with --residfp or when filter is disabled with -nf
I've just done some troubleshooting with Lovely Remix. I don't think it has anything to do with the ADSR for that sid. It seems the floating output TTL on voice 3 might be causing the glitch. See attachment. The red square on the left highlights where the waveform on voice 3 is set to 0 initiating the floating output. The red rectangle on the right shows where the floating out goes to 0 which coincidently causes a glitch in the SID output.
In sidplayfp the TTL value is 0xF4240 for residfp (~1 sec) and 0x14000 for resid (~82 msec) which explains the difference with Lovely_Remix.sid.
In the latest residfp code from trunk I've differentiated the value between models using the shift reset times (~200ms for 6581 and ~5s for 8580) which might be more realistic.
BTW this is related to bug [#290]
Related
Bugs: #290
you are referring to floating_output_ttl = 0x14000; in wave.cc:247 right?
i have stolen the change you did in residfp, see r36339
please try if that removes the problem (also check bug #290 please) :)
Last edit: gpz 2019-05-13
i only did a quick listening test, and the "pops" are now gone in Lovely_Remix.sid.
they are still there if i chose the "wrong" SID model though.
ok, so the cause of the problem is located, i guess :)
zero-x will do some measurements at the weekend or so, then we can change the values into something less arbitrary :)
(what remains is the question if those pops are audible on the real thing too, with the "wrong" SID)
zero-x did that now, with surprising outcome, check [#290]
Related
Bugs: #290
can we close this one?