-
... tion from the old SourceForge wiki. // Globally: ( w = Window.new; z = w.view.flow{ |view| view.decorator.gap=0@0; Button(view,80@80).states_([["unhide"],["hide"]]) .value_(1) .action_{ |but| if(but.value.b ...
-
... stion comes up often: What is the best way to structure GUI code. IMO, Model-View-Controller (when done correctly) gives you the most flexibility while avoiding common bugs. But it's hard to wrap your head around it first. So, here's a q ...
-
... = 32; var ampBus = Bus.control(s); var sndBus = Bus. audio(s, 2); var harmo_view; var harmo_text; var amp_slider = UserView( win, Rect( margin, win.bounds.height * 0.78 + ( margin / 2 ), win.bounds.width - (margin*4) / 3, win.bounds ...
-
The Scale Listener is a simple GUI that previews every scale provided in SC, except Ascending/Descending ones. Can also serve as a template for a graphical scale selector, or for didactic purposes. ( // Not refenrencing Ascending/descend ...
-
... . //LET'S PAINT! //select all and compile var point, red, green, blue, win, view, colorTask; var redChange, greenChange, blueChange; //rate of change of each color component //mess around with these values for fun //zero results i ...
-
... /////////////////// w=Window("sineVisualizer", Rect(100, 400, 400, 300)); w.view.decorator = FlowLayout(w.view.bounds); f1S= EZSlider(w, 300@50, "freq 1", ControlSpec(0, 2000, 'linear',0.1, 200), {|ez| a.set(\freq1, ez.value)}); w. ...
-
... pos2rect, pos2drive, autorota, autorand, saveprj, loadprj, gethelp, autorefreshview, cleanup; var gui, guipoints, srcsize, btnsize, fdrsize, txtsize, clicked, selected, mousepoint, oldmspoint, mousedist, roomdim, roomscale, lspos, statpos ...
-
... :"out"); Out.ar(0, ou[0]); Out.ar(0, ou[1]); }).load; ) ( var window, view, redraw; // OSC bridge from synth to language if ( ~updateSelector != nil, {~updateSelector.free}); if ( ~updateSprings != nil, {~updateSprings.free}) ...
-
... oller.get_env), ) ); }, update_env: { arg self; self.env_view.value_(self.controller.get_norm_xy); }, update_knobs: { arg self; var index = self.env_view.index; var levels = self.controller.get_env.lev ...
-
... Plot = { if (d.envMode.not, { forkIfNeeded { s.sync; { guiData.plotView.refresh; if (guiData.plotView.notNil, { guiData.plotArray = d.currentWaveformData; guiData.plotView.refresh; }); }.defer; }; ...