-
/* FILENAME: ScrollViewFactory DESCRIPTION: Factory class AUTHOR: Marinus Klaassen (2021Q4) */ ScrollViewFactory { *createInstance { |caller, class| var newInstance = ScrollView(); newInstance.canvas = View(); class = class.asString(); ^new ...
-
/* This is still experimental and not fully developed. Gen is a base class for referentially transparent streams. A Gen is an object that contains both the current value in the stream and a 'next' method for generating the next Gen. Unlike ...
-
+ Quarks{ *findClassPackage{|class| var result; Quarks.installed.do{|quark| var classes = Quarks.classesInPackage(quark.name.asSymbol); if(classes.indexOfEqual(class).notNil, { result = quark }); }; ^result } }
-
... ynthName, groupName, synthArgs; if(satie.debug) { "→ %: message: %".format(this.class.getBackTrace, args).postln }; if(args.size < 3) { "→ %: message: bad arg count: expects at least 2 values: nodeName, pluginName, and optionally: groupName ...
-
... d more type instances by adding the functions directly to the dict from the initClass function of the class that one wants to make an instance of some type class. Writer Monad */ Writer { var <a, <w; // ( A, W ) //a is the main value //w is ...
-
... ientationDegHandler { ^{ |args| if(satie.debug) { "→ %: message: %".format(this.class.getBackTrace, args).postln }; if(args.size != 3) { "→ %: message: bad arg count: expects 2 values: azimuth and elevation".format(this.class.getBackTrace). ...
-
DependencyWalker { classvar fileMethodMap, fileClassMap; *generateFileMap { var classes; fileClassMap = IdentityDictionary(); fileMethodMap = IdentityDictionary(); classes = Class.allClasses; classes.remove(QMetaObject); classes.remove(QObj ...
-
/* * FILENAME: Class * * DESCRIPTION: * Class extension methods. * * AUTHOR: Marinus Klaassen (2021Q2) * */ +Class { classVarValueByName { | name | var result = nil; var index = this.classVarNames.indexOf(name); if (index.notNil, { result = ...
-
... ,cos(theta)]])) } value{ |vector| ^(matrix*vector.asMatrix).getCol(0).as(vector.class) } det{ ^matrix.det } inverse{ ^LinTrans(matrix.inverse) } +{ |lintrans| ^this.class.new(this.matrix+lintrans.matrix) } -{ |lintrans| ^this.class.new(this ...
-
... lue( *args2 ) }; ^(f <%> args.sequence) } composeUnaryOp { arg aSelector; ^this.class.new( func.composeUnaryOp( aSelector ) ) } composeBinaryOp { arg aSelector, something, adverb; ^this.class.new( func.composeBinaryOp(aSelector, something.f ...