-
//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 ...
-
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 ...
-
... 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 ...
-
... 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 ...
-
... = 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, ...
-
/* 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 ...
-
... 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 ...
-
... 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 ( ...
-
... 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 ...
-
// 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) }; ...