Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1381) Code (129) Doc (443) Help (138) Quark (657) Plugin (14) SCDoc ↗ Forum ↗ Google ↗
  1. extStatistics Doc

    ... .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 ...

  2. PHS Quark

    ... 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 ...

  3. UAudioDeviceSpec Quark

    ... ^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 ...

  4. TestBuffer Quark

    ... eroOffset Cheby Buffer should have value 0 for its middle value"); } // This is just a helper method getSignalMidValue { arg sig; ^sig[sig.size >> 1] } }

  5. ModalSpec Quark

    ... 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 ...

  6. jitlib_basic_concepts_04 Doc

    ... 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 ...

  7. simple timeline for patterns by 56228375 (56228375) Code

    ... / // 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 | ...

  8. complex-copy-paste_jit_MFunc_style Quark

    ... 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); ...

  9. SimpleRepublic Quark

    ... 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. ...

  10. Sequencing with Patterns Help

    ... 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 ...

prev 81 82 83 84 85 86 87 88 89 90 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow