{"id":1800,"date":"2018-06-14T09:34:09","date_gmt":"2018-06-14T00:34:09","guid":{"rendered":"http:\/\/blog.criware.com\/?p=1800"},"modified":"2018-07-06T09:04:15","modified_gmt":"2018-07-06T00:04:15","slug":"atomcraft-how-to-1","status":"publish","type":"post","link":"https:\/\/blog.criware.com\/index.php\/2018\/06\/14\/atomcraft-how-to-1\/","title":{"rendered":"AtomCraft \u2013 How-to? #1"},"content":{"rendered":"<p>In this new series, we will look at the implementation of some of the typical interactive audio tasks in AtomCraft, the authoring tool of <a href=\"http:\/\/www.criware.com\/en\/products\/adx2.html\">ADX2<\/a>. These posts are not meant to be exhaustive references but rather a collection of pointers to put you on the right path. When available, we will link to other posts with more detailed information.<\/p>\n<p>In addition, you can download a demo project that contains an implementation all the examples. This will allow you to get started in no time. The techniques described here will work both with the native <a href=\"http:\/\/www.criware.com\/en\/\">CRIWARE SDK<\/a> and the <a href=\"https:\/\/unityplugin.crimiddleware.com\/\">ADX2 plugin for Unity<\/a>.<\/p>\n<p><a href=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/HowTo-1.zip\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1813\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/zip.png\" alt=\"zip\" width=\"80\" height=\"78\" \/><br \/>\n<\/a><\/p>\n<p style=\"font-weight:bold;\">Download the demo project (requires AtomCraft 2.35)<\/a><\/p>\n<p>Ready? Ok, let\u2019s see how to\u2026<br \/>\n<\/br><\/br><\/p>\n<h5>Randomize a sound<\/h5>\n<p>Nothing like a bit of randomization to fight repetition in game audio!<\/p>\n<ul>\n<li>Create a Cue of type<strong> Random No Repeat<\/strong> and add your sound variations on different Tracks.<\/li>\n<li>In the <strong>Selector\/Random tab<\/strong> of the Cue, graphically adjust the weight of each sound if needed.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1803\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/1-1.png\" alt=\"1\" width=\"1379\" height=\"314\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/1-1.png 1379w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/1-1-300x68.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/1-1-768x175.png 768w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/1-1-1024x233.png 1024w\" sizes=\"auto, (max-width: 1379px) 100vw, 1379px\" \/><\/p>\n<ul>\n<li>Select the tracks one by one, in the <strong>FX1 and FX2 tabs<\/strong>, click on pitch, envelope, filter cutoff etc and for each parameter move the mouse vertically to adjust the <strong>random range<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1807\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/2-1.png\" alt=\"2\" width=\"943\" height=\"731\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/2-1.png 943w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/2-1-300x233.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/2-1-768x595.png 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/p>\n<p>In the demo project, play the Randomize Cue several times and notice the variations in the sound.<\/p>\n<p>To learn more about AtomCraft\u2019s randomization features, please check <a href=\"http:\/\/blog.criware.com\/index.php\/2017\/01\/16\/atomcrafts-randomization-features\/\">this blog post<\/a>.<\/p>\n<p><\/br><\/br><\/p>\n<h5>Switch the sound played based on the context of the game<\/h5>\n<p>Sometimes, you will need to radically change the sound that is played based on what is happening in the game. This can be the case when playing the sound of bullet impacts on different materials or footsteps on various surfaces.<\/p>\n<ul>\n<li>In the Global Settings, create a <strong>Selector<\/strong> (for example, for the footsteps: Surface)<\/li>\n<li>Create <strong>Selector Labels<\/strong>, which are the values the selector can take (e.g. Concrete, Dirt, Grass, and Wood)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1808\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/3-1.png\" alt=\"3\" width=\"219\" height=\"203\" \/><\/p>\n<ul>\n<li>Create a Cue of type <strong>Switch<\/strong>. Add a Track for each Selector Label.<\/li>\n<li>In the <strong>Selector\/Random tab<\/strong>, specify the Surface Selector and assign each Track of the Cue to a different Selector Label.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1809\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/4-1.png\" alt=\"4\" width=\"834\" height=\"648\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/4-1.png 834w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/4-1-300x233.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/4-1-768x597.png 768w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/p>\n<p>You can refer to the \u201cSwitch\u201d Cue of the demo project. To test it, open the <strong>Session window<\/strong>, drag and drop the \u201cSwitch\u201d Cue, chose a Selector Label and play!<\/p>\n<p>To learn more about the selectors, you can watch this <a href=\"https:\/\/www.youtube.com\/watch?v=UBZbkA8eCFw\">tutorial video<\/a>.<\/p>\n<p>For more details about how to implement footsteps in your game, please check <a href=\"http:\/\/blog.criware.com\/index.php\/2017\/07\/03\/footsteps-sound-effects-implementation-using-atomcraft\/\">this blog post<\/a>.<\/p>\n<p><\/br><\/br><\/p>\n<h5>Automatically duck specific sounds<\/h5>\n<p>Sometimes you need to put the emphasis on specific sounds by lowering the level of the others. For example, you may want to lower the level of the music when a character starts speaking to make sure that the dialog is intelligible. AtomCraft offers an auto-ducking feature that greatly facilitates this!<\/p>\n<ul>\n<li>Create <strong>Categories<\/strong> (for example \u201cDIALOG\u201d and \u201cMUSIC\u201d) and assign them to your Cues (in the \u201cCue\u201d tab of the Cue)<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1810\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/5-1.png\" alt=\"5\" width=\"916\" height=\"473\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/5-1.png 916w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/5-1-300x155.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/5-1-768x397.png 768w\" sizes=\"auto, (max-width: 916px) 100vw, 916px\" \/><\/p>\n<ul>\n<li>Create a <strong>REACT<\/strong> object.<\/li>\n<li>Assign the <strong>triggering category<\/strong> (e.g. DIALOG ) and the <strong>modified category<\/strong> (e.g. MUSIC)<\/li>\n<li>Set other parameters such as the fading times (<strong>Change Time <\/strong>and <strong>Return Time<\/strong>) and the new level for the sounds of the modified category (<strong>Change Level value<\/strong>).<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1811\" src=\"http:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/6-1.png\" alt=\"6\" width=\"741\" height=\"523\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/6-1.png 741w, https:\/\/blog.criware.com\/wp-content\/uploads\/2018\/06\/6-1-300x212.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/p>\n<p>To try the auto-ducking in our demo project, go in in the Session window, start the \u201cBackgroundMusic\u201d Cue and then trigger the \u201cAnnouncer\u201d Cue.\u00a0 The music will fade-out and fade back in when the voice has finished playing.<\/p>\n<p>For more details about how to implement auto-ducking with REACT in your game, please check this <a href=\"http:\/\/blog.criware.com\/index.php\/2016\/03\/29\/auto-ducking-in-adx2-with-react\/\">blog post<\/a>.<\/p>\n<p>You can also watch this <a href=\"https:\/\/www.youtube.com\/watch?v=lYHyhGW0-w4\">video tutorial<\/a>.<\/p>\n<p>That\u2019s all for this post! In the next installment of this series, we will learn how to implement interactive music, play sounds in sync and control sound from game parameters! We will of course update our sample project. Please do not hesitate to <a href=\"mailto:global-sales@criware.com\">contact us<\/a> if you think some specific tasks or techniques should be part of this series!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this new series, we will look at the implementation of some of the typical interactive audio tasks in AtomCraft,<\/p>\n","protected":false},"author":2,"featured_media":1827,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-1800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-adx","category-tutorials"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/1800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/comments?post=1800"}],"version-history":[{"count":13,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/1800\/revisions"}],"predecessor-version":[{"id":1822,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/1800\/revisions\/1822"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media\/1827"}],"wp:attachment":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media?parent=1800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/categories?post=1800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/tags?post=1800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}