Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (566) Code (72) Doc (79) Help (28) Quark (385) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. MKtlElementGUI Quark

    ... itClass { makeViewFuncDict = ( 'button': { |parent, label| if( label.notNil ) { StaticText( parent, labelWidth@16 ).string_( label.asString ++ " " ).align_( \right ); }; Button( parent, if( label.notNil ) { labelWidth@16 } { 20@16 }) .state ...

  2. RepublicGui Quark

    ... t, Rect(0, 0, width, bounds.height)).resize_(5); view.addFlowLayout; nameView = StaticText(view, Rect(0,0, 90, 20)) .string_("<name>"); idView = StaticText(view, Rect(0,0, 30, 20)) .string_("<id>"); StaticText(view, Rect(0,0, 40, 20)) .stri ...

  3. MFdef_Gui Quark

    ... tln.includes(but.states[0][0].asSymbol) }; }; w.view.layout = HLayout( VLayout( StaticText(w).string_("modes"), *modebuts = mf.modes.keys(Array).sort.collect { |modeName| Button(w).states_([[ modeName ], [modeName, Color.white, Color.red]]) ...

  4. mouse_and_drawing Quark

    ... llect{ |p| putStrLn("mouse pos is: "++p) }.enOut; })).start; ) // is down ( t = StaticText(); w = Window().layout_(HLayout(t)).front; ENdef(\x,{ var pos = w.view.enMouseIsDown; pos.collect{ |b| IO{ t.string_("mouse is down: "++b) } }.enOut; ...

  5. sumWithLastValue Quark

    ... r nb2 = NumberBox(); w = Window(bounds:Rect(200,200,200,100)).layout_( HLayout( StaticText().string_("In:"), nb1, StaticText().string_("Out:"), nb2 ) ); //Setup Event Network //network ENdef(\x, { var sumSig, sum; //in var nb1ES = nb1.enIn; ...

  6. sDrone Quark

    ... winRect); win.layout= HLayout( VLayout( //--amplitude control section HLayout( StaticText().string_("Amplitude control").fixedWidth_(120), *ampSelectButtons= #["targets", "random", "ramp", "wave", "lines"].collect{|x| Button().states_([ [" ...

  7. sGreybox Quark

    ... ize(320, 240)).background_(Color.grey(0.9, 0.5)), infoTextElementString.addView(StaticText().fixedHeight_(" ".bounds(fnt).height*2) .align_(\topLeft).background_(Color.grey(0.9, 0.5))) ); win.onClose= { NetAddr.localAddr.sendMsg(\closed, \s ...

  8. RedMstGUI Quark

    ... tion_{|view| RedMst.next}; this.prInitMetro(size); win.view.decorator.nextLine; StaticText(win, (size*4)@(size*1.5)).string_("sect:"); guiSection= StaticText(win, (size*2)@(size*1.5)); guiMaxSection= StaticText(win, (size*3.25)@(size*1.5)); ...

  9. UAudioDeviceSpec Quark

    ... Devices ) { font = RoundView.skin.font ?? { Font( Font.defaultSansFace, 11 ) }; StaticText( parent, labelWidth @ 14 ) .string_( "% in " .format( label ) ) .align_( \right ) .applySkin( RoundView.skin ); vw.inPu = UPopUpMenu( parent, Rect( l ...

  10. sGliss Quark

    ... winRect); win.layout= HLayout( VLayout( //--amplitude control section HLayout( StaticText().string_("Amplitude control").fixedWidth_(120), *ampSelectButtons= #["targets", "random", "ramp", "wave", "lines"].collect{|x| Button().states_([ [" ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow