{"id":911,"date":"2014-08-26T00:52:47","date_gmt":"2014-08-26T00:52:47","guid":{"rendered":"http:\/\/charlie-roberts.com\/gibber\/xox\/"},"modified":"2014-08-26T00:52:47","modified_gmt":"2014-08-26T00:52:47","slug":"xox","status":"publish","type":"page","link":"http:\/\/charlie-roberts.com\/gibber\/xox\/","title":{"rendered":"Xox"},"content":{"rendered":"<p>A synthesized drum kit, carefully designed to simulate a Roland TR-808 drum machine, with an attached sequencer for quick beat construction. The first<br \/>\nargument to the constructor allows you to easily define beats using the following syntax:<\/p>\n<ul>\n<li>x : kick drum hit<\/li>\n<li>o : snare drum hit<\/li>\n<li>* : close hihat<\/li>\n<li>&#8211; : open hihat<\/li>\n<li>. : rest<\/li>\n<\/ul>\n<p>XOX objects are basically hybrid sequencers \/ unit generators; this means that you can call most unit generator methods,<br \/>\n( such as drums.fx.add() ) as well as some sequencer methods ( such as xox.stop() and xox.start() ). By default, the constructor<br \/>\nassumes that you want each note in your sequence to have a duration equal to one divided by the number of notes you specify. For example, if you<br \/>\nspecify a four-note sequence the XOX sequencer will assume you want each note to be a quarter note in duration. You can also specify a duration<br \/>\nexplicitly as a second parameter to the constructor.<\/p>\n<p>Unlike the Drums object, each sound in the XOX object is a synthesis unit generator. The parameters for each ugen are different. Basically the XOX<br \/>\nconsists of a Bus object that the individual synthesizers are attached to, and a sequencer to control them.<\/p>\n<p>Example:<\/p>\n<pre>a = XOX( 'xoxo' ) \/\/ each note is a quarter note in duration  \na.fx.add( Delay( 1\/64) )  \na.snare.snappy = 1.5  \n\nb = XOX( '***-', 1\/8 ) \/\/ each note is an eighth note\nb.hat.fx.add( Distortion() )  \nb.kick.decay = 1  \n\nb.seq.note = 'xoxx**-o'<\/pre>\n<h2 id=\"properties\">Properties<\/h2>\n<ul>\n<li><em>amp<\/em> : Float. default range { 0, 1 }. default value: 1.<\/li>\n<li><em>pan<\/em>: Float. Default range { -1, 1 }. Default value: 0. The position in the stereo spectrum of the Synth output.<\/li>\n<li><em>kick<\/em>: Ugen. The kick drum unit generator.<\/li>\n<li><em>snare<\/em>: Ugen. The snare drum unit generator.<\/li>\n<li><em>hat<\/em>: Ugen. The hihat unit generator.<\/li>\n<li><em>seq<\/em>: Sequencer. The built-in Seq object.<\/li>\n<\/ul>\n<h2 id=\"methods\">Methods<\/h2>\n<ul>\n<li><em>note<\/em>( Float:frequency, Float:amp(optional) ) : This method tells the drum kit to play a single note.<\/li>\n<li><em>play<\/em>( Array:frequencies, Array:durations ) : This method accepts arrays of frequencies and durations as arguments to create and start a sequencer targeting the oscillator.<\/li>\n<li><em>stop<\/em>() : This method stops the sequencer that is built into the oscillator if it has been started.<\/li>\n<li><em>kill<\/em>() : Disconnect the Drums from whatever bus it is connected to. <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A synthesized drum kit, carefully designed to simulate a Roland TR-808 drum machine, with an attached sequencer for quick beat construction. The first argument to the constructor allows you to easily define beats using the following syntax: x : kick drum hit o : snare drum hit * : close hihat &#8211; : open hihat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages\/911"}],"collection":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/comments?post=911"}],"version-history":[{"count":0,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages\/911\/revisions"}],"wp:attachment":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/media?parent=911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}