MCPcopy Create free account
hub / github.com/PaulBatchelor/Trio / process

Method process

web/processor.js:20–33  ·  view source on GitHub ↗
(inputs, outputs, parameters)

Source from the content-addressed store, hash-verified

18 }
19
20 process(inputs, outputs, parameters) {
21 const output = outputs[0];
22
23 this.wasm.exports.process(this.dsp, this.outptr, 128);
24 for (let c = 0; c < output.length; ++c) {
25 const outChan = output[c];
26 for (let i = 0; i < outChan.length; ++i) {
27 outChan[i] = this.outbuf[i];
28 //outChan[i] = Math.random()*0.1;
29 }
30 }
31
32 return true;
33 }
34
35 onmessage(event) {
36 if (event.type == "move") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected