@soundtouchjs/interpolation-strategy-blackman
v2.0.3
Published
Blackman interpolation strategy for SoundTouchJS and audio-worklet.
Downloads
215
Maintainers
Readme
@soundtouchjs/interpolation-strategy-blackman
Blackman 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 { registerBlackmanStrategy } from '@soundtouchjs/interpolation-strategy-blackman';
registerBlackmanStrategy({ registerInterpolationStrategy });
const st = new SoundTouch({
interpolationStrategy: 'blackman',
});
st.setInterpolationStrategyParams({ zeroCrossings: 6 });Profile
Better stopband rejection than Hann with a slightly wider transition band.
Params
zeroCrossings(default4, normalized to2..8)normalize(defaultfalse) — when true, kernel weights are normalized to sum to 1alpha(default0.42),beta(default0.5),gamma(default0.08) — Blackman window coefficients for advanced window shape control
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
blackmanKernel: Interpolation kernel implementation.blackmanStrategy: Strategy descriptor with idblackman.registerBlackmanStrategy: Helper that registersblackmanStrategyinto a compatible registry.blackmanStrategy.defaultParams: Runtime defaults for strategy params.
License
MPL-2.0 — see LICENSE for details.
