-
... Spec( \map, value ); } unmap { |value| ^this.doWithSpec( \unmap, value ); } makeView { |parent, bounds, label, action, resize| var vws; if( private.not ) { // no view if private case { label.isNil } { label = this.label } { label == false } ...
-
... slot] * tempo); }; }; TempoClock.default.tempo = 90/60; // Window win.view.background_(Color.white); // Controls StaticText(win, (800@10)); StaticText(win, (100@30)) .font_(font) .string_(" Tempo:"); NumberBox(win, (10 ...
-
... ype == nil suppose \var // if index == nil suppose all indices of that type var view, sliders, i; type = type ?? \var; sliders = (type == \var).if { this.varCtrSliders }{ this.synthCtrSliders }; (index.isNil.if { sliders }{ sliders[[index]] ...
-
... eAction:2) }, true ); g.play; w = Window ( "ascii player - clickies" ).front; w.view.keyDownAction = { |view, char| g.spawn([ \freq , char.ascii.midicps]) }; ) // play, hold, and release notes from computer keyboard ( s.latency = nil; g = N ...
-
... .collect( _.x ); } y { ^this.collect( _.y ); } z { ^this.collect( _.z ); } asEnvViewInput { |autoScale = false, fromRect | var new; if(autoScale) { new = this.scaleToRect( Rect(0,0,1,1), fromRect ); ^[new.x, new.y] } { ^[this.x, this.y] }; ...
-
... color1, and at(1) is color2. Examples // basic usage ( w = Window .new.front; w.view.background = Gradient ( Color .yellow, Color .white); ) // change direction and resolution ( w = Window .new.front; w.view.background = Gradient ( Color .r ...
-
... ht-180,Window.screenBounds.width-100,Window.screenBounds.height-180)).front; w.view.decorator = FlowLayout( w.view.bounds, 10@10, 20@5 ); q = Bus.control(s, 1); a = Button(w, Rect(20, 20, 340, 30)) .states_([ ["Load a Sound File i ...
-
... es, phaseButtons, ampNum, ampSlider, freqScope; var lable, lables, waveformView, waveform, interactivePhaseButtonsUpdate; var lablesHeight, interactiveLableFreq, interactiveLablePhase, interactiveLableUpdate, antiAliasing; ...
-
... out = VLayout( sl = Slider().orientation_(\horizontal).maxHeight_(30), uv = UserView().background_(Color(0.1, 0.1, 0.4)) ); sl.action = SpeedLim(0.15, { |view| j = view.value; uv.refresh; }, AppClock); uv.drawFunc = { |view| var b = view.bo ...
-
... / /* These are basic editors for WFSPath2 and (WFS-)Points. use classes: WFSPathView( parent, bounds, object ); // object: a WFSPath2 WFSPathTimeView( parent, bounds, object ); // object: a WFSPath2 WFSPointView( parent, bounds, object ); / ...