debugging attenuator

trying to figure out why it works for some and not others

holding two notes, playing one note works  (doesn't play right note)
holding one note, playing two notes attenuates as if three notes still playing
holding one note, playing one note attenuates as if three notes still playing
holding one note, playing one note, give delay, then playing another note gives as if three notes playing until second note stops, then acts as if only one note is playing.. .still need to debug..