code: def slerp(p0, p1, t):
      """Spherical linear interpolation."""
      omega = np.arccos(
          np.dot(
              np.squeeze(p0 / np.linalg.norm(p0)),
              np.squeeze(p1 / np.linalg.norm(p1)),
          )
      )
      so = np.sin(omega)
      return (
          np.sin((1.0 - t) * omega) / so * p0
          + np.sin(t * omega) / so * p1
      )
  
file_path: magenta/magenta/models/gansynth/lib/generate_util.py
imports: from magenta.models.gansynth.lib import util
  import note_seq
  import numpy
  from scipy.io import wavfile
label_desc: Use image node_id 1 for calling a global function with example usage: slerp(p0, p1, t) and returns: unknown