Skip to main content

wavesetrepeat

wavesetrepeat(
@times 2
@span 1
@normalize 0
) -> llll

Generates an audio process operation for applying waveset repetition to a buffer.


Arguments

  • @times [int]: Number of repetitions. (default: 2).
  • @span [int]: Number of negative-to-positive zero crossing regions that form a waveset. (default: 1).
  • @normalize [int]: Waveset normalization. (default: 0).
    • 0: Off
    • 1: On

Output

Waveset repeat operation [llll]


Usage

wavesetrepeat is meant to be used with the process function:

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