Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2329) Code (180) Doc (734) Help (210) Quark (1189) Plugin (16) SCDoc ↗ Forum ↗ Google ↗
  1. SphericalDesign Quark

    ... } // Download all of the t-designs. // NOTE: uses curl, may not be suitable for Windows *downloadAll { |savePath, makeDir = false| var p; p = savePath ?? {defaultPath}; if (File.exists(p).not) { if (makeDir) { File.mkdir(p) } { ( "[TDesignL ...

  2. SOMTrain Doc

    ... the sinewave you started with? ( ~som.loadToFloatArray(action: {|arr| { w = GUI.window.new("SOM nodes", Rect(200, 800, 600, 600)); // SCWindow w.view.background = Color.white; (0,2..arr.size-1).do{|index| GUI.staticText.new(w, Rect( arr[ind ...

  3. SoftSet Doc

    ... ollers, // but first see their different behaviors with sliders here: ( var w = Window("SoftSet - compare 4 Variants", Rect(10,300, 400, 600)).front; var lastVal, lastValUni, dim = 380@40; w.addFlowLayout; StaticText(w, dim).string_("Set So ...

  4. Debugging-tips Doc

    ... lows you to debug a SynthDef by printing samples of a UGen's output to the post window. To do this, use the .poll method (a shorthand for the Poll UGen), which prints 10 times per second by default. { LFNoise1.kr.poll; }.play; // default po ...

  5. rewriteString Doc

    ... ) ////////////////////////////////////////// ( var w, b, u, f, z, level=0; w = Window("test", Rect(40, 240, 200, 200)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(30).top_(30)); b = { |i| { |j| var c = ({ "abcd".choose } ! 3). ...

  6. DoNotation Quark

    ... ; Unit } *deactivate { thisProcess.interpreter.preProcessor = nil; Unit } *debugWindow { var t = TextView(); var b = Button().action_{ DoNotation.lastEval.collect{ |x| t.string_(x) } }; Window().layout_( VLayout(t,b) ).front } }

  7. runner Quark

    ... } gui { arg alpha = 0.9 ; var wi = (runnerArray.size)*yStep ; var lab ; w = GUI.window.new("RunnerMixer", Rect.new(x, y, yStep*11.5, wi)) ; runnerArray.do({ arg runner, index ; GUI.staticText.new(w, Rect(0, index*yStep, yStep*2, yStep)) .st ...

  8. grids_poc Quark

    ... nt map indices so 0..1 gets mapped to 0..3 // b/c drum map is 5x5 and we have a window of 2x2 so // we need to respect the offset i = x.div(0.25).clip(0, 3); j = y.div(0.25).clip(0, 3); // get values from the 4 (2x2) maps a = q[\drumMap][in ...

  9. minbox Quark

    /* ( w = Window.new("test", Rect(0,0, 800, 600)).front; w.view.decorator = FlowLayout.new(w.view.bounds); b = { var spec = Spec.specs.select({|x| x.isKindOf(ControlSpec)}).keys.choose; MinBox.new(w, (0@0)@([rrand(20,100)@rrand(20,100)].choo ...

  10. Object Help

    ... nd Introspection post Print a string representation of the receiver to the post window. "hello" .post; "hello" .post; ""; postln Print a string representation of the receiver followed by a newline . "hello" .postln; "hello" .postln; ""; pos ...

prev 211 212 213 214 215 216 217 218 219 220 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow