.setAttribute("enabled", true);
    note.setAttribute("volume", 1);
    note.setAttribute("start-time", now - 4000);
    note.setAttribute("pause-time", now);
    mp3Notes.set(totalKeys, {
      url: url,
      id: totalKeys,
      note: note,
    });
    pianoKeysGroup.appendChild(note);
  }

  function playNote(id) {
    const noteObject = mp3Notes.get(id);
    const now = document.timeline.currentTime;
    noteObject.note.setAttribute("volume", 3);
    noteObject.note.setAttribute("start-time", now);
   