Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (3508) Code (266) Doc (1134) Help (293) Quark (1779) Plugin (36) SCDoc ↗ Forum ↗ Google ↗
  1. Boids3D Quark

    ... var neighbors, vec, count, nearestNeighbors, velAvg, posAvg, nIdx; neighbors = Array.newClear(numBoids-1); nIdx = 0; // index for neighbors vec = RealVector3D.zero; // for rule 2 count = 1; // for rule 2 // get some averages posSum = posSu ...

  2. UScoreEditor Quark

    ... Size = 0; *new { |score| ^super.newCopyArgs( score) .init } init { undoStates = Array.newClear( maxUndoStates ); } *initClass { clipboard = []; } *current { ^UScoreEditorGUI !? { |x| x.editor } } events { ^score.events } events_ { |events| ...

  3. SVGFile Quark

    ... ar <>name, <transform; elementName { ^"desc" } allObjects { ^this } asAttributesArray { ^[] } addDOMAttributes { |element| this.asAttributesArray.do({ |item| if( item[1].notNil ) { element.setAttribute( item[0], item[1].asString ); } }); ^e ...

  4. RedMixerChannelGUI Quark

    ... t.new; var bw= 20, lh= 14; view= this.prContainer; views= List.new; insertEfxs= Array.newClear(numInserts); insertWins= Array.newClear(numInserts); view.layout= VLayout(*[ //--effect inserts numInserts.collect{|i| var popup, button; HLayout ...

  5. extSequenceableCollection_2 Quark

    ... for a SequenceableCollection of tuples [symbol, n], // where n > 1 indicates an arrayed arg // miSC_pfuncPbindsFromTuples and miSC_sVarGuiSpecsFromTuples exist // to avoid multiple lookups in SynthDef metadata by pVarGui var pat, keyPfuncPa ...

  6. ServerOptionsGui Quark

    ... rmats, server.recSampleFormat ) } ) } setPopupItems { |popup, items, value| var array = items.collect(_.asSymbol); popup.items_(items); popup.value_(array.indexOf(value.asSymbol)); } swapView { |buttonValue| var simple = [simpleView, specia ...

  7. USession Quark

    ... see <http://www.gnu.org/licenses/>. */ USession : UArchivable{ /* * objects -> Array[UChain,UChainGroup,UScore or UScoreList] */ var <objects, <name = "untitled"; *new{ |...objects| ^super.new.init(objects); } init { |inObjects| objects = ...

  8. USession Quark

    ... see <http://www.gnu.org/licenses/>. */ USession : UArchivable{ /* * objects -> Array[UChain,UChainGroup,UScore or UScoreList] */ var <objects, <name = "untitled"; *new{ |...objects| ^super.new.init(objects); } init { |inObjects| objects = ...

  9. UScoreEditor Quark

    ... Size = 0; *new { |score| ^super.newCopyArgs( score) .init } init { undoStates = Array.newClear( maxUndoStates ); } *initClass { clipboard = []; } *current { ^UScoreEditorGUI !? { |x| x.editor } } events { ^score.events } events_ { |events| ...

  10. PLtuple Quark

    ... e elements ~a[0] = 72.5; ~a[1] = 74.5; ~a[2] = Prand ([85, 86, 87]); // replace array // Ptuple and PLtuple start with new embedding of ALL patterns // if one ends, so here default repeats = inf of PLshuf has no effect: // new permutation w ...

prev 111 112 113 114 115 116 117 118 119 120 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow