Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3519) Code (203) Doc (848) Help (193) Quark (2225) Plugin (50) SCDoc ↗ Forum ↗ Google ↗
  1. TestKDTree Quark

    ... n) ~node.nearestToNode[0].location */ TestKDTree : UnitTest { classvar <array, <size, <dims, <tree, <array2, <tree2, <>dumpTrees=false; setUp { } tearDown { } // Creates a 3D data structure and tests whether certain searches return the same ...

  2. TestKDTree Quark

    ... n) ~node.nearestToNode[0].location */ TestKDTree : UnitTest { classvar <array, <size, <dims, <tree, <array2, <tree2, <>dumpTrees=false; setUp { } tearDown { } // Creates a 3D data structure and tests whether certain searches return the same ...

  3. [SIMPLE] Random Pad Generator by checco-ruseo (Checco Ruseo) Code

    ... rays to Strings ~symbolsArrayToString = { |arr| var res; if( arr.size == 0 ) { res = arr.asString; } { var strs = arr.collect{|el| ~symbolsArrayToString.(el); }; if( arr[0].size == 0 ){ res = "#[" ...

  4. AutomationClient Quark

    ... } *getFirstLine {|file| var firstLine; firstLine = file.getLine(expectFirstLine.size + 10); ^firstLine; } *matches {|file| var l, m; l = AutomationFileText.getFirstLine(file); m = false; if (l == expectFirstLine) { m = true; }; file.seek(0, ...

  5. Stethoscope Doc

    ... Inherited class methods Instance methods Data server rate index numChannels bufsize cycle Display window bounds size toggleSize zoom xZoom yZoom style Operation run quit Convenience setProperties Inherited instance methods Undocumented ins ...

  6. plusRect_SS Quark

    ... /////////// +Rect { //!!!TODO. clean up focal and scaling *aboutSSVector {|vec, size, width, height, depth, s= 1, f= 0.75| var x, y, z, ox, oy; z= (depth-vec.z/(depth*s)).linlin(0, 1, f, 1); x= vec.x*z; y= vec.y*z; /* ox= 1-z*(width*0.5)+x; ...

  7. Voicer Quark

    ... il.if({ ar = [] }); // if first element is array, you have [[],[]...] (ar.at(0).size > 0).if({ args = ar }, { args = [ar] }); // same thing for patches (th.size == 0 or: { th.isString }).if({ th = [th] }); // create nodes: loop thru things ...

  8. markov buffer by bgola (bgola) Code

    ... r of frames to create the chain ~slices=3 // Generate markov chain (~array.size/~slices).do {|idx| var i = (idx * ~slices).asInt; var v = ~array[i..i+~slices-1]; ~mkv[v] = ~mkv[v] ++ [~array[i+~slices..i+~slices+~slices-1]]; } ...

  9. RedHuffman Quark

    ... ; //increase counter }); }; //--collect greedy as a single big tree while({tree.size>2}, { n0= this.prTakeMinimum; n1= this.prTakeMinimum; tree.add((List[n0, n1] -> (n0.value+n1.value))); }); //--remove counters from tree tree= this.prRebui ...

  10. JOSHDef Quark

    ... cy).description_("JoshGrain only"); window = OssiaAutomationProxy(josh, "Window_size", Float, [0, 0.2], 0.1, 'clip', critical:allCritical); window.node.unit_(OSSIA_time.second).description_("JoshGrain only"); random = OssiaAutomationProxy(j ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow