Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (4536) Code (31) Doc (2593) Help (469) Quark (1439) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. 007-single-3d Quark

    //a single object in a 3d world - for testing ( var width= 300, height= 300, depth= 300, w, wgrav, world, n= 1; //--world w= RedWindow("single 3d test", Rect(128, 64, width, height)).front; wgrav= RedVector3D[0.1, 0.98, 0]; world= RedWorld3 ...

  2. OSCBus Quark

    OSCBus Put data from an incoming OSC message onto a bus Inherits from: : Object OSCBus creates an OSC responder for a specific OSC tag, and puts incoming data onto a bus. The data is assumed to be all floats or integers. See also OSCrespond ...

  3. PHSuse Quark

    ... s Pbind(s) for using synth values of a HS Part of: miSCellaneous Inherits from: Object Defines Pbind(s) which, when played, can use values of a synth derived from HS 's synth definition. Playing a PHSuse is just an option for using an alrea ...

  4. PatternBoxParamControlItemView Quark

    ... umnSpan: 2); prBeginDragAction = { |view, x, y| this // Current instance is the object to drag. }; prCanReceiveDragHandler = { |view, x, y| var result = false; if (View.currentDrag.isKindOf(PatternBoxParamControlItemView), { result = View.c ...

  5. 150-track_synth Quark

    ... = Synth(\human, [\out, bus.index]); //output 6 ch control data from tracker //--objects {|i| var loc= RedVector2D[width, height].rand; //initial xy location var mass= 2.rrand(20); var a= RedAgent(world, loc, RedVector2D[0.001, 0.001].rand2, ...

  6. Analysis-test Quark

    /* A CallTree wraps an object and records all incoming message calls and passes them recursively to any resulting new object */ c = CallTree(Array); a = c.fill(3, { |i| i + 10 }); a !== c // not the same instance a.pr_parent === c // true a ...

  7. 190-kmeans Quark

    ... im,grav,maxvel,damp //--interface ~k= 5; //number of centroids ~www= world; //--objects { var loc= RedVector2D[width.rand, height.rand]; var vel= RedVector2D[0.3.rand2, 0.3.rand2].round(0.1); RedObject(world, loc, vel, 0, 1, 3); //world,loc ...

  8. PatternBoxLauncherItemView Quark

    ... workaround prBeginDragAction = { |view, x, y| this; // Current instance is the object to drag. }; prCanReceiveDragHandler = { |view, x, y| View.currentDrag.isKindOf(PatternBoxLauncherItemView); }; prReceiveDragHandler = { |view, x, y| if ( ...

  9. JSONlib Quark

    ... pyArgs(postWarnings, useEvent, customEncoder, customDecoder) } *convertToJSON {|object, customEncoder=nil, postWarnings=true| if((object.isKindOf(Dictionary) or: (object.isKindOf(SequenceableCollection))).not) { Error("Can only convert a Di ...

  10. extKeywordArgs Quark

    // keyword argument support for Object:perform + Object { performKeyValuePairs { |selector, pairs| var envir, argNames, args; var method = this.class.findRespondingMethodFor(selector); if(method.isNil) { ^this.doesNotUnderstand(selector) }; ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow