-
... .9. a.percentile // By default you get the 25%/50%/75%ile a.percentile(0.25) // Just the 25%ile a.percentile([0.1, 0.9]) // 10 and 90 percentiles ⧉ ✔ Histogramming histo partitions the distribution into a set of equal-width bins (default 10 ...
-
... rintout of variables which may be used within a PHS definition // timeGrains is just a time ID, depending on granularity, not used for scheduling // demandIndex indicates the index of the stream of durations // posted demandIndex = 1, as tw ...
-
... ^str.editDistance( other ); } { // This is the same algorithm as the primitive, just in // sclang to allow equality matrix = Array.iota(other.size + 1); if(str.isEmpty || other.isEmpty) { ^str.size; }; // use identity if not given another w ...
-
... eroOffset Cheby Buffer should have value 0 for its middle value"); } // This is just a helper method getSignalMidValue { arg sig; ^sig[sig.size >> 1] } }
-
... roduces degrees like 28.000000000000014 ??? // no time to fix it there, so I'll just improve the condition here ^(((num = degree % 1).inclusivelyBetween(-1e-5, 1e-5)).if({ degToKey[degree.asInteger % scale.size] }, { degToKey[degree.asInteg ...
-
... be used, which can be either a number or an array of the form [quant, offset], just like in pattern.play(quant). ~z.play; ~y.play; ~z = { Ringz.ar(Impulse.ar(2), exprand(300, 3400 ! 2), 0.08).dup * 0.2 }; ~y.quant = [1, 0.3]; // offset of ...
-
... / // don't pay attention to the stupid patterns in the example below, they are just // for demoing the timeline // ( s.waitForBoot({ var ptl = ( \internallist : [], \beat : { | self, start_beat, stop_beat, pattern | ...
-
... getActives; // test helper function q.srcTogPlay(0, 0); // stop src 0 -> slider just sets src 1 q.srcTogPlay(2, 1); // add src 2, so src 1 and 2 are controlled q.srcTogPlay(1, 0); // stop 1, only src2 remains controlled q.srcTogPlay(2, 0); ...
-
... newVal < 0) { this.removeParticipant(key); presence.removeAt(key); (" --- % has just left the building. --->".format(key)).repostln; } { presence.put(key, newVal) } }; if(verbose) { presence.repostln }; } addParticipant { |key, addr| addrs. ...
-
... inf ).asStream; p.nextN(15); // get 15 values from the pattern's stream This is just a taste, meant to illustrate the kinds of flexibility you can get with patterns. As with any rich and adaptable structure, the best way is to start with si ...