-
... 5); } init { |parent, bounds, argMode = \noteOnOff| this.setColors; this.view = UserView( parent, bounds ); this.view.drawFunc = this.baseDrawFunc; this.view.mouseDownAction = { |vw, x, y| this.valueAction = y.linlin( 0, vw.bounds.height, 1 ...
-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... = 820, w = Window("Double Pendulum", Rect(99, 99, width, height), false), u = UserView(w, Rect(0, 0, width, height)); u.clearOnRefresh = true; u.background = Color.white; w.front; u.frameRate = 40; u.animate = true; CmdPeriod.doOn ...
-
... [ \in, ~loudbus, \shortRate, 15, \longRate, longSize / 60 ]); canv = UserView(w, Rect(0, 0, size, size)); canv.background_(Color.black); canv.drawFunc_ { var center, wedge; center = size@size * 0.5; wedge = { |l1, l2, c ...
-
... opeView SCEnvelopeView JSCEnvelopeView QEnvelopeView breakpoint envelope editor UserView SCUserView JSCUserView QUserView view for user-defined drawing operations SoundFileView SCSoundFileView JSCSoundFileView QSoundFileView waveform view / ...
-
... nt, bounds); } init { |parent, bounds| items = []; transforms = []; this.view = UserView(parent, bounds) .background_(Color.white) .drawFunc_({ var penClass= try{if(\GUI.asClass.notNil, {GUI.pen})}?Pen;//avoids gui redirect preDrawFunc.valu ...
-
... ///// draw together //////////////////////////// \ \ \ // based on example of SCUserView \ (\ var drawing;\ var format = [340, 360];\ \ e = Participation (c);\ f = Participation (x);\ e.start; f.start;\ \ \ \ \ drawing = \ | participation | ...
-
... ance.stop } }; metronome.display = 4.collect{ StaticText(win, (15@10)); UserView(win, (30@30)).background_(Color.red(0.25)) }; StaticText(win, (15@10)); StaticText(win, (800@10)); layout.nextLine; 4.do{ |i| StaticText(win, (2 ...
-
... 0,800,600),server:s); window.front; CmdPeriod.doOnce({window.close}); view = UserView(window, window.bounds); view.background = Color.white; view.resize = 5; view.drawFunc = { |view| var jumpwidth = view.bounds.width / (~numspring ...
-
... w.view.focus(false); scoreView.remove; }; this.calcNumTracks; scoreView = ScaledUserViewContainer(mainComposite, scoreBounds, Rect( 0, 0, score.displayDuration, numTracks ), 5); //CONFIGURE scoreView scoreView.background = Color.gray(0.8); ...
-
... ounds); } init { |argParent, argBounds| argBounds=argBounds.asRect; this.view = UserView(argParent, argBounds); this.view.beginDragAction = {this.value} ; this.view.canReceiveDragHandler = {GUI.view.currentDrag.isNumber} ; this.view.receive ...