-
... UIs ( // OSX Only var res = 20, scrsize = 200, val, set, win, scr; win = Window.new("SCColorChooser",Rect(400, 400, 2*scrsize+20, scrsize),false).front; win.view.background_(Color.white); scr = CompositeView.new(win,Rect(scrsize+20 ...
-
... = Bus.control(s); ampBus.value = 0.1; sndBus = Bus.audio(s, 2); // Main window Window.closeAll; win = Window.new("Additive Synthesis", Rect(400, 30, 590, 670)); win.view.decorator = FlowLayout(win.view.bounds, 20@20, 20@20); ...
-
... var segments= 40; var minorRadius= 0.667; var majorRadius= 1; w = Window("spinning doughnut", Rect(128, 64, width, height), false) .front; u = Canvas3D(w, Rect(0, 0, width, height)); u.add(Canvas3DItem() .paths_( ...
-
... ontally with shift+mouseDrag. Show also a way to write classes with events ( ~windowize = { arg layout; var win; win = Window.new; win.layout = layout; win.front; }; ~env_controller = ( new: { arg self, env, spec; s ...
-
... for multiple wavetable interpolation ( //after running code, esc key to close window and abort animation var wt0, wt1, result, wt0view, wt1view, resultView, animateFn, wmean, numSteps, animate, wtIndex, win, wtPosBox, wtPosView; a ...
-
... GUI width = 600; height = width; n = 13; space = width/n; // make a new window w = Window.new("automata", Rect(100,100,width,height)); // make empty data structure to hold program state cells = []; cellCreator = {|row, col, ...
-
Visual demonstration of aliasing/foldover (modified from James Harkins) by jnarveson (jnarveson) Code
... ble sampling rate, and changed some colors. // Jascha Narveson var screen = Window.screenBounds, height = (screen.height - 120).asInteger, width = (screen.width - 120).asInteger, win = Window(\aliasing, Rect.aboutPoint(screen.cente ...
-
//This tweet sounds pretty awesome on the windows version but I cannot get supercollider to render a proper recording of it. fork{x={Klang.ar(`(Array.fill(20,{[500.rand,1.0.rand,2pi.rand]})))};loop{play{x.()*x.()*x.()*EnvGen.kr(Env.line ...
-
... tream; x = Signal.fill(128, stream); x.plot; ) - If you use a rectangular window and the window can't play continuously as a cycle, there will be a discontinuity from the end of the window to the beginning. The Gibbs effect is obvious ...
-
... ///// GUI////////////// /////////////////// //////////////////////////// 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, ...