53
edits
Changes
From Final Fantasy Inside
CMUSC initial description
* Opcode: '''0xFD'''
* Short name: '''CMUSC'''
* Long name: Change Music
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xFD
! width="50" | ''I''
! width="50" | ''p1''
! width="40" | ''p2''
! width="40" | ''p3''
! width="40" | ''p4''
! width="40" | ''p5''
! width="40" | ''p6''
|}
==== Arguments ====
* '''const UByte''' ''I'': Ref to music files for the field (field flevel->script->AKAO[]
* '''const UByte''' ''p1'': Unknown, always 0 (PC)
* '''const UByte''' ''p2'': Potentially fadeOut time from current music
* '''const UByte''' ''p3'': Potentially fadeIn time and trigger from changed music
* '''const UByte''' ''p4'': Unknown, always 0 (PC)
* '''const UByte''' ''p5'': Unknown, always 0 (PC)
* '''const UByte''' ''p6'': Unknown, always 0 (PC)
==== Description ====
Most commonly used for the sleeping at an inn.
When p3 === 0 && p2 === 20, the current music stops immediately and the change music id plays at the channel volume immediately.
When p3 > 0 && p2 > 20, the current music fades out (potentially at 20 frames - p2), after the fade has ended, the change music is faded in (potentially at 30 frames, p3)
* Short name: '''CMUSC'''
* Long name: Change Music
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xFD
! width="50" | ''I''
! width="50" | ''p1''
! width="40" | ''p2''
! width="40" | ''p3''
! width="40" | ''p4''
! width="40" | ''p5''
! width="40" | ''p6''
|}
==== Arguments ====
* '''const UByte''' ''I'': Ref to music files for the field (field flevel->script->AKAO[]
* '''const UByte''' ''p1'': Unknown, always 0 (PC)
* '''const UByte''' ''p2'': Potentially fadeOut time from current music
* '''const UByte''' ''p3'': Potentially fadeIn time and trigger from changed music
* '''const UByte''' ''p4'': Unknown, always 0 (PC)
* '''const UByte''' ''p5'': Unknown, always 0 (PC)
* '''const UByte''' ''p6'': Unknown, always 0 (PC)
==== Description ====
Most commonly used for the sleeping at an inn.
When p3 === 0 && p2 === 20, the current music stops immediately and the change music id plays at the channel volume immediately.
When p3 > 0 && p2 > 20, the current music fades out (potentially at 20 frames - p2), after the fade has ended, the change music is faded in (potentially at 30 frames, p3)