Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (394) Code (59) Doc (78) Help (6) Quark (250) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. gui_example_userview Quark

    //gui example with userview / pen graphics ( var board= CytonSerial("/dev/tty.usbserial-DM00DRM0", initAction: {|b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiShieldOSC.local", 13999), initAction: ...

  2. SSWindow Quark

    ... eWindow(this)}, false); this.background= Color.black; mouse= RedVector2D[0, 0]; userView= UserView(this, Rect(widthSlider/2, 0, argBounds.width-(widthSlider/2), argBounds.height)) .mouseDownAction_{|view, x, y| mouse= RedVector2D[x, y]} .mo ...

  3. GUI Quark

    ... nd_(Color(1,1,1)) .background_(colorSet1[0]) ; //*** Draw index lines *** drw = UserView(win, sfw.bounds).resize_(5) .background_(Color(0,0,0,0)) .drawFunc_({|uview| //** Reset Buttons **// onsetButton.value_(0); breakButton.value_(0); peak ...

  4. 2_flatcat2_gui Quark

    ... tzone = CompositeView(win, Rect(160, 0, 750, 25)).background_(Color.rand); // a userview to draw the numeric values on var uv = UserView(win, vbounds.top_(vbounds.height).height_(30)) .background_(Color.grey); try { win.alpha_(NTMI.g.alpha) ...

  5. mouse_and_drawing Quark

    ... ring_("mouse is down: "++b) } }.enOut; }).start; ) //track mouse position ( w = UserView().minWidth_(500).minHeight_(500).acceptsMouseOver_(true).front; ENdef(\x, { var pos = w.enMousePos; var cx = w.bounds.width/2; var cy = w.bounds.height ...

  6. SynthDefGraph Quark

    ... arg parent,bounds; if(parent.notNil,{ parent = parent.asFlowView(bounds); uv = UserView(parent,bounds ?? {parent.indentedRemaining}); },{ bounds = bounds ?? {Rect(0,0,800,800)}; parent = Window(def.name,bounds,scroll: true).front; uv = Use ...

  7. SatieGUI Quark

    ... d((name++"Top").asSymbol -> Point.new(0,0)); satieObjects[\objects].add(name -> UserView.new(window,Rect(posx-(diameter/2), posy-(diameter/2),diameter,diameter))); satieObjects[\objects][name].drawFunc = { Pen.fillColor = colorObject; Pen.f ...

  8. extSimpleMIDIFile-plot Quark

    ... implemented }; } plot { |notesOnly = false| var window, events; window = ScaledUserViewWindow( pathName.basename ); // this.adjustEndOfTrack; events = this.analyzeUsedEvents; if( notesOnly ) { events = events.select({ |event| event[2] == ' ...

  9. TextFieldOld Quark

    ... { |parent, bounds| ^super.new.init(parent, bounds) } init { |parent, bounds| // UserView can focus; CompositeView can't bounds = bounds.asRect; innerBounds = bounds.insetBy(1, 1).moveTo(1, 1); background = Color.white; this.view = UserView( ...

  10. TextFieldOld Quark

    ... { |parent, bounds| ^super.new.init(parent, bounds) } init { |parent, bounds| // UserView can focus; CompositeView can't bounds = bounds.asRect; innerBounds = bounds.insetBy(1, 1).moveTo(1, 1); background = Color.white; this.view = UserView( ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow