T("script")
ARSTEREO Script Processor Node
Description
T("script")
can process audio directly using JavaScript as like as ScriptProcessorNode of Web Audio API.
Properties
numberOfInputs
(Number)- The number of inputs feeding into the
T("script")
. This value is set by the constructor.
- The number of inputs feeding into the
numberOfOutputs
(Number)- The number of outputs coming out of the
T("script")
. This value is set by the constructor.
- The number of outputs coming out of the
bufferSize
(Number)- The size of the buffer (in sample-frames) which needs to be processed each time onprocessaudio is called. Legal values are (256, 512, 1024, 2048, 4096, 8192, 16384). This value is set by the constructor.
onaudioprocess
(Function)- An event listener which is called periodically for audio processing. An event of type AudioProcessingEvent will be passed to the event handler.
Source
https://github.com/mohayonao/timbre.js/blob/master/src/objects/script.js