Make pitch_sweep pitch change argument consistent with the other signed magnitude arguments

This commit is contained in:
dannye 2019-08-25 09:57:50 -05:00
parent 8b0cd72a60
commit 44b9a240d4
46 changed files with 51 additions and 46 deletions

View File

@ -2,5 +2,5 @@ SFX_Arrow_Tiles_1_Ch5:
duty_cycle 0 duty_cycle 0
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 13, 2, 1792 square_note 15, 13, 2, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Arrow_Tiles_3_Ch5:
duty_cycle 0 duty_cycle 0
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 13, 2, 1792 square_note 15, 13, 2, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,7 +2,7 @@ SFX_Ball_Poof_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 1, 6 pitch_sweep 1, 6
square_note 15, 15, 2, 1024 square_note 15, 15, 2, 1024
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Battle_09_Ch5:
duty_cycle 1 duty_cycle 1
pitch_sweep 9, 7 pitch_sweep 9, 7
square_note 15, 15, 2, 1280 square_note 15, 15, 2, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,7 +4,7 @@ SFX_Battle_1E_Ch5:
square_note 4, 15, 2, 512 square_note 4, 15, 2, 512
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 8, 14, 2, 512 square_note 8, 14, 2, 512
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,7 +2,7 @@ SFX_Battle_24_Ch5:
duty_cycle 1 duty_cycle 1
pitch_sweep 9, 7 pitch_sweep 9, 7
square_note 15, 15, 2, 1792 square_note 15, 15, 2, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,7 +2,7 @@ SFX_Battle_32_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 10, -7 pitch_sweep 10, -7
square_note 8, 15, 1, 1792 square_note 8, 15, 1, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Collision_1_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 5, -2 pitch_sweep 5, -2
square_note 15, 15, 1, 768 square_note 15, 15, 1, 768
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Collision_3_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 5, -2 pitch_sweep 5, -2
square_note 15, 15, 1, 768 square_note 15, 15, 1, 768
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,7 +2,7 @@ SFX_Denied_1_Ch5:
duty_cycle 3 duty_cycle 3
pitch_sweep 5, -2 pitch_sweep 5, -2
square_note 4, 15, 0, 1280 square_note 4, 15, 0, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
square_note 4, 0, 0, 0 square_note 4, 0, 0, 0
square_note 15, 15, 0, 1280 square_note 15, 15, 0, 1280
square_note 1, 0, 0, 0 square_note 1, 0, 0, 0

View File

@ -2,7 +2,7 @@ SFX_Denied_3_Ch5:
duty_cycle 3 duty_cycle 3
pitch_sweep 5, -2 pitch_sweep 5, -2
square_note 4, 15, 0, 1280 square_note 4, 15, 0, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
square_note 4, 0, 0, 0 square_note 4, 0, 0, 0
square_note 15, 15, 0, 1280 square_note 15, 15, 0, 1280
square_note 1, 0, 0, 0 square_note 1, 0, 0, 0

View File

@ -4,7 +4,7 @@ SFX_Dex_Page_Added_Ch5:
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Faint_Fall_Ch5:
duty_cycle 1 duty_cycle 1
pitch_sweep 10, -7 pitch_sweep 10, -7
square_note 15, 15, 2, 1920 square_note 15, 15, 2, 1920
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -1,6 +1,6 @@
SFX_Faint_Thud_Ch5: SFX_Faint_Thud_Ch5:
square_note 15, 13, 1, 512 square_note 15, 13, 1, 512
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -5,5 +5,5 @@ SFX_Heal_Ailment_1_Ch5:
square_note 4, 15, 2, 1536 square_note 4, 15, 2, 1536
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 2, 1536 square_note 15, 15, 2, 1536
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -5,5 +5,5 @@ SFX_Heal_Ailment_2_Ch5:
square_note 4, 15, 2, 1536 square_note 4, 15, 2, 1536
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 2, 1536 square_note 15, 15, 2, 1536
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -5,5 +5,5 @@ SFX_Heal_Ailment_3_Ch5:
square_note 4, 15, 2, 1536 square_note 4, 15, 2, 1536
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 2, 1536 square_note 15, 15, 2, 1536
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -3,5 +3,5 @@ SFX_Heal_HP_1_Ch5:
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -3,5 +3,5 @@ SFX_Heal_HP_2_Ch5:
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -3,5 +3,5 @@ SFX_Heal_HP_3_Ch5:
pitch_sweep 1, 7 pitch_sweep 1, 7
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,6 +4,6 @@ SFX_Healing_Machine_1_Ch5:
square_note 4, 15, 2, 1280 square_note 4, 15, 2, 1280
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 2, 15, 1, 1280 square_note 2, 15, 1, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
square_note 1, 0, 0, 0 square_note 1, 0, 0, 0
sound_ret sound_ret

