-
... = 30; var controlsheight = 30; var sliderwidth = 300; var buttonwidth = 70; var windowwidth = margin * 2 + viewwidth; var windowheight = margin * 2 + viewheight + evheight + controlsheight; s = server ?? {Server.default}; loadflag = false; ...
-
... var masterTuning; var mainVolume; var mainRecord; var backgroundImage; var win= Window("sStream", winRect); win.layout= GridLayout.rows( [ VLayout( //--sentograph (3d sensor) HLayout( StaticText().string_("Pitch (X)").fixedWidth_(70), pitch ...
-
... uns twice - why? x = 0; j = JITView(123); // now type "x = x + 1" // -> 2 // 2. Window resize by code loops when userview with drawfunc is present. m = MView(123); m.drawFunc.disable(\all); m.parent.bounds_(Rect(100, 100, 150, 24)); // cras ...
-
... Flag = false; buffer = Buffer.alloc(s, s.sampleRate * bufferSecs, 1); win = GUI.window.new("- stratosampler -", Rect(point.x, point.y, 820, 240)); bufPlot = XiiBufferPlot.new(buffer, win, Rect( 120, 5, 680, 220)); GUI.staticText.new(win, Re ...
-
... } // 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 ...
-
... ; 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 ...
-
... b, x; var closeFunc; x = sndFile; f = this.performSndFile( \asSoundFile ); w = Window(f.path, Rect(200, 200, 850, 400), scroll: false); a = SoundFileView.new(w, w.view.bounds); a.resize_(5); a.soundfile = f; a.read(0, f.numFrames); a.elast ...