export default new Buoy({}, async function (FROM, TO) {
if (this === TO) {
const assets = await Fetches({
C: "/[files]/C.mp3",
G: "/[files]/G.mp3"
});
this.render()
console.log(assets.C)
document.querySelector("#go").onclick = async () => {
console.log("Go!"); Buoy.go("/rldk");
Audio.play(assets.C, { volume: .6 }, "NewChannel");
await Waits.sec(.1); Audio.play(assets.G, { volume: .6 }, "NewChannel");
// GSAP.to(Audio.master["NewChannel"], { pan: 1, duration: 1, ease: "expo.inOut" });
}
}
if (this === FROM) {
TO.to()
}
});