View File

@ -4,6 +4,6 @@ SFX_Healing_Machine_3_Ch5:
square_note 4, 15, 2, 1280 square_note 4, 15, 2, 1280
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 2, 15, 1, 1280 square_note 2, 15, 1, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
square_note 1, 0, 0, 0 square_note 1, 0, 0, 0
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Intro_Hip_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 2, 6 pitch_sweep 2, 6
square_note 12, 12, 2, 1856 square_note 12, 12, 2, 1856
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Intro_Hop_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 2, 6 pitch_sweep 2, 6
square_note 12, 12, 2, 1664 square_note 12, 12, 2, 1664
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Ledge_1_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 9, 5 pitch_sweep 9, 5
square_note 15, 15, 2, 1024 square_note 15, 15, 2, 1024
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Ledge_3_Ch5:
duty_cycle 2 duty_cycle 2
pitch_sweep 9, 5 pitch_sweep 9, 5
square_note 15, 15, 2, 1024 square_note 15, 15, 2, 1024
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,5 +4,5 @@ SFX_Poisoned_1_Ch5:
square_note 4, 15, 2, 1536 square_note 4, 15, 2, 1536
sound_loop 4, SFX_Poisoned_1_Ch5 sound_loop 4, SFX_Poisoned_1_Ch5
square_note 15, 15, 3, 1536 square_note 15, 15, 3, 1536
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,5 +4,5 @@ SFX_Poisoned_3_Ch5:
square_note 4, 15, 2, 1536 square_note 4, 15, 2, 1536
sound_loop 4, SFX_Poisoned_3_Ch5 sound_loop 4, SFX_Poisoned_3_Ch5
square_note 15, 15, 3, 1536 square_note 15, 15, 3, 1536
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -7,7 +7,7 @@ SFX_Psychic_M_Ch5:
square_note 8, 12, 4, 1984 square_note 8, 12, 4, 1984
square_note 15, 12, 4, 1985 square_note 15, 12, 4, 1985
square_note 15, 15, 2, 1984 square_note 15, 15, 2, 1984
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -10,5 +10,5 @@ SFX_Shooting_Star_Ch5:
square_note 8, 6, 0, 2016 square_note 8, 6, 0, 2016
square_note 8, 3, 0, 2016 square_note 8, 3, 0, 2016
square_note 15, 1, 2, 2016 square_note 15, 1, 2, 2016
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Shrink_1_Ch5:
square_note 15, 8, 7, 1280 square_note 15, 8, 7, 1280
square_note 15, 4, 7, 1152 square_note 15, 4, 7, 1152
square_note 15, 1, 7, 1024 square_note 15, 1, 7, 1024
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Shrink_3_Ch5:
square_note 15, 8, 7, 1280 square_note 15, 8, 7, 1280
square_note 15, 4, 7, 1152 square_note 15, 4, 7, 1152
square_note 15, 1, 7, 1024 square_note 15, 1, 7, 1024
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Teleport_Enter1_1_Ch5:
square_note 15, 8, 7, 1536 square_note 15, 8, 7, 1536
square_note 15, 4, 7, 1408 square_note 15, 4, 7, 1408
square_note 15, 1, 7, 1280 square_note 15, 1, 7, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Teleport_Enter1_3_Ch5:
square_note 15, 8, 7, 1536 square_note 15, 8, 7, 1536
square_note 15, 4, 7, 1408 square_note 15, 4, 7, 1408
square_note 15, 1, 7, 1280 square_note 15, 1, 7, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Teleport_Exit1_1_Ch5:
square_note 15, 8, 7, 1536 square_note 15, 8, 7, 1536
square_note 15, 4, 7, 1664 square_note 15, 4, 7, 1664
square_note 15, 1, 7, 1792 square_note 15, 1, 7, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -6,5 +6,5 @@ SFX_Teleport_Exit1_3_Ch5:
square_note 15, 8, 7, 1536 square_note 15, 8, 7, 1536
square_note 15, 4, 7, 1664 square_note 15, 4, 7, 1664
square_note 15, 1, 7, 1792 square_note 15, 1, 7, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Teleport_Exit2_1_Ch5:
duty_cycle 1 duty_cycle 1
pitch_sweep 1, 6 pitch_sweep 1, 6
square_note 15, 13, 2, 1280 square_note 15, 13, 2, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -2,5 +2,5 @@ SFX_Teleport_Exit2_3_Ch5:
duty_cycle 1 duty_cycle 1
pitch_sweep 1, 6 pitch_sweep 1, 6
square_note 15, 13, 2, 1280 square_note 15, 13, 2, 1280
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,5 +4,5 @@ SFX_Tink_1_Ch5:
square_note 4, 15, 2, 512 square_note 4, 15, 2, 512
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 8, 14, 2, 512 square_note 8, 14, 2, 512
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,5 +4,5 @@ SFX_Tink_2_Ch5:
square_note 4, 15, 2, 512 square_note 4, 15, 2, 512
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 8, 14, 2, 512 square_note 8, 14, 2, 512
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -4,5 +4,5 @@ SFX_Tink_3_Ch5:
square_note 4, 15, 2, 512 square_note 4, 15, 2, 512
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 8, 14, 2, 512 square_note 8, 14, 2, 512
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -3,5 +3,5 @@ SFX_Trade_Machine_1_Ch5:
pitch_sweep 1, 5 pitch_sweep 1, 5
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -3,5 +3,5 @@ SFX_Trade_Machine_3_Ch5:
pitch_sweep 1, 5 pitch_sweep 1, 5
square_note 15, 15, 0, 1264 square_note 15, 15, 0, 1264
square_note 15, 15, 2, 1616 square_note 15, 15, 2, 1616
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -8,5 +8,5 @@ SFX_Withdraw_Deposit_1_Ch5:
square_note 4, 15, 2, 1792 square_note 4, 15, 2, 1792
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 15, 14, 2, 1792 square_note 15, 14, 2, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -8,5 +8,5 @@ SFX_Withdraw_Deposit_3_Ch5:
square_note 4, 15, 2, 1792 square_note 4, 15, 2, 1792
pitch_sweep 2, 2 pitch_sweep 2, 2
square_note 15, 14, 2, 1792 square_note 15, 14, 2, 1792
pitch_sweep 0, 0 pitch_sweep 0, 8
sound_ret sound_ret

