Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (211) Code (29) Doc (68) Quark (114) SCDoc ↗ Forum ↗ Google ↗
  1. RedMixGUI Quark

    ... trolSpec(-1, 1, 'lin', 0, -1); var controllers= List.new; view.layout= VLayout( HLayout( inA= RedNumberBox().maxWidth_(bw).maxHeight_(lh), RedStaticText(nil, nil, "inA ("++redMix.def.metadata.info.inA++")").maxHeight_(lh) ), HLayout( inB= R ...

  2. RedMixerChannelGUI Quark

    ... layout= VLayout(*[ //--effect inserts numInserts.collect{|i| var popup, button; HLayout( popup= RedPopUpMenu() .items_(["_inserts_"]++RedEffectModule.subclasses.collect{|x| x.name}), button= RedButton(nil, nil, "o", "o").maxWidth_(bw) .acti ...

  3. mouse_and_drawing Quark

    ... "++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; }).start; ) //track mouse position ...

  4. gui_example_simple Quark

    ... ); numbers= {NumberBox().canFocus_(false)}.dup(numChan); win.layout= VLayout(*[ HLayout(*sliders), HLayout(*numbers) ]); updateFunc= {|...args| if(Main.elapsedTime-lastTime>0.016, { //downsample to 60fps lastTime= Main.elapsedTime; args.do{ ...

  5. sDrone Quark

    ... ainRecord; var backgroundImage; var win= Window("sDrone", winRect); win.layout= HLayout( VLayout( //--amplitude control section HLayout( StaticText().string_("Amplitude control").fixedWidth_(120), *ampSelectButtons= #["targets", "random", " ...

  6. remapping Quark

    ... _([[0],[1]]); q.window = Window(bounds:Rect(200,200,200,100)).layout_( VLayout( HLayout( *q.knobs ), HLayout( *q.numboxes ), HLayout( *q.texts ), q.button ) ).front; q.synths = [ { |freq=400| Pan2.ar( SinOsc.ar(freq)*0.2, -1.0) }.play, { |f ...

  7. switchActionsFRP Quark

    ... _([[0],[1]]); q.window = Window(bounds:Rect(200,200,200,100)).layout_( VLayout( HLayout( *q.knobs ), HLayout( *q.numboxes ), HLayout( *q.texts ), q.button ) ).front; q.synths = [ { |freq=400| Pan2.ar( SinOsc.ar(freq)*0.2, -1.0) }.play, { |f ...

  8. SCLOrkWiimoteUI Quark

    ... .new(0, 0, 500, 500) ); window.alwaysOnTop = true; window.layout = VLayout.new( HLayout.new( StaticText.new.string_("status:"), statusText = StaticText.new.string_("scanning"), connectButton = Button.new.string_("connect") ), HLayout.new( S ...

  9. FoaAudition Quark

    ... buildCtlViewFmLayout { |layout| ^ View() .background_(focusBkgColor) .layout_( HLayout( // background that matches the tab View().layout_(layout.margins_(4).spacing_(3)) ).margins_([2, 0, 2, 0]) ) } makeTabView { |name, ctlView, playBut| v ...

  10. gui_example_simple Quark

    ... = {NumberBox().canFocus_(false)}.dup(board.numChannels); win.layout= VLayout(*[ HLayout(*sliders), HLayout(*numbers) ]); CmdPeriod.doOnce({win.close}); board.dataAction= {|num, data, accel| if(Main.elapsedTime-lastTime>0.025, { //downsample ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow