Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1875) Code (155) Doc (456) Help (116) Quark (1142) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. UScoreEditorGUI_TranportBar Quark

    ... eViewController; *initClass { StartUp.defer({ DrawIcon.drawFuncs.put( \lock, { |rect| var size = rect.width.min( rect.height ) * 0.8; var radius = size/6; var corners = [ -1 @ 0, -1 @ -2, 1 @ -2, 1 @ 0 ] * radius; Pen.use({ Pen.translate( * ...

  2. init-GUI Quark

    ... in ?? { 30 @ 30 }; xmargin = margin.x; ymargin = margin.y; bounds = bounds ?? { Rect(20, 30, 800, 300) }; window = Window(name, bounds); window.front; window.background = backgroundColor; userView = UserView(window, Rect(0,0,window.bounds.w ...

  3. Image Quark

    ... tmap Images so } bitsPerSample { ^scns_obj.invoke("bitsPerSample"); } bounds { ^Rect(0,0,this.width, this.height); } drawAtPoint { |aPoint| Pen.use { Pen.translate(aPoint.x, this.height+aPoint.y); Pen.scale(1.0, -1.0); scns_obj.invoke("draw ...

  4. Executor Quark

    ... t { var bnd, cmWin, tBox; bnd = Window.screenBounds; cmWin = Window("Command:", Rect((bnd.width/2) - 100, (bnd.height/2), 200, 40), resizable: false); tBox = TextField(cmWin, Rect(10, 10, 180, 20)).focus(true) .action_ ({|txt| Executor.last ...

  5. OSCMon Quark

    ... } show { |name, bounds| if (w.isNil or: { w.isClosed }) { bounds = bounds ?? { Rect(20, 20, 300, 100) }; w = Window("osc msg mon", bounds).front; w.addFlowLayout; Button(w, Rect(0,0, 45, 20)).states_( [[\on, Color.black, Color.grey(0.7)], ...

  6. extStringCleaning Quark

    ... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...

  7. extStringCleaning Quark

    ... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...

  8. KeyDownActionsEditor Quark

    ... e("Courier New") ? Font.defaultSansFace, 10); bounds !? { thisBounds = bounds.asRect }; if(parent.isNil) { window = Window("shortcut editor:"+name, thisBounds ?? { thisBounds = Rect( Window.screenBounds.width-600/2, Window.screenBounds.heig ...

  9. openbci_gui_fftplot_with_neurofeedback-2ch Quark

    ... : 0.0 ) }.dup(board.numChannels); //--window var win= Window("fft plot widget", Rect(1000, 1000, 512, 338));//changed by kh to be top right; var fs= "Frequency (Hz)"; var as= "Amplitude (uV)"; win.view.minSize= Size(502, 145); win.backgroun ...

  10. LazyList Quark

    ... licenses/>. It is possible to add more type instances by adding the functions directly to the dict from the initClass function of the class that one wants to make an instance of some type class. Memory tests: ~consume = { |xs| 0.01.wait; "p ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow