@soundtouchjs/interpolation-strategy-lanczos
v2.0.3
Published
Lanczos interpolation strategy for SoundTouchJS and audio-worklet.
Maintainers
Readme
@soundtouchjs/interpolation-strategy-lanczos
Lanczos interpolation strategy plugin for SoundTouchJS.
I accept cash if you like what's been done.
Part of the SoundTouchJS monorepo — for more information and so much more.
Usage
import { registerInterpolationStrategy, SoundTouch } from '@soundtouchjs/core';
import { registerLanczosStrategy } from '@soundtouchjs/interpolation-strategy-lanczos';
registerLanczosStrategy({ registerInterpolationStrategy });
const st = new SoundTouch({
interpolationStrategy: 'lanczos',
});
st.setInterpolationStrategyParams({ zeroCrossings: 6 });Params
zeroCrossings(default4, normalized to2..8)normalize(defaultfalse) — when true, kernel weights are normalized so they sum to 1
Related docs
- Core interpolation registration API: https://cutterscrossing.com/SoundTouchJS/?path=/docs/interpolation-strategies-strategy-plugin-authoring--docs
- Core interpolation strategy overview: https://cutterscrossing.com/SoundTouchJS/?path=/docs/interpolation-strategies--docs
Exports
lanczosKernel: Interpolation kernel implementation.lanczosStrategy: Strategy descriptor with idlanczos.registerLanczosStrategy: Helper that registerslanczosStrategyinto a compatible registry.lanczosStrategy.defaultParams: Runtime defaults for strategy params.
License
MPL-2.0 — see LICENSE for details.
