Javascript script not loading
Posted: Tue Mar 07, 2023 7:06 pm
Hi all
I am trying to use the Tonejs audio framework but it does not seem to load. I get an error telling me Tone is not defined. Can anyone help?
I am trying to use the Tonejs audio framework but it does not seem to load. I get an error telling me Tone is not defined. Can anyone help?
Code: Select all
! require(["https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.min.js"]);
Procedure ButtonHandler()
! Tone.start();
EndProcedure
OpenWindow(0, 100, 100, 200, 50, "Click test", #PB_Window_SystemMenu)
ButtonGadget(0, 10, 10, 180, 30, "Click me")
BindGadgetEvent(0, @ButtonHandler())