Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (4536) Code (31) Doc (2593) Help (469) Quark (1439) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. Drag and drop views that share data by jakob-leben (Jakob Leben) Code

    ... ; var view = super.new(parent, bounds); view.onClose = { view.object.removeDependant(view) }; if (type === \source or: (type === \both)) { view.beginDragAction = { view.object }; }; ...

  2. Tracking buffer .read and .free by 0-7r (jamshark70) Code

    ... ifications from the server can help you. For reading, you can get the Buffer object from Buffer.cachedBufferAt (and thereby determine the path that was read). If you save the Buffer in your own collection, .copy the buffer (so that you c ...

  3. scrolless by vividsnow (vividsnow) Code

    ... me to this technique for code structuring which involves [using Environments as object prototypes](http://bit.ly/LAFfEg) and closures. sclang is cool ) // let's say there is a directory "pat" with *.scd files where each file contains, for e ...

  4. Switch by simon (Dindoléon) Code

    ... te ) } ); switch.refresh }; switch.addUniqueMethod( \bindFunction, { | object, function | binded_function = function } ); switch.addUniqueMethod( \updateStates, { | object, new_states | states = new_states; if( current_st ...

  5. Converting an environment in a prototype object by julianrohrhuber (julian.rohrhuber) Code

    ... nvir) } { value } }; newEnvir.know = true; // we want a prototype object style environment };

  6. parse scale files into Tuning by till-bovermann (LFSaw) Code

    ... ve ratio is last element octaveRatio = degrees.last / 12 + 1; // a Tuning object requires a leading 0 and omits the octave jump degrees = [0] ++ degrees.drop(-1); // create a Tuning object tuning = Tuning(degrees, octaveRatio, ...

  7. MultiButtonView by simon (Dindoléon) Code

    ... // Custom methods : multi_button_view.addUniqueMethod( \bindFunction, { | object, function | binded_function = function } ); multi_button_view.addUniqueMethod( \updateStates, { | object, new_states_array | states = new_sta ...

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

    ... s, and should respond to user action by updating the model. - Controller: An object that receives notifications from the model and communicates with the view. This SimpleController object is looking for '\source' notifications, and chang ...

  9. 'Require' class for code importing by whillas (whillas) Code

    ... rn; } } // Get all the sub folders recursively // @param path PathName object // @return an Array of PathName objects *getSubFolders { | path | var result = [path]; result = result ++ path.folders.collect{ |p| ...

  10. OSC recorder by lfsaw (LFSaw) Code

    ... . // show message array e.oscMsgs.do{|osc| osc.postln}; "" ( // write object file f = File("~/tmp/oscRecorderOut.txt".standardizePath,"w"); f.write(e.oscMsgs.asCompileString); f.close; // ) // write csv file FileWriter. ...

1 2 3 4 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow