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
: linear1
: sine2
: curve3
: s-curve
@fadeboundaries
[int]: fade beginning of first buffer and end of last buffer. (default:0
).0
: off1
: on
@timeunit
[int]: time unit. (default:0
).0
: milliseconds1
: samples2
: duration ratio3
: milliseconds difference4
: 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't1
: to lowest2
: to highest3
: to most common4
: 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')