Skip to content

Commit

Permalink
Apply N163 slide shift if linear pitch is disabled
Browse files Browse the repository at this point in the history
Addresses #276.
  • Loading branch information
Gumball2415 committed Jul 20, 2024
1 parent d92a3a1 commit 4cc1a5e
Show file tree
Hide file tree
Showing 3 changed files with 816 additions and 802 deletions.
12 changes: 12 additions & 0 deletions Source/drivers/asm/effects.s
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,12 @@ ft_portamento_up:
lda #$00
sta var_Temp16 + 1
.if .defined(USE_N163)
.if .defined(USE_LINEARPITCH) ;; !! !!
lda var_SongFlags
and #FLAG_LINEARPITCH
bne :+
;; !! !! only apply N163 pitch slide shift when linear pitch is disabled
.endif
lda ft_channel_type, x
cmp #CHAN_N163
bne :+
Expand All @@ -539,6 +545,12 @@ ft_portamento_down:
lda #$00
sta var_Temp16 + 1
.if .defined(USE_N163)
.if .defined(USE_LINEARPITCH)
lda var_SongFlags
and #FLAG_LINEARPITCH
bne :+
;; !! !! only apply N163 pitch slide shift when linear pitch is disabled
.endif
lda ft_channel_type, x
cmp #CHAN_N163
bne :+
Expand Down
Loading

0 comments on commit 4cc1a5e

Please sign in to comment.