<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Hanami Devlog]]></provider_name><provider_url><![CDATA[https://electromagneticproject.wordpress.com]]></provider_url><author_name><![CDATA[push start to begin]]></author_name><author_url><![CDATA[https://electromagneticproject.wordpress.com/author/pushstarttobegin/]]></author_url><title><![CDATA[Sound Effects]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>In contrast with the synthy background music track I created, I&#8217;ve actually been experimenting with 8-bit <em>NES style</em> noises as sound effects elsewhere in the game. These started off as placeholder sounds so that I could work out what type of noises to include, but they all seem to fit really well.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg"><img loading="lazy" data-attachment-id="1178" data-permalink="https://electromagneticproject.wordpress.com/2012/03/18/sound-effects/as3/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg" data-orig-size="662,548" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="as3" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=662" src="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=640&#038;h=529" alt="" title="as3" width="640" height="529" class="aligncenter size-full wp-image-1178" srcset="https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=640&amp;h=529 640w, https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=150&amp;h=124 150w, https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?w=300&amp;h=248 300w, https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg 662w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
I&#8217;ve been making the majority of my sound effects using a browser-based software called <a href="http://www.superflashbros.net/as3sfxr/" target="_blank">as3SFXR</a>, which generates random 8-bit sounds that you can adapt and customise in your web browser before saving and downloading your generated sound. You can see from the image above that its possible to customise all settings of any sound created, generate sounds based on category or create completely random sounds using the <em>randomise</em> button. You can export sounds as good quality .wav files!</p>
<p>Sound effects I&#8217;ve currently created in <em>as3SFXR</em> are:</p>
<ul>
<li>jump &amp; double jump</li>
<li>hurt sound</li>
<li>door sound</li>
<li>&#8220;flower squash&#8221;</li>
<li>&#8220;flower unsquash&#8221;</li>
<li>blossom collection</li>
<li>sushi box collection</li>
</ul>
<p>As luck would have it, a couple of days ago an article came up on <a href="http://www.tigsource.com/2012/03/17/labchirp/#more-24797" target="_blank">TIGsource</a> about a lesser known piece of software that could be used to generate multi-channel sound effects called <a href="http://labbed.net/software.php?id=labchirp" target="_blank">LabChirp</a>.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg"><img loading="lazy" data-attachment-id="1181" data-permalink="https://electromagneticproject.wordpress.com/2012/03/18/sound-effects/labchirp/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg" data-orig-size="1366,727" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="LabChirp" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=1024" src="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=640&#038;h=340" alt="" title="LabChirp" width="640" height="340" class="aligncenter size-full wp-image-1181" srcset="https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=640&amp;h=340 640w, https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=1278&amp;h=680 1278w, https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=150&amp;h=80 150w, https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=300&amp;h=160 300w, https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=768&amp;h=409 768w, https://electromagneticproject.files.wordpress.com/2012/03/labchirp.jpg?w=1024&amp;h=545 1024w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
This works very similarly, you can generate random sounds or create your own very easily. The main difference about <em>LabChirp</em> is that you can use the 8 channels listed down the right hand side of the first window to create complex sounds which utilise up to 8 instruments playing at once. You can see here that I&#8217;ve set the category to <em>footstep</em>, which is a category not covered by as3SFXR! I&#8217;ve made myself a very simple footstep sound based on a random generation which I customised to be softer and quieter. This only uses one channel, but was much easier to make from the starting point presented by the program. I&#8217;ve also made a &#8220;death&#8221; sound which uses two channels, and plays when the player runs out of health. You can also export sounds created in <em>LabChirp</em> as .wav files.</p>
<p>As I&#8217;ve mentioned before, I&#8217;m trying to avoid using Game Maker&#8217;s built in sound functions because there are much better ways of implementing sound effects and music. I had a go at using the <a href="http://moacube.com/resources/caster-multi-platform-ogg-extension-for-gamemaker/" target="_blank">Caster</a> extension for Game Maker, which supports <a href="http://en.wikipedia.org/wiki/Vorbis" target="_blank">.ogg</a> playback. Ogg Vorbis files are a great alternative to mp3s, especially with the restrictions on mp3 files and as Game Maker support for mp3s is temperamental at best. Game Maker plays .wav files fairly well, but using many .wav files can result in an unnecessarily large game file. <em>Caster</em> uses many of the same sound calling functions as the built in GM functions, but allows better customisation of things like volume and panning. In the end though, I&#8217;ve decided to use the <a href="http://gmc.yoyogames.com/index.php?showtopic=120034" target="_blank">SuperSound.dll</a> because it seems to have much more support on the internet. This .dll still support the use of Ogg Vorbis files, and many of the same functions as <em>Caster</em>, but works much differently as it is a .dll rather than an extension.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg"><img loading="lazy" data-attachment-id="1186" data-permalink="https://electromagneticproject.wordpress.com/2012/03/18/sound-effects/supersound-dll/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg" data-orig-size="1366,727" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Supersound dll" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=1024" src="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=640&#038;h=340" alt="" title="Supersound dll" width="640" height="340" class="aligncenter size-full wp-image-1186" srcset="https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=640&amp;h=340 640w, https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=1278&amp;h=680 1278w, https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=150&amp;h=80 150w, https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=300&amp;h=160 300w, https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=768&amp;h=409 768w, https://electromagneticproject.files.wordpress.com/2012/03/supersound-dll.jpg?w=1024&amp;h=545 1024w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
The <em>Super Sound System</em> comes with several scripts for GM. This example is a script called <em>SS_Init</em>, which is called in any instance where a sound is played. There are several other scripts (you can see some of them in the browser on the left hand side) including scripts to play and stop sound, and change various settings. In order for an external sound to be played, it must first be loaded. This can be done individually within each instance, but to save memory I&#8217;ve created an instance which loads all sounds as globals. This is created once, meaning that all sounds are only loaded once but can be played several times.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg"><img loading="lazy" data-attachment-id="1188" data-permalink="https://electromagneticproject.wordpress.com/2012/03/18/sound-effects/loadsound/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg" data-orig-size="787,455" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="LoadSound" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=787" src="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=640&#038;h=370" alt="" title="LoadSound" width="640" height="370" class="aligncenter size-full wp-image-1188" srcset="https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=640&amp;h=370 640w, https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=150&amp;h=87 150w, https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=300&amp;h=173 300w, https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg?w=768&amp;h=444 768w, https://electromagneticproject.files.wordpress.com/2012/03/loadsound.jpg 787w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
Here are all the sounds I currently have loaded (this list really needs some sorting out and arranging-it&#8217;s a bit messy!) I start off by initialising the <em>Super Sound System</em>, then use the <em>SS_LoadSound</em> function to load sounds from their location in the &#8220;Sound&#8221; folder. I&#8217;ve given each sound a <em>handle</em>, which acts as a unique ID for each sound. for example:</p>
<p><em>global.musHanami</em><br />
is the background track which is continuously looped;</p>
<p><em>global.sndstep</em><br />
is the sound that the footsteps make.</p>
<p>You can see I&#8217;ve also used the <em>SS_SetSoundVol</em> function, which allows you to change the volume of individual sounds. Because my sounds files have been brought in from various places, volume levels are a little erratic! This is only there temporarily, as eventually I&#8217;m planning to change the volume of the actual files to decrease the amount of functions called. I&#8217;ve been using <a href="http://audacity.sourceforge.net/" target="_blank">Audacity</a> to convert my files from .wavs to .oggs, and changing the volume is no problem.</p>
<p><a href="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg"><img loading="lazy" data-attachment-id="1190" data-permalink="https://electromagneticproject.wordpress.com/2012/03/18/sound-effects/playsound/" data-orig-file="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg" data-orig-size="787,218" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="PlaySound" data-image-description="" data-medium-file="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=300" data-large-file="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=787" src="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=640&#038;h=177" alt="" title="PlaySound" width="640" height="177" class="aligncenter size-full wp-image-1190" srcset="https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=640&amp;h=177 640w, https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=150&amp;h=42 150w, https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=300&amp;h=83 300w, https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg?w=768&amp;h=213 768w, https://electromagneticproject.files.wordpress.com/2012/03/playsound.jpg 787w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
Here&#8217;s a really simple example of how a sound is played. This script runs when the Z button is pressed (making the player jump). The <em>Super Sound System</em> is initialised with <em>SS_Init();</em>. If the player is on the ground when the Z button is pressed, the <em>SS_PlaySound(global.sndjump)</em> function is called. The second section of code applies to when Z is pressed and the player is in the air performing a double jump. This plays the <em>global.snddoublejump</em> handle, which is a higher pitched version of the jump sound.</p>
<p>Most of the sound effects have been fairly simple to implement, based on various parameters like the ones above. The most complex so far has been the <em>step</em> sound, which uses a timer between plays that I had to time perfectly to the point when each foot touches the floor! You&#8217;ll be able to hear some of these sounds in my next devlog video!</p>
]]></html><thumbnail_url><![CDATA[https://electromagneticproject.files.wordpress.com/2012/03/as3.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[]]></thumbnail_width><thumbnail_height><![CDATA[]]></thumbnail_height></oembed>