BitCrusherWorklet
internal class ↳ extends ToneAudioWorklet<BitCrusherWorkletOptions>
Internal class which creates an AudioWorklet to do the bit crushing
Constructor
Section titled “Constructor”new BitCrusherWorklet(options?: Partial<BitCrusherWorkletOptions>)Parameters
- options
Partial<BitCrusherWorkletOptions>optional
Properties
Section titled “Properties”read-only
input: GainThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
onprocessorerror
Section titled “onprocessorerror”↳ inherited from ToneAudioWorklet
onprocessorerror: (e: string) => voidCallback which is invoked when there is an error in the processing
Default: noOp
output
Section titled “output”read-only
output: GainThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
Methods
Section titled “Methods”onReady()
Section titled “onReady()”onReady(node: AudioWorkletNode): voidInvoked when the module is loaded and the node is created
Parameters
- node
AudioWorkletNode
getDefaults()
Section titled “getDefaults()”static
getDefaults(): BitCrusherWorkletOptionsReturns all of the default options belonging to the class.
Returns BitCrusherWorkletOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()