<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ffrtt.ru/index.php?action=history&amp;feed=atom&amp;title=FF7%2FField%2FScript%2FOpcodes%2FFD_CMUSC</id>
	<title>FF7/Field/Script/Opcodes/FD CMUSC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ffrtt.ru/index.php?action=history&amp;feed=atom&amp;title=FF7%2FField%2FScript%2FOpcodes%2FFD_CMUSC"/>
	<link rel="alternate" type="text/html" href="https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/FD_CMUSC&amp;action=history"/>
	<updated>2026-08-04T10:59:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/FD_CMUSC&amp;diff=5780&amp;oldid=prev</id>
		<title>Dangarfield: CMUSC initial description</title>
		<link rel="alternate" type="text/html" href="https://wiki.ffrtt.ru/index.php?title=FF7/Field/Script/Opcodes/FD_CMUSC&amp;diff=5780&amp;oldid=prev"/>
		<updated>2020-08-28T12:55:07Z</updated>

		<summary type="html">&lt;p&gt;CMUSC initial description&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Opcode: '''0xFD'''&lt;br /&gt;
* Short name: '''CMUSC'''&lt;br /&gt;
* Long name: Change Music&lt;br /&gt;
&lt;br /&gt;
==== Memory layout ====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; style=&amp;quot;border: 1px solid black; border-collapse: collapse;&amp;quot;&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | 0xFD&lt;br /&gt;
! width=&amp;quot;50&amp;quot; | ''I''&lt;br /&gt;
! width=&amp;quot;50&amp;quot; | ''p1''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''p2''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''p3''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''p4''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''p5''&lt;br /&gt;
! width=&amp;quot;40&amp;quot; | ''p6''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Arguments ====&lt;br /&gt;
&lt;br /&gt;
* '''const UByte''' ''I'': Ref to music files for the field (field flevel-&amp;gt;script-&amp;gt;AKAO[]&lt;br /&gt;
* '''const UByte''' ''p1'': Unknown, always 0 (PC)&lt;br /&gt;
* '''const UByte''' ''p2'': Potentially fadeOut time from current music&lt;br /&gt;
* '''const UByte''' ''p3'': Potentially fadeIn time and trigger from changed music&lt;br /&gt;
* '''const UByte''' ''p4'': Unknown, always 0 (PC)&lt;br /&gt;
* '''const UByte''' ''p5'': Unknown, always 0 (PC)&lt;br /&gt;
* '''const UByte''' ''p6'': Unknown, always 0 (PC)&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
Most commonly used for the sleeping at an inn.&lt;br /&gt;
When p3 === 0 &amp;amp;&amp;amp; p2 === 20, the current music stops immediately and the change music id plays at the channel volume immediately.&lt;br /&gt;
When p3 &amp;gt; 0 &amp;amp;&amp;amp; p2 &amp;gt; 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)&lt;/div&gt;</summary>
		<author><name>Dangarfield</name></author>
		
	</entry>
</feed>