-
... eats Examples Classes | Streams-Patterns-Events > Patterns'>Patterns > Patterns>Function'>Function Pfuncn : Pattern : AbstractFunction : Object Function pattern of given length Source: Patterns.sc See also: Pfunc , FuncStream Description Re ...
-
... sses are also faster for indexing. Apart from this, the subclasses add specific functionality only. Because of its very common usage, the examples often use the shortcut for the subclass Event. // preliminary identity and equality of string ...
-
Def { *new { arg name,function; Library.put(Def,name,function) } } Do { *new { arg name ... args; ^Library.at(Def,name).valueArray(args) } }
-
Pfunc function pattern superclass: Pattern Pfunc(nextFunc, resetFunc) Returns a stream that returns values from the nextFunc. nextFunc - stream function resetFunc - function that is called when the stream is reset. See also: Pfuncn // examp ...
-
... > Patterns'>Patterns > Patterns>Filter'>Filter PcollectFinal Extension Apply a function to each output value, and a separate function to the last value. Location: NOT INSTALLED! See also: Pcollect Description Very much like Pcollect , with ...
-
Thunk unevaluated value superclass: AbstractFunction Thunk(function) function some function that returns the desired value value return the value. If calculation is done, use previous value, otherwise do calculation. Thunk, "past tense of t ...
-
... ! See also: miSCellaneous , Pnaryop , PLnaryop , PLx suite , Event patterns and Functions , VarGui , VarGui shortcut builds Description Takes Symbol args for later reference by the Streams, which will read from variables in the Environments ...
-
cxpatterns functions that construct Patterns These are Instr functions that take arguments, construct Patterns and return those. more help files: degreeStream deltaStream freqStream scaleStream
-
simple function throttling ( time gate, time limiter, whatever you want to call it ) by hems (hems) Code
A friend of mine asked me how to limit a function to happen at maximun rate of 1 time every N seconds.. ( ~needed_interval = 20; ~funk = { // if last time isn't defined, create it with 1000 seconds ago time if( ~last_time.is ...
-
... cheduling is concerned. 1 Examples of useful objects to be scheduled on clocks: Function: -awake method is implemented so as to call the function's own Function: -value method, effectively running the code within the function. Routine: -awa ...