Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (147) Code (3) Doc (21) Help (2) Quark (121) SCDoc ↗ Forum ↗ Google ↗
  1. OneShotController Quark

    // wslib 2009 OneShotController : SimpleController { update { arg theChanger, what ... moreArgs; var action; if( actions.notNil ) { action = actions.at(what); if (action.notNil, { action.valueArray(theChanger, what, moreArgs); actions.remov ...

  2. Demo of Model-View-Controller design by 0-cM (jamshark70) Code

    ... that receives notifications from the model and communicates with the view. This SimpleController object is looking for '\source' notifications, and changes the view's displayed value. Benefits: You can make as many views as you want, on ...

  3. ConductorGUI Quark

    ... olor(0.2,0.2,0.2,1)] ]) .action_({ | view | playButton.valueAction_(0)}); ctl = SimpleController(player).put(\synch, { |m,c,v| defer { playButton.value = v } }); }; ~simplePlayerGUI = { | win, name, player, rect| var bounds, stringWidth; va ...

  4. CV Quark

    ... . This way dependants (such as GUI objects or server value) can be updated with SimpleControllers. The method aCV-action_(function) creates such a connection. A CV's value can be read with the 'value' message. CV can also be used as a Patte ...

  5. RedGUICV Quark

    ... ion_({|view| ref.value_(map.value(view.value)).changed(\value); }); controller= SimpleController(ref).put(\value, {|ref| view.value= unmap.value(ref.value); }); view.onClose_({controller.remove}); this.save; } }

  6. WFSPointGroupGUI Quark

    ... ec.setView( vw, values.value( vwvals ) ); }); vw; }); RoundView.popSkin; ctrl = SimpleController( pathView.xyView ) .put( \select, { editView.selected = pathView.selected }) .put( \mouse_hit, { editView.apply( true ) }) .put( \edited, { |ob ...

  7. RedEffectModule Quark

    ... llers { cvs.keysValuesDo{|k, v| var param= this.cvsToParam(k); controllers.add( SimpleController(v).put(\value, {|ref| synth.set(param, ref.value); }) ); }; } //--for subclasses *def {^this.subclassResponsibility(thisMethod)} }

  8. RedMixerGUI Quark

    ... e_(redMixer.lag) .action_({|v| redMixer.lag= v.value.max(0)}); controllers.add( SimpleController(redMixer.cvs.lag).put(\value, {|ref| lagBox.value= ref.value; }) ); lagBox, RedStaticText(nil, nil, "lag").maxHeight_(lh).maxWidth_(20), RedBut ...

  9. UScoreView Quark

    ... tNil ) { currentScoreEditorController.remove; }; currentScoreEditorController = SimpleController( scoreEditorsList.last ); currentScoreEditorController.put(\preparingToChangeScore, { this.baseEditor.storeUndoState; }); }; if( scoreControlle ...

  10. envir_get Quark

    ... ec; ctrl.remove; kkey = unit.get( \key ); spec = unit.getSpec( \value ); ctrl = SimpleController( currentEnvironment ) .put( kkey, { spec = unit.getSpec( \value ); val = currentEnvironment[ kkey ] ? (spec.default); fromSpec = currentEnviron ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow