-
... fieldSize * 0.5; var headRadius = fieldSize * 0.3; point = Point(0, 0); uview = UserView.new(parent, bounds); uview.mouseUpAction = { point.x = 0; point.y = 0; }; uview.mouseMoveAction = { |view, x, y, mod| point.x = x / halfWidth - 1; poin ...
-
... fieldSize * 0.5; var headRadius = fieldSize * 0.3; point = Point(0, 0); uview = UserView.new(parent, bounds); uview.mouseUpAction = { point.x = 0; point.y = 0; }; uview.mouseMoveAction = { |view, x, y, mod| point.x = x / halfWidth - 1; poin ...
-
... ); // sub view for automation control, master volume, scale factor masterView = UserView(win, Rect(0, height - 76, 325, 72)); masterView.addFlowLayout(); fxBut = Button(masterView, Rect(0, height - 95, 320, 20)) .focusColor_(palette.color(' ...
-
... 0; var win= Window("ps", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, objects= List.new; SynthDef(\main, {|in= 0, out= 0| var src= In.ar(in, 2); src= src.tanh; src= FreeVerb2.ar ...
-
... ate = 0.06; // used in wait running = false; background = Color.white; drawer = UserView.new(win, rect) .canFocus_(true) .focusColor_(Color.new(0,0,0,0)) .mouseDownAction_({|me, x, y, mod| /* if(mod == 262401, { // right mouse down }, {// e ...
-
... e) } init{ |parent,size| red = Color.red(0.7); green = Color.green(0.7); view = UserView(parent,size@size); this.update; SyncCenter.ready.addDependant(this); view.onClose_({ SyncCenter.ready.removeDependant(this); }); } update { { view.back ...
-
... e) } init{ |parent,size| red = Color.red(0.7); green = Color.green(0.7); view = UserView(parent,size@size); this.update; SyncCenter.ready.addDependant(this); view.onClose_({ SyncCenter.ready.removeDependant(this); }); } update { { view.back ...
-
... 00)); textView = TextView(window, Rect(0, 0, 500, 400)).resize_(5); layerView = UserView(window, Rect(0, 0, 500, 400)); window.front; } editable_ { |bool| textView.editable_(bool) } background_ { |color| textView.background_(color) } title_ ...
-
... ons/SC2-examples_2.scd" ].do(_.openOS); /////////////////// GRAPHICS: // make a userview to draw on ~win = Window("basic graphics", Rect(0,0,400,400)).front; ~uv = UserView.new(~win, Rect(0,0,400,400)); ~uv.background = Color.white; // tell ...
-
... dth, 100)}); // needs a list view } timeGui { arg parent, bounds, maxTime; tg = UserView(parent, bounds); if(maxTime.isNil, { maxTime = model.beatDuration; if(maxTime.isNil, { maxTime = 128 }, { maxTime = (model.beatDuration * 1.1 + 0.1).ce ...