Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (953) Code (42) Doc (312) Help (77) Quark (517) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. extString Quark

    ... ts.notNil and: { bundleExts.includesEqual(ext) }) or: (ext.size > 0) and: { ext.every(_ == $ ).not and: { ext[0].isAlpha } } } }

  2. Pshufn Quark

    ... iSCellaneous Inherits from: Pn Variation of Pshuf which scrambles the list with every repeat. See also: Pshuf , PLshuf , PLshufn , PLx suite Creation / Class Methods *new (list, repeats) Creates a new Pshufn object. list - list to be scramb ...

  3. SSampler Quark

    ... fTime (optional): shared absolute time origin — playEnv passes one origin to // every gesture it spawns so per-gesture processing time never skews the timeline. *playArgs{|args, refTime| args.playSamples = SamplerQuery.getPlayTime(args); // ...

  4. extFunc Quark

    /* { { 100.rand }.value; }!5 // random, different every time { { 100.rand }.valueSeed; }!5 // detto when seed is nil { { 100.rand }.valueSeed(123); }!5 // same number with same seed ( 100.rand.postln; // random ({ { 100.rand }.valueSeed(123 ...

  5. String-collect Quark

    ... h as tr "teststring" .collect({ |char| " " ++ char }); // inserts spaces before every char "teststring" .collect({ |char| if( char == $s ) { "" } { char } }); // removes "s" "teststring" .collect({ |char| char.ascii }); "teststring" .tr( $s ...

  6. Faust Quark

    ... ir.files.do{|file| // Skip compilation if an error happened earlier if(compiled.every{|isTrue| isTrue}, { if(this.isFaustFile(file), { var result = this.compileFile(file, outputDir); compiled = compiled.add(result == 0); }) }) }; compiledOK ...

  7. DissonanceCurve Quark

    ... s the n most consonant degrees. Defaults to inf, which makes a Scale degree for every degree of the Tuning . // Example ( d = DissonanceCurve .fm(1563, 560, 1200, 1200); c = d.scale(3); c.degrees.postln; ) plot Plots the DissonanceCurve // ...

  8. RedWorld Quark

    ... {|obj| var ol= obj.loc; redObj.loc.manhattan(ol)<=maxDist and: { surr.any{|s| s.every{|l, i| l==ol[i]}} } } } surroundingLocations {|redObj| ^surroundings.collect{|arr| arr+redObj.loc%dim}; } dim_ {|redVec| dim= redVec; this.prInitSurroundi ...

  9. function Quark

    /* \function Creates an UMap that evaluates a SuperCollider function every time the UChain is started function: the function. The result of the function should be a value between 0 and 1 value: the result of the function (for display only) ...

  10. ddwPatterns Quark

    ... ues a pattern will yield before stopping. It's impossible to predict exactly in every case, but for simple patterns the number might be close enough. Pseries.fromEndpoints(start, end, length) Pgeom.fromEndpoints(start, end, length) Given th ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow