<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.castle.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Clock</id>
	<title>Clock - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.castle.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=Clock"/>
	<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;action=history"/>
	<updated>2026-05-26T20:07:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=600&amp;oldid=prev</id>
		<title>Ashh3b0oke: /* Synchronizing events with the clock */ I removed the use of two “use”.</title>
		<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=600&amp;oldid=prev"/>
		<updated>2023-04-13T07:21:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Synchronizing events with the clock: &lt;/span&gt; I removed the use of two “use”.&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:21, 13 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your main goal is to play music, the best approach is to use the built-in [[Music]] behavior. If you want to do something more interactive, such as synchronize in-game events with the music, or with each other, you can use the clock.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If your main goal is to play music, the best approach is to use the built-in [[Music]] behavior. If you want to do something more interactive, such as synchronize in-game events with the music, or with each other, you can use the clock.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Within [[Rule|Rules]], any time-related [[Response]] can either use unstructured seconds (default) or can choose to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use &lt;/del&gt;use clock units. For example, the &amp;#039;&amp;#039;&amp;#039;Wait&amp;#039;&amp;#039;&amp;#039; response can &amp;#039;&amp;#039;&amp;#039;Wait for 1 second&amp;#039;&amp;#039;&amp;#039;, but it can also &amp;#039;&amp;#039;&amp;#039;Wait for 1 beat&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;Wait until the next beat&amp;#039;&amp;#039;&amp;#039;. Similarly, the [[Repeat]] response can either &amp;#039;&amp;#039;&amp;#039;Repeat every 1 second&amp;#039;&amp;#039;&amp;#039;, or it can &amp;#039;&amp;#039;&amp;#039;Repeat every beat/bar/step&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Within [[Rule|Rules]], any time-related [[Response]] can either use unstructured seconds (default) or can choose to use clock units. For example, the &amp;#039;&amp;#039;&amp;#039;Wait&amp;#039;&amp;#039;&amp;#039; response can &amp;#039;&amp;#039;&amp;#039;Wait for 1 second&amp;#039;&amp;#039;&amp;#039;, but it can also &amp;#039;&amp;#039;&amp;#039;Wait for 1 beat&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;Wait until the next beat&amp;#039;&amp;#039;&amp;#039;. Similarly, the [[Repeat]] response can either &amp;#039;&amp;#039;&amp;#039;Repeat every 1 second&amp;#039;&amp;#039;&amp;#039;, or it can &amp;#039;&amp;#039;&amp;#039;Repeat every beat/bar/step&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The music-specific rule responses also contain options to synchronize with the clock. For example, you can do something like: &amp;#039;&amp;#039;&amp;#039;Play this actor&amp;#039;s song at the next bar&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The music-specific rule responses also contain options to synchronize with the clock. For example, you can do something like: &amp;#039;&amp;#039;&amp;#039;Play this actor&amp;#039;s song at the next bar&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-254:rev-600 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ashh3b0oke</name></author>
	</entry>
	<entry>
		<id>https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=254&amp;oldid=prev</id>
		<title>Ben at 16:30, 12 May 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=254&amp;oldid=prev"/>
		<updated>2022-05-12T16:30:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:30, 12 May 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While the card is playing, you can use the &amp;#039;&amp;#039;&amp;#039;Set clock tempo&amp;#039;&amp;#039;&amp;#039; response inside a [[Rule]] to change the tempo. You can read the current tempo using the &amp;#039;&amp;#039;&amp;#039;Clock tempo&amp;#039;&amp;#039;&amp;#039; [[Expression]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While the card is playing, you can use the &amp;#039;&amp;#039;&amp;#039;Set clock tempo&amp;#039;&amp;#039;&amp;#039; response inside a [[Rule]] to change the tempo. You can read the current tempo using the &amp;#039;&amp;#039;&amp;#039;Clock tempo&amp;#039;&amp;#039;&amp;#039; [[Expression]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Synchronizing events with the clock ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If your main goal is to play music, the best approach is to use the built-in [[Music]] behavior. If you want to do something more interactive, such as synchronize in-game events with the music, or with each other, you can use the clock.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Within [[Rule|Rules]], any time-related [[Response]] can either use unstructured seconds (default) or can choose to use use clock units. For example, the &#039;&#039;&#039;Wait&#039;&#039;&#039; response can &#039;&#039;&#039;Wait for 1 second&#039;&#039;&#039;, but it can also &#039;&#039;&#039;Wait for 1 beat&#039;&#039;&#039; or &#039;&#039;&#039;Wait until the next beat&#039;&#039;&#039;. Similarly, the [[Repeat]] response can either &#039;&#039;&#039;Repeat every 1 second&#039;&#039;&#039;, or it can &#039;&#039;&#039;Repeat every beat/bar/step&#039;&#039;&#039;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The music-specific rule responses also contain options to synchronize with the clock. For example, you can do something like: &#039;&#039;&#039;Play this actor&#039;s song at the next bar&#039;&#039;&#039;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff::1.12:old-253:rev-254 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ben</name></author>
	</entry>
	<entry>
		<id>https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=253&amp;oldid=prev</id>
		<title>Ben: ADD ZE CLOCK</title>
		<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=253&amp;oldid=prev"/>
		<updated>2022-05-12T16:20:28Z</updated>

		<summary type="html">&lt;p&gt;ADD ZE CLOCK&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Clock&amp;#039;&amp;#039;&amp;#039; is a system for measuring time in [[Card|Cards]]. It is useful for adding rhythmic events and logic to games, in particular when combined with the [[Music]] behavior, but it can be used by itself for anything where you need to measure time in a structured way.&lt;br /&gt;
&lt;br /&gt;
== Clock units ==&lt;br /&gt;
The clock measures time in bars, beats, and steps. Bars are the largest unit of time, several beats make up a bar, and several steps make up a beat. By default, there are four steps to a beat, and four beats to a bar.&lt;br /&gt;
&lt;br /&gt;
The clock has a tempo measured in beats per minute. By default, the clock starts at 120 bpm.&lt;br /&gt;
&lt;br /&gt;
== Clock scope ==&lt;br /&gt;
There is one clock shared across the entire card. All of the [[Music]] across all of the [[Actor|Actors]] in the card will synchronize to the clock, and all time-related [[Rule|Rules]] in the card have the option of synchronizing to the clock.&lt;br /&gt;
&lt;br /&gt;
When the player moves between cards in the same deck, the previous card&amp;#039;s clock will finish its current bar before adopting the settings in the next card&amp;#039;s clock. This means that if both cards share the same clock settings, any music which was already playing won&amp;#039;t get interrupted by the navigation between cards.&lt;br /&gt;
&lt;br /&gt;
== Modifying the clock ==&lt;br /&gt;
From the editor, press the &amp;#039;&amp;#039;&amp;#039;Gear&amp;#039;&amp;#039;&amp;#039; icon at the top of the screen to open the Card Settings sheet. Then navigate to the &amp;#039;&amp;#039;&amp;#039;Clock&amp;#039;&amp;#039;&amp;#039; tab on that sheet. From here you can change the beats per bar, steps per beat, and tempo which will be used when the card starts.&lt;br /&gt;
&lt;br /&gt;
While the card is playing, you can use the &amp;#039;&amp;#039;&amp;#039;Set clock tempo&amp;#039;&amp;#039;&amp;#039; response inside a [[Rule]] to change the tempo. You can read the current tempo using the &amp;#039;&amp;#039;&amp;#039;Clock tempo&amp;#039;&amp;#039;&amp;#039; [[Expression]].&lt;/div&gt;</summary>
		<author><name>Ben</name></author>
	</entry>
</feed>