Sneaky addition of the Hydra Synth (performance?)

This commit is contained in:
2023-09-04 00:55:36 +02:00
parent 112386f762
commit e11f08ac2b
4 changed files with 49 additions and 4 deletions

View File

@ -197,6 +197,18 @@ export class Editor {
) as HTMLElement;
show_error: boolean = false;
// Hydra integration
hydra_canvas: HTMLCanvasElement = document.getElementById(
"hydra-bg"
) as HTMLCanvasElement;
//@ts-ignore
public hydra_backend = new Hydra({
canvas: this.hydra_canvas,
detectAudio: false,
enableStreamCapture: false,
});
public hydra: any = this.hydra_backend.synth;
constructor() {
// ================================================================================
// Loading the universe from local storage
@ -680,6 +692,8 @@ export class Editor {
}
}
}
this.hydra = this.hydra_backend.synth;
}
get note_buffer() {