GEOps2
GEOps2
are operations for graph elements (GE
). Instead of having these operations directly defined
in each element, which is a huge list, they appear here as extension methods. GEOps1
are unary
operators, whereas GEOps2
are binary and n-ary operators.
- See also:
Value members
Concrete methods
Subtracts the second operand from the input signal.
Subtracts the second operand from the input signal.
Clipped amplitude-modulation. A multiplication of both signals, or zero if the second operand is less than or equal to zero.
Clipped amplitude-modulation. A multiplication of both signals, or zero if the second operand is less than or equal to zero.
Residual of clipping, also known as center clipping.
The formula is (a - clip2(a, b))
.
Residual of clipping, also known as center clipping.
The formula is (a - clip2(a, b))
.
Converts a frequency in Hertz to a normalized frequency, divided by the sampling rate.
Converts a frequency in Hertz to a normalized frequency, divided by the sampling rate.
Truncates or extends the first operand to
match the length of b
. This uses
the SecondArg
operator with operands reversed.
Truncates or extends the first operand to
match the length of b
. This uses
the SecondArg
operator with operands reversed.
Polls a single value from the element, and prints it with a given label.
Polls a single value from the element, and prints it with a given label.
Polls the output values of this graph element, and prints the result to the console.
This is a convenient method for wrapping this graph element in a Poll
UGen.
Polls the output values of this graph element, and prints the result to the console.
This is a convenient method for wrapping this graph element in a Poll
UGen.
- Value parameters:
- gate
a gate signal for the printing.
- label
a string to print along with the values, in order to identify different polls. Using the special label
"#auto"
(default) will generated automatic useful labels using information from the polled graph element
- See also:
'''Warning:''' Unlike a normal power operation, the signum of the
left operand is always preserved. I.e. DC.kr(-0.5).pow(2)
will
not output 0.25
but -0.25
. This is to avoid problems with
floating point noise and negative input numbers, so
DC.kr(-0.5).pow(2.001)
does not result in a NaN
, for example.
'''Warning:''' Unlike a normal power operation, the signum of the
left operand is always preserved. I.e. DC.kr(-0.5).pow(2)
will
not output 0.25
but -0.25
. This is to avoid problems with
floating point noise and negative input numbers, so
DC.kr(-0.5).pow(2.001)
does not result in a NaN
, for example.
If the input is positive, passes it unmodified, if it is negative it is scaled (multiplied) by the second operand.
If the input is positive, passes it unmodified, if it is negative it is scaled (multiplied) by the second operand.
Converts a duration in seconds to a number of sample frames, by multiplying with the sampling rate. The value is truncated to an integer number.
Converts a duration in seconds to a number of sample frames, by multiplying with the sampling rate. The value is truncated to an integer number.
Compares the two signals for inequality, frame by frame
Compares the two signals for inequality, frame by frame
Compares the two signals for equality, frame by frame
Compares the two signals for equality, frame by frame