View File

@ -32,11 +32,13 @@ ENDM
; arguments: length [0, 7], pitch change [-7, 7] ; arguments: length [0, 7], pitch change [-7, 7]
; length: length of time between pitch shifts ; length: length of time between pitch shifts
; sometimes used with a value >7 in which case the MSB is ignored
; pitch change: positive value means increase in pitch, negative value means decrease in pitch ; pitch change: positive value means increase in pitch, negative value means decrease in pitch
; small magnitude means quick change, large magnitude means slow change ; small magnitude means quick change, large magnitude means slow change
; in signed magnitude representation, so a value of 8 is the same as (negative) 0
pitch_sweep: MACRO pitch_sweep: MACRO
db $10 db $10
IF \2 <= 0 IF \2 < 0
db (\1 << 4) | (%1000 | (\2 * -1)) db (\1 << 4) | (%1000 | (\2 * -1))
ELSE ELSE
db (\1 << 4) | \2 db (\1 << 4) | \2
@ -46,6 +48,7 @@ ENDM
; arguments: length [0, 15], volume [0, 15], fade [-7, 7], frequency ; arguments: length [0, 15], volume [0, 15], fade [-7, 7], frequency
; fade: positive value means decrease in volume, negative value means increase in volume ; fade: positive value means decrease in volume, negative value means increase in volume
; small magnitude means quick change, large magnitude means slow change ; small magnitude means quick change, large magnitude means slow change
; in signed magnitude representation, so a value of 8 is the same as (negative) 0
square_note: MACRO square_note: MACRO
db $20 | \1 db $20 | \1
IF \3 < 0 IF \3 < 0
@ -59,6 +62,7 @@ ENDM
; arguments: length [0, 15], volume [0, 15], fade [-7, 7], frequency ; arguments: length [0, 15], volume [0, 15], fade [-7, 7], frequency
; fade: positive value means decrease in volume, negative value means increase in volume ; fade: positive value means decrease in volume, negative value means increase in volume
; small magnitude means quick change, large magnitude means slow change ; small magnitude means quick change, large magnitude means slow change
; in signed magnitude representation, so a value of 8 is the same as (negative) 0
noise_note: MACRO noise_note: MACRO
db $20 | \1 db $20 | \1
IF \3 < 0 IF \3 < 0
@ -109,6 +113,7 @@ ENDM
; arguments: speed [0, 15], volume [0, 15], fade [-7, 7] ; arguments: speed [0, 15], volume [0, 15], fade [-7, 7]
; fade: positive value means decrease in volume, negative value means increase in volume ; fade: positive value means decrease in volume, negative value means increase in volume
; small magnitude means quick change, large magnitude means slow change ; small magnitude means quick change, large magnitude means slow change
; in signed magnitude representation, so a value of 8 is the same as (negative) 0
note_type: MACRO note_type: MACRO
db $D0 | \1 db $D0 | \1
IF \3 < 0 IF \3 < 0