window
window(
@wintype 'hann'
@winnormalized 0
@zeropadding 0
@zerophase 0
) -> llll
Generates an audio process operation for applying a windowing function to a buffer.
Arguments
@wintype
[symbol]: window type, as a symbol (default:'hann'
).'rectangular'
'triangular'
'sine'
'hann'
'hamming'
'blackman'
'nuttall'
'blackmannuttall'
'blackmanharris'
'gaussian'
'sqrthann'
'sqrthamming'
@winnormalized
[int]: normalize window samples to sum up to 1 and multiply by a factor of 2. (default:0
).0
: off1
: on
@zeropadding
[int]: number of samples for zero padding. (default:0
).@zerophase
[int]: zero phase windowing (default:0
).0
: off1
: on
Output
window operation [llll]
Usage
window
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = window(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after window process')