{"id":882,"date":"2014-08-26T00:52:43","date_gmt":"2014-08-26T00:52:43","guid":{"rendered":"http:\/\/charlie-roberts.com\/gibber\/cowbell\/"},"modified":"2014-08-26T00:52:43","modified_gmt":"2014-08-26T00:52:43","slug":"cowbell","status":"publish","type":"page","link":"http:\/\/charlie-roberts.com\/gibber\/cowbell\/","title":{"rendered":"Cowbell"},"content":{"rendered":"<p>Classic 808 cowbell with two square waves feeding a bandpass filter and an exponential decay envelope.<\/p>\n<p>Inherits from Ugen.<\/p>\n<p>Example:<\/p>\n<pre>\/\/ use random tunings for each Tom hit  \na = Cowbell().play( Rndf(5500, 44100), 1\/2 )<\/pre>\n<h2 id=\"properties\">Properties<\/h2>\n<ul>\n<li><em>pitch<\/em> : Int. The pitch of the first square wave in Hz. TODO: this should be a single float where 1 gives yields the classic 565 \/ 845 frequencies.<\/li>\n<li><em>decay<\/em> : Int. The length, in samples, of the cowbell decay.<\/li>\n<li><em>amp<\/em> : Float. default range { 0, 1 }. default value: .25.<\/li>\n<\/ul>\n<h2 id=\"methods\">Methods<\/h2>\n<ul>\n<li><em>note<\/em>( Int:decay )<\/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 oscillator from whatever bus it is connected to. Note that if the oscillator is reference by another unit generator it will continue to feed output to it.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Classic 808 cowbell with two square waves feeding a bandpass filter and an exponential decay envelope. Inherits from Ugen. Example: \/\/ use random tunings for each Tom hit a = Cowbell().play( Rndf(5500, 44100), 1\/2 ) Properties pitch : Int. The pitch of the first square wave in Hz. TODO: this should be a single float [&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\/882"}],"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=882"}],"version-history":[{"count":0,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages\/882\/revisions"}],"wp:attachment":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/media?parent=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}