class_docstr: Synthesize audio from a series of wavetables.
docstr: Convert network output tensors into a dictionary of synthesizer controls.
  
  Args:
    amplitudes: 3-D Tensor of synthesizer controls, of shape
      [batch, time, 1].
    wavetables: 3-D Tensor of synthesizer controls, of shape
      [batch, time, n_harmonics].
    f0_hz: Fundamental frequencies in hertz. Shape [batch, time, 1].
  
  Returns:
    controls: Dictionary of tensors of synthesizer controls.
docstr_tok: ["Convert","network","output","tensors","into","a","dictionary","of","synthesizer","controls",".","Args",":","amplitudes",":","3-D","Tensor","of","synthesizer","controls",",","of","shape","[","batch",",","time",",","1","]",".","wavetables",":","3-D","Tensor","of","synthesizer","controls",",","of","shape","[","batch",",","time",",","n_harmonics","]",".","f0_hz",":","Fundamental","frequencies","in","hertz",".","Shape","[","batch",",","time",",","1","]",".","Returns",":","controls",":","Dictionary","of","tensors","of","synthesizer","controls","."]
code: def get_controls(self, amplitudes, wavetables, f0_hz):
      """Convert network output tensors into a dictionary of synthesizer controls.
  
      Args:
        amplitudes: 3-D Tensor of synthesizer controls, of shape
          [batch, time, 1].
        wavetables: 3-D Tensor of synthesizer controls, of shape
          [batch, time, n_harmonics].
        f0_hz: Fundamental frequencies in hertz. Shape [batch, time, 1].
  
      Returns:
        controls: Dictionary of tensors of synthesizer controls.
      """
      # Scale the amplitudes.
      if self.scale_fn is not None:
          amplitudes = self.scale_fn(amplitudes)
          wavetables = self.scale_fn(wavetables)
  
      return {
          "amplitudes": amplitudes,
          "wavetables": wavetables,
          "f0_hz": f0_hz,
      }
  
imports: from ddsp import core
  from ddsp import processors
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the Wavetable obj's underlying member method code with example usage: obj.get_controls(amplitudes, wavetables, f0_hz) and returns: dict