;************************************************
;* soundTitleVoices
;*
;* Input : sound.titleStep; src = current lead command
;* Output: quiet harmony on POKEY 2 and slow bass on POKEY 3
;* Trash: a,y,flags; x preserved
;*
;* Lead rests also silence the two accompanying voices.
;************************************************

soundTitleVoices

        ldy	sound.titleStep
        lda	titleHarmony,y
        sta	AUDF2
        tya
        lsr
        lsr
        lsr
        tay
        lda	titleBass,y
        sta	AUDF3
        ldy	#1
        lda	(src),y
        and	#$0f
        beq	?titleVoicesRest

        lda	#$a1
        sta	AUDC2
        sta	AUDC3
        rts

?titleVoicesRest
        sta	AUDC2
        sta	AUDC3
        rts
