class_docstr: Synthesize audio with a bank of arbitrary sinusoidal oscillators.
docstr: Convert network output tensors into a dictionary of synthesizer controls.
  
  Args:
    amplitudes: 3-D Tensor of synthesizer controls, of shape
      [batch, time, n_sinusoids].
    frequencies: 3-D Tensor of synthesizer controls, of shape
      [batch, time, n_sinusoids]. Expects strictly positive in Hertz.
  
  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",",","n_sinusoids","]",".","frequencies",":","3-D","Tensor","of","synthesizer","controls",",","of","shape","[","batch",",","time",",","n_sinusoids","]",".","Expects","strictly","positive","in","Hertz",".","Returns",":","controls",":","Dictionary","of","tensors","of","synthesizer","controls","."]
code: def get_controls(self, amplitudes, frequencies):
      """Convert network output tensors into a dictionary of synthesizer controls.
  
      Args:
        amplitudes: 3-D Tensor of synthesizer controls, of shape
          [batch, time, n_sinusoids].
        frequencies: 3-D Tensor of synthesizer controls, of shape
          [batch, time, n_sinusoids]. Expects strictly positive in Hertz.
  
      Returns:
        controls: Dictionary of tensors of synthesizer controls.
      """
      # Scale the inputs.
      if self.amp_scale_fn is not None:
          amplitudes = self.amp_scale_fn(amplitudes)
  
      if self.freq_scale_fn is not None:
          frequencies = self.freq_scale_fn(frequencies)
          amplitudes = core.remove_above_nyquist(
              frequencies, amplitudes, self.sample_rate
          )
  
      return {"amplitudes": amplitudes, "frequencies": frequencies}
  
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 Sinusoidal obj's underlying member method code with example usage: obj.get_controls(amplitudes, frequencies) and returns: dict