I've read Brad's excellent NESSOUND.txt doc, I've experimented back and forth with my emu and I've gone through other's source, but I just can't understand that how that damn linear counter works. Hopefully, some of you can help me out - I'm completely lost:
1. What's the purpose of the linear counter? Is it only there for specifying a more precise length of each note? Why would you want it to be a feature of the triangle channel only?
2. Are both the linear counter and the length counter used at the same time? I mean, does the linear counter count down at 240 Hz _parallel_ to the length counter at 60 Hz, as opposed to one finishing its counting before the other starts?
3. If (2), what's the use of the length counter anyway?
4. If (2), does the channel go silent when they both reach zero or when either one does?
5. If NOT(2), how do I know which one is the 'active' counter? Brad's doc says "length counter clock disable / linear counter start" about $4008.7.
As of now, my emu works well except for some long notes which are shortened. This is probably due to me not clocking the length counter correctly. I'm not sure when to enable/disable the length counter or the linear counter.
Any more info on the linear counter that you can think of would be appreciated.