Skip to main content

lessthaneq

lessthaneq(
@operand 0
) -> llll

Generates an audio process operation for performing a sample-wise less than or equal to comparison on a buffer.


Arguments

  • @operand [int/float/llll]: Comparison operand, either as a single number, envelope, or buffer. (default: 0).

Output

Less than or equal to comparison operation [llll]


Usage

lessthaneq is meant to be used with the process function:

$buffer = importaudio('singing.wav'); ## input buffer
$op = lessthaneq(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after lessthaneq process')