-
... e exports a class `Limiter` that implements some of the `Array` API. Pass async functions (ones that accept a callback or return a promise) to an instance's additive array methods. ## Motivation Certain functions, like `zlib`, have [undesir ...
-
... nStream class defined in Stream.sc can wrap a Gen as a Stream. */ Gen : AbstractFunction { var <>current; *new { arg current; ^super.newCopyArgs(current) } genCurrent { ^current } genNext { ^this.next } next { ^nil } value { ^this } storeAr ...
-
TestFunction : UnitTest { test_function_scope { var generator, list, result, a; generator = { var x = 0; { |y| a = x = x + y } }; list = 10.collect(generator); result = list.collect { |each, i| each.value(i) }; this.assert(result == (0..9), ...
-
... eDir { |dir = ""| ^dir.makeDir; } *checkDo { // open file to write to, evaluate function, and close it again // - everything you need in one method // - asks for options when ask == true and file exists // - generates new name when overwrit ...
-
InteractiveEnvironment { // Dimple instance var <>dimple; // Function to invoke to create the virtual environment var <>creationFunc; // Function to be invoked for every object created in the virtual environment var <>objectFunc; // Map fro ...
-
... const <controlModifier = 0x00040000; const <optionModifier = 0x00080000; const <functionKeyModifier = 0x00800000; const <commandModifier = 0x00100000; /* classvar <>normalModifier=0,<>shiftModifier=0x00020000,<>controlModifier=0x00040000, < ...
-
... const <controlModifier = 0x00040000; const <optionModifier = 0x00080000; const <functionKeyModifier = 0x00800000; const <commandModifier = 0x00100000; /* classvar <>normalModifier=0, <>shiftModifier=0x00020000, <>controlModifier=0x00040000, ...
-
... ffers, { bufcount = bufcount + 1; }, { bufcount = 0; }); } *read {arg pathName, function, channels; var buffer, globVar; this.new; if(server.serverRunning, { server.makeBundle(nil, { { bufAlloc = true; globVar = "~buffer" ++ bufcount; globV ...
-
... nc, dt=0.05 ) Creates a node that regularly (at time interval dt ) performs the function func , and puts the data resulting from the function onto the network as a node with id . The function must return an Array with values. start ( ) Star ...
-
... skBufSize=1, <>cueCount=1, <>allocCount=1; *addRaw {arg type, format, settings, function; var path, boolean, typeStore, existFormat, bstoreIDs, filesInFolder; this.updateFree; bstoreIDs = this.bstoreIDs; case {type == \play} { path = this.g ...