poc: render pattern audio with node script
This commit is contained in:
parent
f0e6c5483c
commit
ccec7e725a
6 changed files with 81 additions and 12 deletions
|
|
@ -901,10 +901,7 @@ class DoughProcessor extends AudioWorkletProcessor {
|
|||
constructor() {
|
||||
super();
|
||||
this.dough = new Dough(sampleRate, currentTime);
|
||||
this.port.onmessage = (event) => {
|
||||
event.data.sampleRate = sampleRate;
|
||||
this.dough.scheduleSpawn(event.data);
|
||||
};
|
||||
this.port.onmessage = (event) => this.dough.scheduleSpawn(event.data);
|
||||
}
|
||||
process(inputs, outputs, params) {
|
||||
if (this.disconnected) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue