-
/* An environment that can storing and retrieving functions Will not evaluate the functions when retrieved which is a necessary condition for doing functional programming. ( x = Namespace.make{ ~f = { |x| x + 1 }; ~g = { |x| x + 10 }; } ) ( ...
-
SortedNList : SortedList { var <>maxSize = 8; *new { |maxSize=8, function| ^super.new(maxSize, function).maxSize_(maxSize) } add { |item| // just add if (this.size < maxSize) { ^super.add(item) }; // when maxsize, only add if better than la ...
-
... CServer(netaddr); } start{ interface.start; } stop{ interface.stop; } setFunc_{|function| setFunc = function; OSCReceiverFunction(interface, \set, setFunc); } aliveFunc_{|function| aliveFunc = function; OSCReceiverFunction(interface, \alive ...
-
... f = LFSaw .kr(0.4, 0, 24, LFSaw .kr([8,7.23], 0, 3, 80)).midicps; // glissando function CombN .ar( SinOsc .ar(f, 0, 0.04), 0.2, 0.2, 4) // echoing sine wave }) }.play) ( // random bent analog bubbles, probablity of a bend is 0.6, intensity ...
-
... f = LFSaw .kr(0.4, 0, 24, LFSaw .kr([8,7.23], 0, 3, 80)).midicps; // glissando function CombN .ar( SinOsc .ar(f, 0, 0.04), 0.2, 0.2, 4) // echoing sine wave }) }.play) ( // random bent analog bubbles, probablity of a bend is 0.6, intensity ...
-
... gen - jamshark70@dewdrop-world.net // if value ranges from 0..1: // sense == 0: function always returns 1 // sense == 0.5: function ranges from 0.5..1 // sense == 1: function ranges from 0..1 (unchanged) // this mimics the sensitivity param ...
-
... gen - jamshark70@dewdrop-world.net // if value ranges from 0..1: // sense == 0: function always returns 1 // sense == 0.5: function ranges from 0.5..1 // sense == 1: function ranges from 0..1 (unchanged) // this mimics the sensitivity param ...
-
PLnaryFunc dynamic scope Pnaryop variant for Functions Part of: miSCellaneous Inherits from: Pnaryop Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx su ...
-
... g the information for one state. Here, however, each state also needs an action function and a task: [ [ "Label", { action }, { arg v; { task } } or nil, foreground color, background color ], [ "Label", { action }, ..... ] ..... ] The actio ...
-
... g the information for one state. Here, however, each state also needs an action function and a task: [ [ "Label", { action }, { arg v; { task } } or nil, foreground color, background color ], [ "Label", { action }, ..... ] ..... ] The actio ...