<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Pause_and_Resume_Music</id>
	<title>Pause and Resume Music - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Pause_and_Resume_Music"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pause_and_Resume_Music&amp;action=history"/>
	<updated>2026-04-30T01:21:46Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pause_and_Resume_Music&amp;diff=1786&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pause_and_Resume_Music&amp;diff=1786&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:16Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pause_and_Resume_Music&amp;diff=1785&amp;oldid=prev</id>
		<title>scratch&gt;TheTrillion: Minor thing.</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pause_and_Resume_Music&amp;diff=1785&amp;oldid=prev"/>
		<updated>2021-06-07T04:51:05Z</updated>

		<summary type="html">&lt;p&gt;Minor thing.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial will explain how to make &amp;#039;&amp;#039;&amp;#039;resume/pause&amp;#039;&amp;#039;&amp;#039; custom blocks that give users the ability to pause and resume sounds in a project.&lt;br /&gt;
&lt;br /&gt;
== Pausing Sounds ==&lt;br /&gt;
This script will make sounds pause:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define Pause&lt;br /&gt;
set volume to (0)%&lt;br /&gt;
set [pitch v] effect to ([log v] of ()) // keep the input blank&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way this can be done is to put this block at the end, which still has the same effect: &amp;lt;scratchblocks&amp;gt; set [pitch v] effect to ((-1) / (0)) // this equals -infinity &amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This works because the [[Sound Effect#Pitch|pitch effect blocks]] can slow down and speed up sounds. However, the minimum the pitch effect can go is a value -360, meaning that it is impossible to fully pause sounds using the pitch effect blocks. That is the reason the set volume to 0 block is needed, otherwise the sound would still be heard. While it may be impossible to fully pause sounds this way, this method will still get very close.&lt;br /&gt;
&lt;br /&gt;
== Resuming Sounds ==&lt;br /&gt;
This script will make the sounds resume:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
define Resume&lt;br /&gt;
set volume to (100)%&lt;br /&gt;
set [pitch v] effect to (0)&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
This code just reverts the effects of the &amp;quot;pause sound&amp;quot; custom block.&lt;br /&gt;
&lt;br /&gt;
== Music ==&lt;br /&gt;
The music is optional:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when green flag clicked&lt;br /&gt;
forever&lt;br /&gt;
play sound (Music v) until done&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* [[projects:322615380|Pause/Play ANY Audio File!]] on Scratch&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;TheTrillion</name></author>
	</entry>
</feed>