I'm working on a Web Audio project using an AudioContext() object.
I would like to set this object as a global variable so I can create at start and use it within multiple flows.
I have a start-up node running this to set the Global:
var AUDIOcontextOBJECT = new AudioContext();
global.set("AUDIOcontextOBJECT",AUDIOcontextOBJECT); //primary 'container' for all audio node objects
within a (template) node I try to reference the global with:
var AUDIOcontextOBJECT = global.get("AUDIOcontextOBJECT");
I receive the error: "global is not defined"
Any guidance is appreciated.