Codebox Operators xfademul

xfademul

Compute cross fade multiplicative factor for n channels.

new xfademul([options])

Options

NameTypeDefaultDescription
boundmodeenumwrap

Enum Values:
wrap | clip | ignore

channelsint2

The number of channels to compute for

fademodeenumeqpower

What curve to use for the crossfade computation.

Enum Values:
lin | eqpower | cos

posmodeenumphase

Enum Values:
phase | channel

Methods

next(pos, channel): out1

Arguments

NameTypeDefaultDescription
posnumber
channelnumber

Returns

NameTypeDescription
out1number

reset(): void