{"id":11,"date":"2016-02-16T19:08:38","date_gmt":"2016-02-16T10:08:38","guid":{"rendered":"http:\/\/blog.criware.com\/?p=11"},"modified":"2016-03-03T23:05:59","modified_gmt":"2016-03-03T14:05:59","slug":"adx2-post-1","status":"publish","type":"post","link":"https:\/\/blog.criware.com\/index.php\/2016\/02\/16\/adx2-post-1\/","title":{"rendered":"Learning about Cue types"},"content":{"rendered":"<p>When using ADX2, almost every sound you will play will be triggered by a Cue (we say \u201calmost\u201d because the programmer could also play a waveform in memory or on disk directly). The type of the Cue is primordial to the audio implementation as it determines how the sound will be played. In this post, we examine the different types of Cues, from \u201cPolyphonic\u201d to \u201cRandom no repeat\u201d via the more exotic \u201cCombo sequential\u201d.<\/p>\n<p>In ADX2, a Cue is composed of one or more Tracks (each potentially containing several Waveform Regions on a timeline). The Cue type defines how these Tracks will actually be played when the Cue is triggered.<\/p>\n<p>The available Cue types are: \u201cPolyphonic\u201d, \u201cSequential\u201d, \u201cShuffle\u201d, \u201cRandom\u201d, \u201cRandom no repeat, \u201cSwitch\u201d and \u201cCombo sequential\u201d. By default, the type is set to \u201cPolyphonic\u201d, which means that all the Tracks will be played simultaneously. This is particularly useful to create ambiances or any sound effect composed of several parts or\u00a0layers.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-41 size-full\" src=\"http:\/\/219.94.245.113\/wp-content\/uploads\/2016\/02\/BombImpact.png\" alt=\"Polyphonic Cue\" width=\"1020\" height=\"475\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/BombImpact.png 1020w, https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/BombImpact-300x140.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/BombImpact-768x358.png 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<p>A Cue of the \u201cSequential\u201d type will only play one Track at a time.\u00a0 Each time the Cue is triggered, the next Track will be played. You could you use it for a countdown for example. The order of the Tracks &#8211; i.e. which one is actually the next one to be played &#8211; can be simply based on their position in the Cue or come from a playlist.<\/p>\n<p>Cues of type \u201cShuffle\u201d will play a new Track each time they are triggered. \u00a0It is similar to the sequential mode, except that the order in which the Tracks are played is random (i.e. ADX2 will make sure that all Tracks have been played once before playing them again).<\/p>\n<p>The \u201cRandom\u201d and \u201cRandom no repeat\u201d types are very similar. They both will pick up the next Track to play randomly. However, the latter will make sure the same sound is not repeated twice in a row, which could sound awkward, for example if your character&#8217;s footstep makes the exact same sound several times. Each Track can be assigned a random weight. These weights can be entered directly or adjusted graphically by dragging the black lines seen below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-42 size-full\" src=\"http:\/\/219.94.245.113\/wp-content\/uploads\/2016\/02\/Random-Weight.png\" alt=\"Random Weight\" width=\"911\" height=\"237\" srcset=\"https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/Random-Weight.png 911w, https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/Random-Weight-300x78.png 300w, https:\/\/blog.criware.com\/wp-content\/uploads\/2016\/02\/Random-Weight-768x200.png 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/p>\n<p>The &#8220;Switch&#8221; type allows ADX2 to select the Track to be played based on a game selector, which is great for interactive sound. To come back to the footstep example, you could play a different Track based on the type of material the player is walking on for example. You would create a Selector called &#8220;Material&#8221; and it would have Selector Labels such as &#8220;Concrete&#8221;,&#8221;Wood&#8221;,&#8221;Grass&#8221; etc&#8230;<\/p>\n<p>Finally, the &#8220;Combo sequential&#8221; type adds options to the sequential type, such as playing the next Track only if the Cue has been re-triggered within a given period of time, and returning to the first Track if it was not. Aptly named, it simulates the behavior of a combo, for example in a fighting game.<\/p>\n<p>As you can see, the Cue types allow for the creation of complex sonic behaviors in a very intuitive way. But it is only a beginning\u2026\u00a0 Indeed, you can nest Cues into other Cues, loop parts of the Cues, divide them into blocks etc\u2026 to create truly amazing interactive sounds. With ADX2, the possibilities are endless!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using ADX2, almost every sound you will play will be triggered by a Cue (we say \u201calmost\u201d because the<\/p>\n","protected":false},"author":2,"featured_media":26,"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-11","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\/11","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=11"}],"version-history":[{"count":10,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions\/63"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media\/26"}],"wp:attachment":[{"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.criware.com\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}