Skip to main content

rotate

rotate(
@shift 0
@timeunit 0
) -> llll

Generates an audio process operation for rotating a buffer.


Arguments

  • @shift [int/float]: Shift time, depending on the @timeunit attribute. (default: 0).
  • @timeunit [int]: Time unit for @shift. (default: 0).
    • 0: Milliseconds
    • 1: Samples
    • 2: Duration ratio
    • 3: Milliseconds difference
    • 4: Samples difference

Output

Rotate operation [llll]


Usage

rotate is meant to be used with the process function:

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