<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.torque-bhp.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Class%3ASound</id>
	<title>Class:Sound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.torque-bhp.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Class%3ASound"/>
	<link rel="alternate" type="text/html" href="http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Sound&amp;action=history"/>
	<updated>2026-05-30T23:22:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Sound&amp;diff=585&amp;oldid=prev</id>
		<title>Ihawkins: Created page with &quot;== Sound ==  Utility methods for dealing with generating simple sounds - since vesion 1.12.42  === Methods === &lt;syntaxhighlight lang=&quot;Java&quot;&gt;          /**      * Play a sequenc...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.torque-bhp.com/mediawiki/index.php?title=Class:Sound&amp;diff=585&amp;oldid=prev"/>
		<updated>2022-02-03T13:02:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Sound ==  Utility methods for dealing with generating simple sounds - since vesion 1.12.42  === Methods === &amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot;&amp;gt;          /**      * Play a sequenc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Sound ==&lt;br /&gt;
&lt;br /&gt;
Utility methods for dealing with generating simple sounds - since vesion 1.12.42&lt;br /&gt;
&lt;br /&gt;
=== Methods ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot;&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    /**&lt;br /&gt;
     * Play a sequence of pitches&lt;br /&gt;
     *&lt;br /&gt;
     * The tones are played in their own thread so execution will continue without pausing.&lt;br /&gt;
     *&lt;br /&gt;
     * @param pitches a pitch of 0 means no sound, but just pause for &amp;#039;duration&amp;#039; in playback&lt;br /&gt;
     * @param durations&lt;br /&gt;
     */&lt;br /&gt;
    public static void playTones(final int[] pitches, final int[] durations);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    /**&lt;br /&gt;
     * Play a single tone.&lt;br /&gt;
     *&lt;br /&gt;
     * The tone is played asynchronously&lt;br /&gt;
     *&lt;br /&gt;
     * @param pitch a pitch of 0 means no sound, but just pause for &amp;#039;duration&amp;#039; in playback&lt;br /&gt;
     */&lt;br /&gt;
    public static void playTone(int pitch, long durationMillis);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples === &lt;br /&gt;
&lt;br /&gt;
An example usage might look like:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// Play a positive sounding &amp;#039;connected&amp;#039; type sound&lt;br /&gt;
Sound.playTones([400,600,800], [50,50,50]);&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
// Play the letter &amp;#039;C&amp;#039; in morse code.&lt;br /&gt;
Sound.playTones([600,0,600,0,600,0,600], [500,100,200,100,500,100,200]);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ihawkins</name></author>
		
	</entry>
</feed>