{"id":895,"date":"2014-08-26T00:52:45","date_gmt":"2014-08-26T00:52:45","guid":{"rendered":"http:\/\/charlie-roberts.com\/gibber\/pluck\/"},"modified":"2014-08-26T00:52:45","modified_gmt":"2014-08-26T00:52:45","slug":"pluck","status":"publish","type":"page","link":"http:\/\/charlie-roberts.com\/gibber\/pluck\/","title":{"rendered":"Pluck"},"content":{"rendered":"<p>Simple physical model of a plucked string using Karplus-Strong.<\/p>\n<p>Inherits from Ugen.<\/p>\n<p>Example:<\/p>\n<pre>a = Pluck()\n\na.play( Rndi(220, 880), 1\/16 )\n\na.blend = Add( .5, Sine(.05, .5)._ )<\/pre>\n<h2 id=\"properties\">Properties<\/h2>\n<ul>\n<li><em>amp<\/em> : Float. default range { 0, 1 }. default value: .25.<\/li>\n<li><em>blend<\/em> : Float. Default range { 0, 1 }. Default value: 1. In the Karplus-Strong model, the blend parameter determines the likelihood that the sign of a given sample will be flipped; this introduces noise into the model. A value of 1 means the sign will always be positive; a value of 0 means the sign will be random per sample. A value of 1 yields the typical plucked string sound.<\/li>\n<li><em>damping<\/em> : Default range { 0, 1 }. Simulates damping of the string, which is also affected by frequency.<\/li>\n<li><em>maxVoices<\/em>: Int. Default value: 1. The maximum number of frequencies the synthesizer can play simultaneously. This value can <em>only be set during initialization<\/em>.<\/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<\/ul>\n<h2 id=\"methods\">Methods<\/h2>\n<ul>\n<li><em>chord<\/em>( Array:frequencies, Float:amp(optional) ) : Playback multiple notes at a provided amplitude. The maxVoices property have been set to a value higher than 1 during intialization for this function to work.<\/li>\n<li><em>note<\/em>( Float:frequency, Float:amp(optional) ) : This method tells the synthesizer to play a single note at a particular volume.<\/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. <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Simple physical model of a plucked string using Karplus-Strong. Inherits from Ugen. Example: a = Pluck() a.play( Rndi(220, 880), 1\/16 ) a.blend = Add( .5, Sine(.05, .5)._ ) Properties amp : Float. default range { 0, 1 }. default value: .25. blend : Float. Default range { 0, 1 }. Default value: 1. In the [&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\/895"}],"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=895"}],"version-history":[{"count":0,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages\/895\/revisions"}],"wp:attachment":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/media?parent=895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}