;

  const pressRotation = 1.25;

  window.addEventListener("disconnected", (e) => {
    handleDisconnection(e.detail.connectionId);
  });

  function createNote(xPos) {
    const now = document.timeline.currentTime;
    const note = document.createElement("m-audio");
    const url = `/assets/playground/${mp3NotesFiles[totalKeys]}`;
    note.setAttribute("src", url);
    note.setAttribute("x", xPos);
    note.setAttribute("y", 1);
    note.setAttribute("z", 0);
    note.setAttribute("loop", false);
    note