AudioFilter
No description provided
AudioFilter extends PCMTransformer
| Parameter | Type | Optional | 
|---|---|---|
| options | PCMFiltererOptions | ✅ | 
Properties
public bits: any
public bytes: any
public disabled: any
public extremum: any
public filters: any
public pulsatorConfig: any
public sampleRate: any
public targetSampleRate: any
public totalSamples: any
public tremoloConfig: any
public type: any
public vibratoConfig: any
public currentDuration: any
public currentSampleRate: any
public estimatedDuration: any
public pulsator: any
public tremolo: any
Methods
public _readInt(buffer, index): number
public _transform(chunk, encoding, callback): void
| Parameter | Type | Optional | 
|---|---|---|
| chunk | Buffer | ❌ | 
| encoding | BufferEncoding | ❌ | 
| callback | TransformCallback | ❌ | 
public _writeInt(buffer, int, index): number
public applyFilters(byte, channel): number
| Parameter | Type | Optional | 
|---|---|---|
| byte | number | ❌ | 
| channel | LR | ❌ | 
public clamp(val, max, min): number
public disable(): void
public enable(): void
public onUpdate(): void
public seek(duration): void
| Parameter | Type | Optional | 
|---|---|---|
| duration | number | ❌ | 
public setFilters(filters): boolean
| Parameter | Type | Optional | 
|---|---|---|
| filters | Array<'8D''Tremolo''Vibrato'> | ❌ | 
public setPulsator(hz): void
| Parameter | Type | Optional | 
|---|---|---|
| hz | number | ❌ | 
public setSampleRate(rate): void
| Parameter | Type | Optional | 
|---|---|---|
| rate | number | ❌ | 
public setTargetSampleRate(rate): void
| Parameter | Type | Optional | 
|---|---|---|
| rate | number | ❌ | 
public setTremolo(__namedParameters): void
| Parameter | Type | Optional | 
|---|---|---|
| __namedParameters | Partial<AFTremoloConfig> | ❌ | 
public setVibrato(__namedParameters): void
| Parameter | Type | Optional | 
|---|---|---|
| __namedParameters | Partial<AFTremoloConfig> | ❌ |