UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

29 lines (28 loc) 1.36 kB
/** * Tremolo does near-realtime pitch shifting to the incoming signal. * The effect is achieved by speeding up or slowing down the delayTime * of a DelayNode using a sawtooth wave. * Algorithm found in [this pdf](http://dsp-book.narod.ru/soundproc.pdf). * Additional reference by [Miller Pucket](http://msp.ucsd.edu/techniques/v0.11/book-html/node115.html). * * See description on [Tone.js](https://tonejs.github.io/) */ import { TypedAudioNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { AudioBuilder } from '../../../core/audio/AudioBuilder'; declare class TremoloAudioParamsConfig extends NodeParamsConfig { /** @param frequency */ frequency: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param depth */ depth: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param spread (degrees) */ spread: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; } export declare class TremoloAudioNode extends TypedAudioNode<TremoloAudioParamsConfig> { paramsConfig: TremoloAudioParamsConfig; static type(): string; initializeNode(): void; cook(inputContents: AudioBuilder[]): void; private _createEffect; } export {};