Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... lor .red; } // GUI style color setting { Color .red.set }; GUI .pen.strokeOval( Rect (10,10,380,280 ) ); }; w = GUI .window.new( "testplot" ).front.drawHook_( d ); ) f = d.asSVGFile( "~/Desktop/test asSVGFile" ); // creates a file (doesn't ...

  2. rewriteString Quark

    ... ///////////////////////// ( var w, b, u, f, z, level=0; w = SCWindow ( "test" , Rect (40, 240, 200, 200)).front; w.view.decorator = FlowLayout (w.bounds.copy.left_(30).top_(30)); b = { |i| { |j| var c = ({ "abcd" .choose } ! 3).join; SCButt ...

  3. GMButton Quark

    ... thisSVGPath = ""; this.refresh; }; } resizeSVG { var hRatio = super.interactionRect.width / thisSVGSize.x; var vRatio = super.interactionRect.height / thisSVGSize.y; var width; var height; thisSVG.free; if(hRatio < vRatio) { width = (super ...

  4. EqualizerUI Quark

    ... ntainer | /* DEFINE EQ GUI */ var equalizerComposite = CompositeView(container, Rect(5, 5, 700, container.bounds.height - 15)); var userView = UserView(equalizerComposite).minHeight_(equalizerComposite.bounds.height-80); equalizerComposite. ...

  5. CompassView Doc

    ... guis. First code examples: w = Window("Compass").front; z = CompassView(w.view, Rect( 200, 100,100,100)); z.action = { |comp| comp.dump }; z.nameView.string = "test"; z.value = 0; z.value = rrand(1, 8); z.valueAction = 0; z.valueAction = rr ...

  6. WFSSpeakerConfGUI Quark

    ... r ctrl; if( parent.isNil ) { parent = this.class.asString; bounds = bounds ?? { Rect( 400 rrand: 450, 120 rrand: 150, 806, 572 ) }; } { bounds = parent.asView.bounds; }; view = EZCompositeView( parent, bounds, gap: 2@2, margin: 2@2 ); view. ...

  7. MHexPad Doc

    ... = Window("manta").front; h = 6.collect { |j| 8.collect { |i| var h = MHexPad(w, Rect(i * 45 + (j % 2 * 22), j * 40, 45, 45)).mode_(\noteOnLed); h.action = { |el| "pad %, % vel % \n".postf(j, i, el.value.round(0.01)) }; h.upDoesAction = true ...

  8. cmc_fd_example Quark

    ... dow(); ~fdex.w.addFlowLayout(2@2, 1@1); ~fdex.faders = {{ |i| EZSlider(~fdex.w, Rect(0,0,23,95), i, layout: \vert) }!16 } ! 4; ~fdex.w.front; ~fdex.faders.shape; // create vars and methods to select a group of 4 highlighted faders // init v ...

  9. UMarkerGUI Quark

    ... ] = UserView( composite, 28@14 ) .resize_(3) .drawFunc_({ |vw| var wd = 8, smallRect; if( chain.displayColor.notNil ) { Pen.roundedRect(vw.drawBounds, wd); chain.displayColor.penFill(vw.drawBounds, 1, nil, 10); smallRect = Rect( vw.bounds.w ...

  10. Morph Quark

    ... sSpec, \peakX : [0, 240, \lin].asSpec, \peakY : [0, 139, \lin].asSpec, //// "correct" values // \force : [0, 8192, \lin].asSpec, // \peakForce : [0, 8192, \lin].asSpec, // \tForce : [0, 3*8192, \lin].asSpec, // \dForce : [0, 3*8192, \lin].a ...

prev 141 142 143 144 145 146 147 148 149 150 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow