My goal is to extend the AudioWorkletProcessor class in order to create a new AudioNode. However, I want to include an existing audioNode, such as a GainNode, within the class - specifically inside the process function. The challenge lies in accessing the AudioContext within the Class or the GainNode.process function. Is there a proper method to achieve this?
I am familiar with creating and connecting audionodes in the conventional manner, but my objective here is to build a new audioNode using existing audionodes that can function as a single entity.
Thank you in advance!