Set 'no envelope' when silencing a note.

This commit is contained in:
Bobbi Webber-Manners
2022-10-16 00:43:49 -04:00
parent 7cea322407
commit ba828c5ad4
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -339,7 +339,9 @@ ENSQISR INC COUNTER+0 ; Increment centisecond timer
BEQ :NONOTE ; No note playing BEQ :NONOTE ; No note playing
DEC CHANTIMES,X DEC CHANTIMES,X
BRA :NEXT BRA :NEXT
:NONOTE LDY #$00 ; Zero volume :NONOTE LDA #$FF ; $FF means 'no envelope'
STA CHANENV,X
LDY #$00 ; Zero volume
LDA #$00 ; Zero freq LDA #$00 ; Zero freq
JSR ENSQNOTE ; Silence channel Y JSR ENSQNOTE ; Silence channel Y