Can't add tone.js library

Hello, I am following the documentation steps, but I am unable to add the tone.js library. what am i missing? I’m having these errors after following the documentation steps:

Tone is not defined
ReferenceError: Tone is not defined
at new Ops.User.felipelinsf.testeee (https://cables.gl/api/ops/code/felipelinsf:2541:1)
at Pt.createOp (https://sandbox.cables.gl/ui/js/cables.min.js?nc=745203:1:160448)
at Pt.addOp (https://sandbox.cables.gl/ui/js/cables.min.js?nc=745203:1:161424)
at Pt.deSerialize (https://sandbox.cables.gl/ui/js/cables.min.js?nc=745203:1:167875)
at https://sandbox.cables.gl/ui/js/cablesui.min.js?nc=745704:1:116042
at CABLES.UI.ServerOps.loadProjectLibs (https://sandbox.cables.gl/ui/js/cablesui.min.js?nc=745704:1:95214)
at CABLES.UI.Patch.setProject (https://sandbox.cables.gl/ui/js/cablesui.min.js?nc=745704:1:116003)
at https://sandbox.cables.gl/ui/js/cablesui.min.js?nc=745704:1:206514
at https://sandbox.cables.gl/ui/js/libs.ui.min.js:1:241886
at Array.i (https://sandbox.cables.gl/ui/js/libs.ui.min.js:1:241788)

Could you post your patch?

Sure, but it happens with any patch, even though they are empty. I’m just following the initial documentation steps

I tried it again and am having the same error.

I’m currently working on a project that uses tone and cables. Instead of embedding tone in cables like you were trying to do I just include it in my parent page then embed the cables sketch and communicate with it using something like CABLES.patch.setVariable("IsInteracting",true);. This is one of the more challenging part so fusing cables and I wish it was easier.

Hi Felipelinsf,
Could you please post a link to the part of the documentation you’re using?
We can then check if it’s correct and up to date.

Sure Andro, the link is this: https://docs.cables.gl/webaudio/webaudio.html

Thanks.
I just followed the steps there and can reproduce the problem.
I’ll file a ticket. Thanks for reporting.

2 Likes