-
... . wait stop current thread if already too many are running, otherwise continue. signal unblock the semaphore, reschedule next pending thread. // example // allow only one thread ( c = Semaphore (1); fork { c.wait; "thread 1> now I am doing ...
-
... lseCount.ar(trig, reset) Each trigger increments a counter which is output as a signal. trig - trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive. reset - resets the counter to zero w ...
-
Gate gate or hold Gate.ar(in, gate) Allows input signal value to pass when gate is positive, otherwise holds last value. in - input signal. gate - gate. The gate can be any signal. It will be treated as "on" when its value is greater than z ...
-
Slope slope of signal Slope.ar(in, mul, add) Slope.kr(in, mul, add) Measures the rate of change per second of a signal. Formula implemented is: out[i] = (in[i] - in[i-1]) * sampling_rate in - input signal to measure. ( { var a, b, c, scale; ...
-
XOut send signal to a bus, crossfading with previous contents Inherits from: Object : AbstractFunction : UGen : AbstractOut *ar(bus, xfade, channelsArray) - crossfade an audio bus. *kr(bus, xfade, channelsArray) - crossfade an control bus. ...
-
... st return the test variable (boolean) wait wait until the condition is true and signalled hang(val) wait for val time, regardless of test signal if test is true, reschedule blocked threads unhang resume threads // example ( c = Condition .n ...
-
InRect detects if a two channel signal is within a rectangular region InRect.ar(x, y, rect) InRect.kr(x, y, rect) A pair of mono input signals x and y are treated as a point (x,y) in 2-D; if they fall within the bounds of the rectangle, the ...
-
WrapIndex index into a table with a signal WrapIndex.ar(bufnum, in, mul, add) WrapIndex.kr(bufnum, in, mul, add) The input signal value is truncated to an integer value and used as an index into the table. Out of range index values are wrap ...
-
... r.ar(buffer, in ) phase = DelTapWr.kr(buffer, in ) buffer - the buffer to write signal into. Max delay time is based on buffer size. in - the signal to write to the buffer. phase - DelTapWr outputs its current sample value for use in the ph ...
-
... r.ar(buffer, in ) phase = DelTapWr.kr(buffer, in ) buffer - the buffer to write signal into. Max delay time is based on buffer size. in - the signal to write to the buffer. phase - DelTapWr outputs its current sample value for use in the ph ...