-
... PanWidget : MixerWidgetBase { var yspec; makeView { |layout, bounds| view = GUI.slider2D.new(layout, bounds); spec = try { mixer.controls[\xpos].spec } ?? { \bipolar.asSpec }; yspec = try { mixer.controls[\ypos].spec } ?? { \bipolar.asSpec ...
-
... vol]); }); }); this.startTimeCursor; }); }); soundfile.close; zoomSlider = GUI.slider2D.new(win, Rect(60, 195, 176, 40 )) // scroll w/zoom x - felix! .canFocus_(false) .action_({|sl| var y; sndfileview.zoomToFrac(y = sl.y * 0.95 + 0.05); s ...
-
... a view with multiple control values (i.e., attaching two CVs to the two axes of Slider2D). Accessing . value Answer the current value of the control. This is how the control is read within tasks and patterns . input Arguments: in an input v ...
-
... ({ a.rand(1.0); }) ), VLayout( StaticText(w, 190@20).string_("Change inputs:"), Slider2D(w, 190@190) .action_({|sl| a.set(\x, sl.x * 2 - 1, \y, sl.y * 2 - 1); }) ) ) ); v = Window("Influx2 state", Rect(0, 300, 300, 300)).front; v.addFlowLay ...
-
... ( w = Window(scroll: true); // you must set this when the window is created c = Slider2D(w, Rect(0, 0, 1500, 300)); d = Slider(w, Rect(0, 310, 20, 300)); c.background = Color.grey.alpha = 0.6; d.background = Color.grey.alpha = 0.6; w.front; ...
-
... ckground) }; // Points used, since the layout is handled by a decorator. 18.do{ Slider2D (y,58@58).background_( Color .rand); }; ) Container Coordinates Container and User views use relative bounds coordinates, which are measured from the p ...
-
... ght + ~gap.x, out[17].bounds.bottom + ~gap.y, ~xyExtent.x, ~xyExtent.y), class: Slider2D, init: inEnvir { |view| view.background_(~yellowFor2D).knobColor_(~yellow) }, updater: { |view, x, y| view.setXY(x, 1.0 - y) } )); out }.value, "Tab2", ...
-
... ("SC grids", Rect(100, 100, 400, 580)); ["hh", "sd", "k"].do({|instrument, num| Slider2D(w, Rect(20, 20 + (180*num), 150, 150)) .x_(0.5) .y_(0.5) .action_({|sl| q[\pattern]["%X".format(instrument).asSymbol] = sl.x; q[\pattern]["%Y".format(i ...
-
... ob, \freq); // create a CVWidgetKnob with a frequency ControlSpec CVCenter.use(\slider2D, \phase, slot: \lo); // create a 2D slider with a phase ControlSpec for the \lo slot // a \hi slot with a default \unipolar ControlSpec will be created ...
-
... heChanger.value[0], { // connect sliders switch(this.class, CVWidget2D, { [this.slider2d, this.rangeSlider].do({ |view| sliderConnection ?? { sliderConnection = () }; switch (view.class, Slider2D, { sliderConnection.put(\td, [widgetCV.lo, w ...