-
... } // 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... ) ////////////////////////////////////////// ( 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). ...
-
... ; 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 } }
-
... } 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 ...
-
... 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 ...
-
/* ( 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 ...
-
... 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 ...