Skip to main content

join

join(
@buffers ? ## llll (required)
@xfade 0
@xfadecurve 0
@xfadetype 1
@fadeboundaries 0
@timeunit 0
@resamplingfiltersize 11
@resamplingmode 'sinc'
@resamplingpolicy 3
) -> llll

Generates an audio process operation for concatenating one or more buffers to the processed buffer.


Arguments

  • @buffers ? [llll]: buffers to concatenate. (required)
  • @xfade [int/float]: duration of the crossfade, in samples. (default: 0).
  • @xfadecurve [int/float]: curve parameter for the crossfade. (default: 0).
  • @xfadetype [int]: cross fade type. (default: 1).
    • 0: linear
    • 1: sine
    • 2: curve
    • 3: s-curve
  • @fadeboundaries [int]: fade beginning of first buffer and end of last buffer. (default: 0).
    • 0: off
    • 1: on
  • @timeunit [int]: time unit. (default: 0).
    • 0: milliseconds
    • 1: samples
    • 2: duration ratio
    • 3: milliseconds difference
    • 4: samples difference
  • @resamplingfiltersize [int]: resampling filter size. (default: 11).
  • @resamplingmode [symbol]: resampling mode. (default: 'sinc').
    • 'sinc'
    • 'nearest neighbor'
    • 'sample and hold'
    • 'linear'
    • 'quad'
    • 'cubic'
  • @resamplingpolicy [int]: resampling policy. (default: 3).
    • 0: don't
    • 1: to lowest
    • 2: to highest
    • 3: to most common
    • 4: to max. current

Output

join operation [llll]


Usage

join is meant to be used with the process function:

$buffer = importaudio('singing.wav'); ## input buffer
$op = join(
@buffers for $i in 1...10 collect cycle($i * 55, 100) ## buffers to join
); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after join process')