{"id":928,"date":"2014-08-26T04:50:01","date_gmt":"2014-08-26T04:50:01","guid":{"rendered":"http:\/\/charlie-roberts.com\/gibber\/gibber-clock-2\/"},"modified":"2014-08-26T04:50:01","modified_gmt":"2014-08-26T04:50:01","slug":"gibber-clock-2","status":"publish","type":"page","link":"http:\/\/charlie-roberts.com\/gibber\/gibber-clock-2\/","title":{"rendered":"Gibber.clock"},"content":{"rendered":"<h1 id=\"gibber-clock\">Gibber.Clock<\/h1>\n<p>The clock controls Gibber&#39;s master tempo and meter.<\/p>\n<p>Example:<\/p>\n<pre><code>drums = EDrums(&#39;x*o*x*o-&#39;)\n\n\/\/ half tempo\nClock.rate = .5\n\n\/\/ gradually speed up to original tempo\nClock.rate = Line( .5,1,8 )\n\n\/\/ change time signature\nClock.timeSignature = &#39;3\/4&#39;<\/code><\/pre>\n<h2 id=\"properties\">Properties<\/h2>\n<ul>\n<li><em>maxMeasures<\/em> : Float. Default value is 44. When using any indicator of time in Gibber, a number below this value is measured in terms of measures; higher numbers are measured in samples. For example, if Gibber.Clock.maxMeasures is 20 and the attack parameter of a synth is set to 2, that synth will have a two measure attack. If it&#39;s set to 50 it will have a 50 sample attack.<\/li>\n<li><em>rate<\/em> : Float. Default value 1. Controls the rate at which time advances. Doubling this value means all events occur twice as quickly. All sequencers in Gibber use this value as a base point for determining their individual rates, hence, changing this will affect all sequencers relative to their individual <code>rate<\/code> property values.<\/li>\n<li><em>timeSignature<\/em> : String. Use this to change Gibber&#39;s time signature, which defaults to <code>4\/4<\/code>. <\/li>\n<\/ul>\n<h2 id=\"methods\">Methods<\/h2>\n<ul>\n<li><em>time<\/em>( Float:timeValue ): This method returns a duration measured in sampled. If the arguments is less than <code>Gibber.Clock.maxMeasures<\/code>, it returns the argument * the number of samples per measure. If the argument is greater, it simply returns the argument.<\/li>\n<li><em>Time<\/em>( Float:timeValue ): Returns a function that returns a time value using the provided argument. This is primarily used in sequencing. <\/li>\n<li><em>beat<\/em>( Float:timeValue ): Returns the argument number of beats as a duration measured in samples.<\/li>\n<li><em>Beat<\/em>( Float:timeValue ): Returns a function returning the argument number of beats as a duration measured in samples.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Gibber.Clock The clock controls Gibber&#39;s master tempo and meter. Example: drums = EDrums(&#39;x*o*x*o-&#39;) \/\/ half tempo Clock.rate = .5 \/\/ gradually speed up to original tempo Clock.rate = Line( .5,1,8 ) \/\/ change time signature Clock.timeSignature = &#39;3\/4&#39; Properties maxMeasures : Float. Default value is 44. When using any indicator of time in Gibber, a [&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\/928"}],"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=928"}],"version-history":[{"count":0,"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/pages\/928\/revisions"}],"wp:attachment":[{"href":"http:\/\/charlie-roberts.com\/gibber\/wp-json\/wp\/v2\/media?parent=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}